Skip to content

Commit f4abaf5

Browse files
committed
Use new npm dependency provisioning features
1 parent 7ae7638 commit f4abaf5

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.gitlab-ci.plan

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
vscode_qual = {
2+
"mono-plat": True,
3+
"npm-online": True,
4+
"npm-package": True,
5+
}
6+
7+
18
def build_(qualifier={}):
29
with defaults(qualifier=qualifier):
310
anod_build("als")
4-
anod_build("vscode-extension", qualifier={"mono-plat": True} | qualifier)
11+
anod_build("vscode-extension", qualifier=vscode_qual | qualifier)
512

613

714
def test_als_(qualifier={}):
@@ -19,7 +26,7 @@ def test_als_cov_(qualifier={}):
1926

2027

2128
def test_vscode_extension_(qualifier={}):
22-
component_qual = qualifier | {"mono-plat": True}
29+
component_qual = qualifier | vscode_qual
2330
# Install the component built in the preceding CI build job
2431
anod_install("vscode-extension", qualifier=component_qual)
2532
anod_test("vscode-extension", qualifier=component_qual | {"coverage": True})
@@ -64,7 +71,7 @@ def build_test_gs_edge():
6471
def test_integration_testsuite():
6572
# These two components have been built by the build job of the CI, install them.
6673
anod_install("als")
67-
anod_install("vscode-extension", qualifier={"mono-plat": True})
74+
anod_install("vscode-extension", qualifier=vscode_qual)
6875

6976
# For the following components, we'd like to install with latest=True to be
7077
# resilient to failures in nightly builds.
@@ -86,5 +93,9 @@ def test_integration_testsuite():
8693
# Run the subset of integration-testsuite that uses VS Code
8794
anod_test(
8895
"integration-testsuite",
89-
qualifier={"run-tools": "vscode", "cleanup-mode": "none", "mono-plat": True},
96+
qualifier={
97+
"run-tools": "vscode",
98+
"cleanup-mode": "none",
99+
}
100+
| vscode_qual,
90101
)

.gitlab-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ include:
1818
- component: $CI_SERVER_FQDN/eng/gitlab-templates/build@~latest
1919
inputs:
2020
anod-args: run build_$ACI_TRACK
21+
artifacts: [vscode-extension-npm-deps-*-*.tar.gz]
2122
cpus: 16
2223
disk: 80
2324
image: systemgtk
@@ -26,6 +27,7 @@ include:
2627
# 8GB of memory leads to heap exhaustion during compilation. We need more.
2728
windows-mem: 16
2829
save-component: true
30+
save-anod-logs: true
2931

3032
# Testing of the ALS
3133
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
@@ -68,6 +70,7 @@ include:
6870
# components, but we can't because it breaks the transfer of built
6971
# components between jobs using anod-copy-components.
7072
anod-args: run test_integration_testsuite
73+
artifacts: [integration-testsuite-npm-deps-*-*.tar.gz]
7174
image: systemgtk
7275
cpus: 4
7376
disk: 80
@@ -93,6 +96,22 @@ include:
9396
when: manual
9497
allow_failure: true
9598

99+
.build:common:
100+
after_script:
101+
- . /tmp/ci_env.sh
102+
# Copy the NPM artifacts archive
103+
- bs=$(anod info vscode-extension --show working_dir -Q mono-plat,npm-online,npm-package)
104+
- |
105+
cp "$bs/tmp"/vscode-extension-npm-deps-*-*.tar.gz "$CI_PROJECT_DIR"
106+
107+
.integration-testsuite:common:
108+
after_script:
109+
- . /tmp/ci_env.sh
110+
# Copy the NPM artifacts archive
111+
- bs=$(anod info test integration-testsuite --show working_dir -Q run-tools=vscode,cleanup-mode=none,mono-plat,npm-online,npm-package)
112+
- |
113+
cp "$bs/tmp"/integration-testsuite-npm-deps-*-*.tar.gz "$CI_PROJECT_DIR"
114+
96115
als-cov:linux:
97116
variables:
98117
RUNNER_AFTER_SCRIPT_TIMEOUT: 10m

0 commit comments

Comments
 (0)