Skip to content

Configure Copilot server scripts and readiness - #14584

Draft
amoore108 wants to merge 4 commits into
latestfrom
amoore108-copilot-config-server-readiness
Draft

amoore108 wants to merge 4 commits into
latestfrom
amoore108-copilot-config-server-readiness

Conversation

@amoore108

@amoore108 amoore108 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Resolves JIRA: N/A

Summary

Adds repository-level Copilot app configuration so contributors can start the development, test, and live Simorgh servers from the app with consistent dependency setup and readiness detection.
Screenshot 2026-10-31 at 14 27 27

Code changes

  • Added manual scripts for the dev, test, and live servers.
  • Added yarn install before each server command.
  • Added readiness detection for http://localhost:7081.

Useful Links

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The readiness pattern does not match the http://127.0.0.1:7081 address advertised by the test and live servers, preventing them from being detected as ready.

1 open issue
What changed in this PR

Adds repository-level Copilot app configuration for starting Simorgh servers with consistent dependency setup and readiness detection.

Changes:

  • Adds manual launch scripts for development, test, and live servers.
  • Installs dependencies before launching, and builds test/live configurations before starting.
  • Configures readiness detection using the server URL on port 7081.
File Description
.github/​github-app.yml Defines server launch commands and the readiness URL pattern.

Review effort: Balanced

Comment thread .github/github-app.yml Resolved
amoore108 and others added 3 commits November 10, 2026 20:42
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The test and live builds point static assets at the CDN, only copy CSS
into the standalone output and log to /var/log/simorgh, so they fail or
render without client-side JS when started locally. Replace them with the
local production build and the test/live toggle dev servers, and install
from the workspace root with --immutable so the lockfile is not changed.
The Copilot app reads capture group 1 of server_ready_pattern as the
server URL, so restore the group. Install dependencies once on
session.create rather than in every run script, and add a manual script
to free port 7081, which every workspace shares.

This branch has not been deployed

No deployments
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