Skip to content

Commit 43d3bc5

Browse files
Jake ChampionJakeChampion
authored andcommitted
refactor: consolidate all test applications into one test application
by merging the test applications into one, we are able to run all the test suites locally much faster than before because it involves compiling to wasm once and spinning up viceroy once, compared to the ~50 wasms and viceroys we were using before. It should also help reduce the amount of flakes we see when publishing to Fastly and reduce some constraints on internal Fastly systems.
1 parent ed17dce commit 43d3bc5

File tree

198 files changed

+10266
-42842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+10266
-42842
lines changed

.github/actions/compute-sdk-test/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
1-
name: "Compute SDK Test"
2-
description: "Test fixture Wasm modules with Viceroy"
1+
name: 'Local tests'
2+
description: 'Run tests for the provided fixture locally'
3+
34
inputs:
4-
config:
5-
description: 'Configuration JSON of the wasm module, and their expectations'
6-
required: true
75
fixture:
86
description: 'The name of the fixture to test'
97
required: true
8+
fastly-cli-version:
9+
description: 'The version of the Fastli CLI app to use during testing'
10+
required: true
11+
github-token:
12+
description: 'The GitHub token to use for downloading the Fastly CLI'
13+
required: true
1014

1115
runs:
12-
using: "node16"
13-
main: dist/main.js
16+
using: "composite"
17+
steps:
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
- name: Set up Fastly CLI
22+
uses: fastly/compute-actions/setup@v4
23+
with:
24+
token: ${{ inputs.github-token }}
25+
cli_version: ${{ inputs.fastly-cli-version }}
26+
- name: Download Engine
27+
uses: actions/download-artifact@v3
28+
with:
29+
name: engine-release
30+
- run: yarn
31+
shell: bash
32+
- run: cd ./integration-tests/js-compute && yarn
33+
shell: bash
34+
- run: cd ./integration-tests/js-compute && ./test.js --local
35+
shell: bash

0 commit comments

Comments
 (0)