Skip to content

Commit

Permalink
chore: disable container canary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr committed Feb 18, 2024
1 parent ac783e7 commit 9a763c0
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 48 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -46,27 +46,6 @@ jobs:
- name: Test
run: wing test
working-directory: checks
canary-containers:
name: Test containers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: containers
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: containers
- name: Test
run: wing test
working-directory: containers
canary-fifoqueue:
name: Test fifoqueue
runs-on: ubuntu-latest
Expand All @@ -78,7 +57,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -99,7 +78,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -120,7 +99,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -141,7 +120,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -162,7 +141,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -183,7 +162,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -204,7 +183,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand Down
7 changes: 5 additions & 2 deletions canary.w
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bring fs;

pub class CanaryWorkflow {
new(workflowdir: str, libs: Array<str>) {
new(workflowdir: str, libs: Array<str>, skipLibs: Array<str>?) {
let testLibSteps = (lib: str): Array<Json> => {
return [
{
Expand All @@ -15,7 +15,7 @@ pub class CanaryWorkflow {
name: "Setup Node.js",
uses: "actions/setup-node@v3",
with: {
"node-version": "18.x",
"node-version": "20.x",
"registry-url": "https://registry.npmjs.org",
},
},
Expand All @@ -38,6 +38,9 @@ pub class CanaryWorkflow {

let jobs = MutJson {};
for lib in libs {
if (skipLibs ?? []).contains(lib) {
continue;
}
jobs.set("canary-{lib}", {
name: "Test {lib}",
"runs-on": "ubuntu-latest",
Expand Down
4 changes: 2 additions & 2 deletions checks/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions containers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions fifoqueue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion generate-workflows.main.w
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ for file in fs.readdir(".") {
new stale.StaleWorkflow(workflowdir);
new mergify.MergifyWorkflow(libs.copy());
new prlint.PullRequestLintWorkflow(workflowdir);
new canary.CanaryWorkflow(workflowdir, libs.copy());

let skipTesting = [
"containers" // https://github.com/winglang/wing/issues/5716
];

new canary.CanaryWorkflow(workflowdir, libs.copy(), skipTesting);
4 changes: 2 additions & 2 deletions github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ngrok/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions postgres/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion redis/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sagemaker/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for i in $(ls -F); do
(
cd $i
npm i
wing test **/*.test.w
wing test
)
fi
done
done
9 changes: 9 additions & 0 deletions websockets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a763c0

Please sign in to comment.