Run telemetry tests +cache="session"
( ctx context.Context, // Only run these tests // +optional run string, // Skip these tests // +optional skip string, // +optional update bool, // +optional failfast bool, // +optional parallel int, // +optional timeout string, // +optional race bool, // +default=1 count int, // +optional envFile *dagger.Secret, // +optional testVerbose bool, // Enable the given ebpf progs in the engine during tests // +optional ebpfProgs []string, )
| 81 | // Run telemetry tests |
| 82 | // +cache="session" |
| 83 | func (dev *EngineDev) TestTelemetry( |
| 84 | ctx context.Context, |
| 85 | // Only run these tests |
| 86 | // +optional |
| 87 | run string, |
| 88 | // Skip these tests |
| 89 | // +optional |
| 90 | skip string, |
| 91 | // +optional |
| 92 | update bool, |
| 93 | // +optional |
| 94 | failfast bool, |
| 95 | // +optional |
| 96 | parallel int, |
| 97 | // +optional |
| 98 | timeout string, |
| 99 | // +optional |
| 100 | race bool, |
| 101 | // +default=1 |
| 102 | count int, |
| 103 | // +optional |
| 104 | envFile *dagger.Secret, |
| 105 | // +optional |
| 106 | testVerbose bool, |
| 107 | // Enable the given ebpf progs in the engine during tests |
| 108 | // +optional |
| 109 | ebpfProgs []string, |
| 110 | ) (*dagger.Changeset, error) { |
| 111 | ctr, _, err := dev.testContainer(ctx, ebpfProgs) |
| 112 | if err != nil { |
| 113 | return nil, err |
| 114 | } |
| 115 | ran, err := dev.test(ctx, ctr, &testOpts{ |
| 116 | runTestRegex: run, |
| 117 | skipTestRegex: skip, |
| 118 | pkg: "./dagql/idtui/", |
| 119 | failfast: failfast, |
| 120 | parallel: parallel, |
| 121 | timeout: timeout, |
| 122 | race: race, |
| 123 | count: count, |
| 124 | update: update, |
| 125 | envs: envFile, |
| 126 | testVerbose: testVerbose, |
| 127 | }, |
| 128 | ).Sync(ctx) |
| 129 | if err != nil { |
| 130 | return nil, err |
| 131 | } |
| 132 | return ran.Directory(".").Changes(ctr.Directory(".")), nil |
| 133 | } |
| 134 | |
| 135 | type testOpts struct { |
| 136 | runTestRegex string |