|
7 | 7 | # What it does: |
8 | 8 | # - Checks out the reference integration repository |
9 | 9 | # - Updates score_modules.MODULE.bazel from the provided known_good.json |
10 | | -# - Builds all referenced modules (via scripts/integration_test.sh and Bazel) |
| 10 | +# - Builds all referenced modules (via scripts/integration_test.py and Bazel) |
11 | 11 | # - Runs integration tests |
12 | 12 | # - Uploads logs from _logs/ as artifact: bazel-build-logs-${{ inputs.config }} |
13 | 13 | # |
14 | 14 | # Inputs: |
15 | 15 | # - known_good (string, required): JSON content used to pin module SHAs. |
16 | | -# - config (string, optional, default: bl-x86_64-linux): Bazel config passed as |
17 | | -# CONFIG to scripts/integration_test.sh. |
| 16 | +# - config (string, optional, default: bl-x86_64-linux): Bazel config passed to |
| 17 | +# scripts/integration_test.py. |
18 | 18 | # - repo_runner_labels (string, optional): Runner label(s). Accepts either a |
19 | 19 | # single label string (e.g., ubuntu-latest) or a JSON string representing a |
20 | 20 | # label or an array of labels (e.g., "\"ubuntu-latest\"" or |
21 | 21 | # "[\"self-hosted\",\"linux\",\"x64\"]"). |
22 | 22 | # - target_branch (string, optional, default: main): Ref/branch to checkout. |
23 | 23 | # |
24 | 24 | # Repository Variables: |
25 | | -# - reference_integration_repo (optional): Repository to checkout (owner/repo). |
| 25 | +# - REFERENCE_INTEGRATION_REPO (optional): Repository to checkout (owner/repo). |
26 | 26 | # Default: eclipse-score/reference_integration |
27 | 27 | # |
28 | 28 | # Secrets: |
|
77 | 77 | default: 'main' |
78 | 78 |
|
79 | 79 | env: |
80 | | - REFERENCE_INTEGRATION_REPO: ${{ vars.reference_integration_repo != '' && vars.reference_integration_repo || 'eclipse-score/reference_integration' }} |
| 80 | + REFERENCE_INTEGRATION_REPO: ${{ vars.REFERENCE_INTEGRATION_REPO != '' && vars.REFERENCE_INTEGRATION_REPO || 'eclipse-score/reference_integration' }} |
81 | 81 |
|
82 | 82 | jobs: |
83 | 83 | integration-test: |
@@ -127,14 +127,14 @@ jobs: |
127 | 127 | echo "::endgroup::" |
128 | 128 | |
129 | 129 | echo "::group::update score_modules.MODULE.bazel" |
130 | | - python3 tools/update_module_from_known_good.py --known known_good.updated.json |
| 130 | + python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json |
131 | 131 | cat score_modules.MODULE.bazel |
132 | 132 | echo "::endgroup::" |
133 | 133 | env: |
134 | 134 | GITHUB_TOKEN: ${{ secrets.REPO_READ_TOKEN != '' && secrets.REPO_READ_TOKEN || github.token }} |
135 | 135 | - name: Bazel build targets |
136 | 136 | run: | |
137 | | - CONFIG="${{ inputs.config }}" scripts/integration_test.sh --known-good known_good.updated.json |
| 137 | + python3 scripts/integration_test.py --known-good known_good.updated.json --config "${{ inputs.config }}" |
138 | 138 | env: |
139 | 139 | GITHUB_TOKEN: ${{ secrets.REPO_READ_TOKEN != '' && secrets.REPO_READ_TOKEN || github.token }} |
140 | 140 | - name: Show disk space after build |
|
0 commit comments