Skip to content

Commit

Permalink
DDO-3190 Update Rawls build tag publish job to send metrics to Grafana (
Browse files Browse the repository at this point in the history
#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
knapii-developments authored Nov 29, 2023
1 parent 6a732cc commit c270533
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/rawls-build-tag-publish-and-run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}"
Expand All @@ -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:
Expand Down

0 comments on commit c270533

Please sign in to comment.