-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Thundra Foresight Integration to the CI Build #4313
Conversation
df249fe
to
d39ec9c
Compare
- name: Build and test with Gradle (${{matrix.gradle_args}}) | ||
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") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
Awesome! Thank you, @rnorth. No worries there, we are happy to see you on board. :) |
No description provided.