Skip to content

Conversation

@rwxdash
Copy link
Contributor

@rwxdash rwxdash commented Jul 29, 2021

No description provided.

@rwxdash rwxdash changed the title Add Thundra Foresight Integration to the CI Build [WIP] Add Thundra Foresight Integration to the CI Build Jul 29, 2021
@rwxdash rwxdash force-pushed the master branch 2 times, most recently from df249fe to d39ec9c Compare July 31, 2021 08:10
@rwxdash rwxdash changed the title [WIP] Add Thundra Foresight Integration to the CI Build Add Thundra Foresight Integration to the CI Build Aug 2, 2021
run: |
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}}
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}} \
$($THUNDRA_GRADLE_INIT_SCRIPT_PATH || echo "--init-script $THUNDRA_GRADLE_INIT_SCRIPT_PATH")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the easiest way to understand if the Thundra step was successful and if so, instrument the build. If not, we don't want to break the build. Hence the check.

The template of the init script can be found here: https://github.com/thundra-io/thundra-gradle-test-action/blob/master/templates/thundra.gradle.ejs

$($THUNDRA_GRADLE_INIT_SCRIPT_PATH || echo "--init-script $THUNDRA_GRADLE_INIT_SCRIPT_PATH")
env:
THUNDRA_AGENT_TEST_RUN_ID: ${{ needs.set_thundra_testrun_id.outputs.thundra_agent_testrun_id }}
THUNDRA_AGENT_REPORT_REST_BASEURL: https://collector.thundra.us/v1
Copy link
Contributor Author

@rwxdash rwxdash Aug 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This base URL is for our staging environment. Our showroom page is fetching the data from this environment. Normally, in production, you don't need to set this. We wanted to split the showroom environment from production, that's why this is needed here.

@rnorth rnorth self-assigned this Aug 9, 2021
Copy link
Member

@rnorth rnorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rwxdash, and sorry for not reviewing this immediately after getting back from holiday. The extra encapsulation you've done in the thundra_test_initializer really helps a lot - thanks!

Happy to approve, and will merge. Looking forward to seeing the output in Thundra Foresight!

@rnorth rnorth merged commit 475e619 into testcontainers:master Sep 7, 2021
@rwxdash
Copy link
Contributor Author

rwxdash commented Sep 7, 2021

Awesome! Thank you, @rnorth. No worries there, we are happy to see you on board. :)

@kiview kiview added this to the next milestone Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants