-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDO-3190 Update Rawls build tag publish job to send metrics to Grafana (
#2575) * Add arguments * Fix indent * Add additional args * Refactor * Change reference * Remove typo * Put json stringy in brackets * Pass in string for json * Add escape character * Use double quotes * Update rawls swat refference
- Loading branch information
1 parent
6a732cc
commit c270533
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,22 @@ jobs: | |
echo "$GITHUB_CONTEXT" | ||
echo "custom-version-json={\\\"rawls\\\":{\\\"appVersion\\\":\\\"${{ steps.tag.outputs.tag }}\\\"}}" >> $GITHUB_OUTPUT | ||
init-github-context: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
log-results: ${{ steps.set-test-context.outputs.log-results }} | ||
test-context: ${{ steps.set-test-context.outputs.test-context }} | ||
steps: | ||
- name: Get test context | ||
id: set-test-context | ||
run: |- | ||
echo 'log-results=true' >> $GITHUB_OUTPUT | ||
if ${{ github.ref_name == 'develop' }}; then | ||
echo 'test-context=dev-merge' >> $GITHUB_OUTPUT | ||
else | ||
echo 'test-context=pr-test' >> $GITHUB_OUTPUT | ||
fi | ||
create-bee-workflow: | ||
strategy: | ||
matrix: | ||
|
@@ -120,13 +136,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: | ||
- create-bee-workflow | ||
- init-github-context | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
steps: | ||
- name: dispatch to terra-github-workflows | ||
env: | ||
rawls_base_test_entrypoint: "testOnly -- -l ProdTest -l NotebooksCanaryTest" | ||
test-context: ${{ needs.init-github-context.outputs.test-context }} | ||
uses: broadinstitute/[email protected] | ||
with: | ||
run-name: "${{ env.RAWLS_SWAT_TESTS_RUN_NAME }}-${{ matrix.terra-env }}-${{ matrix.testing-env }}-${{ matrix.test-group.group_name }}" | ||
|
@@ -136,12 +154,13 @@ jobs: | |
token: ${{ secrets.BROADBOT_TOKEN }} # github token for access to kick off a job in the private repo | ||
# manually recalculate b/c env context is broken https://github.com/actions/runner/issues/480 | ||
inputs: '{ | ||
"additional-args": "{\"logging\":\"true\",\"java-version\":\"17\",\"billing-project\":\"\"}", | ||
"run-name": "${{ env.RAWLS_SWAT_TESTS_RUN_NAME }}-${{ matrix.terra-env }}-${{ matrix.testing-env }}-${{ matrix.test-group.group_name }}", | ||
"bee-name": "${{ env.BEE_NAME }}-${{ matrix.terra-env }}", | ||
"ENV": "${{ matrix.testing-env }}", | ||
"test-group-name": "${{ matrix.test-group.group_name }}", | ||
"test-command": "${{ env.rawls_base_test_entrypoint }} ${{ matrix.test-group.tag }}", | ||
"java-version": "17" | ||
"test-context": "${{ env.test-context }}" | ||
}' | ||
|
||
destroy-bee-workflow: | ||
|