-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: TEMP DRAFT: Convert CMake UNIT_TEST_REFERENCE_FEE to command line unittest-fee #5394
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
base: develop
Are you sure you want to change the base?
Changes from all commits
9c65cec
17c128c
c7b0b91
3a46004
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,12 @@ on: | |
| type: string | ||
| default: "" | ||
|
|
||
| unittest_args: | ||
| description: "Additional arguments to pass to rippled when running tests" | ||
| required: false | ||
| type: string | ||
| default: "" | ||
|
|
||
| cmake_target: | ||
| description: "The CMake target to build." | ||
| required: true | ||
|
|
@@ -260,11 +266,12 @@ jobs: | |
| working-directory: ${{ runner.os == 'Windows' && format('{0}/{1}', env.BUILD_DIR, inputs.build_type) || env.BUILD_DIR }} | ||
| env: | ||
| BUILD_NPROC: ${{ steps.nproc.outputs.nproc }} | ||
| UNITTEST_ARGS: ${{ inputs.unittest_args }} | ||
| run: | | ||
| set -o pipefail | ||
| # Coverage builds are slower due to instrumentation; use fewer parallel jobs to avoid flakiness | ||
| [ "$COVERAGE_ENABLED" = "true" ] && BUILD_NPROC=$(( BUILD_NPROC - 2 )) | ||
| ./xrpld --unittest --unittest-jobs "${BUILD_NPROC}" 2>&1 | tee unittest.log | ||
| ./xrpld --unittest --unittest-jobs "${BUILD_NPROC}" ${UNITTEST_ARGS} 2>&1 | tee unittest.log | ||
|
|
||
|
Comment on lines
270
to
275
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
✨ Fixed in commit cdcc6b6 ✨ |
||
| - name: Show test failure summary | ||
| if: ${{ failure() && !inputs.build_only }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Using variable interpolation${{...}}withgithubcontext data in arun:step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code.githubcontext data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable withenv:to store the data and use the environment variable in therun:script. Be sure to use double-quotes the environment variable, like this: "$ENVVAR".🍰 Removed in commit 21315d6 🍰