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-8633 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.
🔵 Needs a closer look
Repository evidence cannot confirm the self-hosted runner’s network access or the deployed instance’s readiness and redirect behavior, so a human should validate the deployment and UI-test handoff.
No open issues 🎉
What changed in this PR
Adds a readiness gate to the deploy-8633 GitHub Actions job so dependent UI tests start only after the DSpace REST API and frontend are available.
Changes:
- Polls
/repository/server/apiand/repository/every 10 seconds until both return HTTP 200. - Limits the readiness check to 15 minutes so failed deployments stop before UI tests begin.
- Preserves the existing downstream workflow ordering.
| File | Description |
|---|---|
| .github/workflows/deploy.yml | Adds a post-deployment readiness polling step for the REST API and frontend before downstream jobs run. |
Review effort: Lite
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-8633ends right afterdocker compose up -d, which returns as soon as the containers start.playwright-after-deploy8633starts 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-8633pollshttp://dev-20.pc:8633/repository/server/apiand thenhttp://dev-20.pc:8633/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-8633already ends with fixed sleeps and is unchanged.🤖 Generated with Claude Code