Repository navigation
Conversation
docker compose up -d returns as soon as the containers start, so the Playwright run that follows the deploy hit an instance that was still starting and its first specs failed. deploy-8603 now waits until the REST API and the UI both return 200 (up to 15 minutes). Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
A critical command-injection vulnerability remains in the deployment workflow because untrusted DEV_MACHINE input is embedded directly in a shell assignment executed on the self-hosted runner.
1 open issue
What changed in this PR
Adds a deployment readiness gate so dependent Playwright tests start only after the DSpace instance is ready.
Changes:
- Polls the REST API and repository frontend until both return HTTP 200.
- Limits the readiness check to 15 minutes before failing the deployment.
| File | Description |
|---|---|
| .github/workflows/deploy.yml | Adds post-deployment HTTP readiness polling for the DSpace REST API and frontend before UI tests run. |
Review effort: Lite
Comment on lines
+200
to
+203
| - name: wait until the instance answers | ||
| timeout-minutes: 15 | ||
| run: | | ||
| BASE_URL="http://${{ inputs.DEV_MACHINE }}.pc:$INSTANCE/repository" |
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.

Problem description
Related: https://github.com/dataquest-dev/dspace-customers/issues/1024
deploy-8603ends right afterdocker compose up -d, which returns as soon as the containers start.playwright-after-deploy8603starts straight away, while DSpace is still booting, so the first specs fail on a UI that isn't loaded yet. This happened ondtq-dev-93after the CI restore (#1736): the first two specs failed and the run had to be restarted by hand.Analysis
deploy.ymlondtq-devalready waits until REST answers 200 at the end of the deploy. The newerdeploy.ymlondtq-dev-93anddtq-dev-767-baselost that wait.A new last step in
deploy-8603pollshttp://dev-6.pc:8603/repository/server/apiand thenhttp://dev-6.pc:8603/repository/every 10 s until both return 200. It has a 15-minute step timeout, so a deploy that never comes up fails here with a clear message instead of in the UI tests. Both URLs return 200 on the running instance today (checked with the same curl command).Same change in both branches:
dtq-dev-93(8603 on dev-6): [dtq-dev-93] Wait until the instance answers before the UI tests #1746dtq-dev-767-base(8633 on dev-20): [dtq-dev-767-base] Wait until the instance answers before the UI tests #1747Problems
import-8603already ends with fixed sleeps and is unchanged.🤖 Generated with Claude Code