Skip to content

[dtq-dev-767-base] Wait until the instance answers before the UI tests - #1747

Open
Kasinhou wants to merge 1 commit into
dtq-dev-767-basefrom
767-base/fe-wait-for-instance
Open

Kasinhou wants to merge 1 commit into
dtq-dev-767-basefrom
767-base/fe-wait-for-instance

Conversation

@Kasinhou

@Kasinhou Kasinhou commented Nov 19, 2026 •

Copy link
Copy Markdown

Problem description

Related: https://github.com/dataquest-dev/dspace-customers/issues/1024

deploy-8633 ends right after docker compose up -d, which returns as soon as the containers start. playwright-after-deploy8633 starts straight away, while DSpace is still booting, so the first specs fail on a UI that isn't loaded yet. This happened on dtq-dev-93 after the CI restore (#1736): the first two specs failed and the run had to be restarted by hand.

Analysis

deploy.yml on dtq-dev already waits until REST answers 200 at the end of the deploy. The newer deploy.yml on dtq-dev-93 and dtq-dev-767-base lost that wait.

A new last step in deploy-8633 polls http://dev-20.pc:8633/repository/server/api and then http://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:

Problems

import-8633 already ends with fixed sleeps and is unchanged.

🤖 Generated with Claude Code

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]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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/api and /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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants