1313 - " .github/workflows/e2e.yml"
1414 workflow_dispatch : {}
1515
16- env :
17- TUSK_CLI_UNDER_TEST_REF : socket-location
18-
1916jobs :
2017 discover :
2118 name : Discover Tests
4542 echo "e2e_matrix=$E2E_TESTS" >> $GITHUB_OUTPUT
4643 echo "stack_matrix=$STACK_TESTS" >> $GITHUB_OUTPUT
4744
48- build-cli-under-test :
49- name : Build Tusk CLI Under Test
50- runs-on : ubuntu-latest
51- steps :
52- - name : Checkout Tusk CLI under test
53- uses : actions/checkout@v6
54- with :
55- repository : Use-Tusk/tusk-drift-cli
56- ref : ${{ env.TUSK_CLI_UNDER_TEST_REF }}
57- path : tusk-drift-cli-src
58- fetch-depth : 1
59-
60- - name : Setup Go
61- uses : actions/setup-go@v5
62- with :
63- go-version-file : tusk-drift-cli-src/go.mod
64- cache-dependency-path : tusk-drift-cli-src/go.sum
65-
66- - name : Build Tusk CLI under test
67- working-directory : tusk-drift-cli-src
68- env :
69- CGO_ENABLED : " 0"
70- GOOS : linux
71- GOARCH : amd64
72- run : |
73- mkdir -p "$RUNNER_TEMP/tusk-cli-under-test"
74- go build -trimpath -o "$RUNNER_TEMP/tusk-cli-under-test/tusk" .
75-
76- - name : Upload Tusk CLI under test
77- uses : actions/upload-artifact@v4
78- with :
79- name : tusk-cli-under-test-linux-amd64
80- path : ${{ runner.temp }}/tusk-cli-under-test/tusk
81- if-no-files-found : error
82- retention-days : 1
83-
8445 e2e :
8546 name : E2E - ${{ matrix.library }}
86- needs : [ discover, build-cli-under-test]
47+ needs : discover
8748 runs-on : ubuntu-latest
8849 timeout-minutes : 30
8950 strategy :
@@ -108,15 +69,6 @@ jobs:
10869 with :
10970 driver : docker
11071
111- - name : Download Tusk CLI under test
112- uses : actions/download-artifact@v4
113- with :
114- name : tusk-cli-under-test-linux-amd64
115- path : ./.tmp/tusk-cli-under-test
116-
117- - name : Make Tusk CLI under test executable
118- run : chmod +x ./.tmp/tusk-cli-under-test/tusk
119-
12072 - name : Install SDK dependencies
12173 run : uv sync --all-extras
12274
@@ -149,9 +101,7 @@ jobs:
149101
150102 - name : Run E2E tests for ${{ matrix.library }}
151103 env :
152- COMPOSE_FILE : docker-compose.yml:${{ github.workspace }}/drift/instrumentation/e2e_common/docker-compose.cli-override.yml
153104 DOCKER_DEFAULT_PLATFORM : linux/amd64
154- TUSK_CLI_BIND_PATH : ${{ github.workspace }}/.tmp/tusk-cli-under-test/tusk
155105 TUSK_CLI_VERSION : ${{ steps.tusk-version.outputs.version }}
156106 TUSK_USE_RUST_CORE : " 1"
157107 run : |
@@ -189,6 +139,7 @@ jobs:
189139 name : e2e-${{ matrix.library }}-replay-logs
190140 path : ./drift/instrumentation/${{ matrix.library }}/e2e-tests/.tusk/logs
191141 if-no-files-found : ignore
142+ include-hidden-files : true
192143
193144 - name : Cleanup Docker resources
194145 if : always()
@@ -203,7 +154,7 @@ jobs:
203154
204155 stack :
205156 name : Stack - ${{ matrix.test }}
206- needs : [ discover, build-cli-under-test]
157+ needs : discover
207158 if : ${{ needs.discover.outputs.stack_matrix != '[]' && needs.discover.outputs.stack_matrix != '' }}
208159 runs-on : ubuntu-latest
209160 timeout-minutes : 30
@@ -229,15 +180,6 @@ jobs:
229180 with :
230181 driver : docker
231182
232- - name : Download Tusk CLI under test
233- uses : actions/download-artifact@v4
234- with :
235- name : tusk-cli-under-test-linux-amd64
236- path : ./.tmp/tusk-cli-under-test
237-
238- - name : Make Tusk CLI under test executable
239- run : chmod +x ./.tmp/tusk-cli-under-test/tusk
240-
241183 - name : Install SDK dependencies
242184 run : uv sync --all-extras
243185
@@ -270,9 +212,7 @@ jobs:
270212
271213 - name : Run stack tests for ${{ matrix.test }}
272214 env :
273- COMPOSE_FILE : docker-compose.yml:${{ github.workspace }}/drift/instrumentation/e2e_common/docker-compose.cli-override.yml
274215 DOCKER_DEFAULT_PLATFORM : linux/amd64
275- TUSK_CLI_BIND_PATH : ${{ github.workspace }}/.tmp/tusk-cli-under-test/tusk
276216 TUSK_CLI_VERSION : ${{ steps.tusk-version.outputs.version }}
277217 TUSK_USE_RUST_CORE : " 1"
278218 run : |
@@ -310,6 +250,7 @@ jobs:
310250 name : stack-${{ matrix.test }}-replay-logs
311251 path : ./drift/stack-tests/${{ matrix.test }}/.tusk/logs
312252 if-no-files-found : ignore
253+ include-hidden-files : true
313254
314255 - name : Cleanup Docker resources
315256 if : always()
@@ -324,7 +265,6 @@ jobs:
324265
325266 non-rust-smoke :
326267 name : E2E Non-Rust Smoke - requests
327- needs : build-cli-under-test
328268 runs-on : ubuntu-latest
329269 timeout-minutes : 30
330270 steps :
@@ -344,15 +284,6 @@ jobs:
344284 with :
345285 driver : docker
346286
347- - name : Download Tusk CLI under test
348- uses : actions/download-artifact@v4
349- with :
350- name : tusk-cli-under-test-linux-amd64
351- path : ./.tmp/tusk-cli-under-test
352-
353- - name : Make Tusk CLI under test executable
354- run : chmod +x ./.tmp/tusk-cli-under-test/tusk
355-
356287 - name : Install SDK dependencies
357288 run : uv sync --all-extras
358289
@@ -385,9 +316,7 @@ jobs:
385316
386317 - name : Run non-rust smoke test
387318 env :
388- COMPOSE_FILE : docker-compose.yml:${{ github.workspace }}/drift/instrumentation/e2e_common/docker-compose.cli-override.yml
389319 DOCKER_DEFAULT_PLATFORM : linux/amd64
390- TUSK_CLI_BIND_PATH : ${{ github.workspace }}/.tmp/tusk-cli-under-test/tusk
391320 TUSK_CLI_VERSION : ${{ steps.tusk-version.outputs.version }}
392321 TUSK_USE_RUST_CORE : " 0"
393322 run : |
@@ -425,6 +354,7 @@ jobs:
425354 name : requests-smoke-replay-logs
426355 path : ./drift/instrumentation/requests/e2e-tests/.tusk/logs
427356 if-no-files-found : ignore
357+ include-hidden-files : true
428358
429359 - name : Cleanup Docker resources
430360 if : always()
0 commit comments