ci: use shared gh-actions/actions/contract-tests action#164
Open
kinyoklion wants to merge 1 commit into
Open
Conversation
Replace the local .github/actions/contract-tests action with the shared launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1 action. The local action accepted a token input but never forwarded it to the Makefile or curl commands, so the GITHUB_TOKEN was not used when downloading the contract test harness. The shared action properly passes the token both as an Authorization header and as the GITHUB_TOKEN env var to avoid rate limiting. The build and start steps are now explicit workflow steps since the shared action only handles downloading and running the harness. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
N/A — CI-only change.
Describe the solution you've provided
Replace the local
.github/actions/contract-testsaction with the sharedlaunchdarkly/gh-actions/actions/contract-tests@contract-tests-v1action.The local action accepted a
tokeninput but never forwarded it, soGITHUB_TOKENwas not used when downloading the contract test harness (leading to potential rate limiting). The shared action properly passes the token both as anAuthorizationheader on the curl request and as theGITHUB_TOKENenv var for the downloader script.Since the shared action only handles downloading and running the harness (not building/starting the test service), the build and start steps are now explicit workflow steps.
Describe alternatives you've considered
Could have fixed the local action to forward the token to the Makefile, but using the shared action is more maintainable and consistent with other SDK repos.
Additional context
Both
java-server-sdk.ymlandnightly-contract-tests.ymlare updated. The Makefile is left unchanged so local development workflows still work."Link to Devin session: https://app.devin.ai/sessions/02984ba491764e598f041b70041206ba
Requested by: @kinyoklion
Note
Low Risk
Low risk to product code since changes are CI-only, but there is some workflow risk if the shared
contract-testsaction inputs/behavior differ and could cause contract-test job failures.Overview
Updates the
java-server-sdkandNightly Contract Testsworkflows to stop using the local.github/actions/contract-testscomposite action and instead run contract tests vialaunchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.Because the shared action only runs the harness, the workflows now explicitly
make build-contract-testsand start the service in the background before running separate v2 and v3 harness runs (including passingGITHUB_TOKEN, port8000, and skip/long-running parameters). The obsolete local action definition is removed.Reviewed by Cursor Bugbot for commit fba4f0b. Bugbot is set up for automated code reviews on this repo. Configure here.