Skip to content

Make merges actually deploy; fix the flaky API test blocking them - #23

Merged
hyperloop-cornell merged 1 commit into
mainfrom
fix/deploy-on-merge
Oct 1, 2026
Merged

hyperloop-cornell merged 1 commit into
mainfrom
fix/deploy-on-merge

Conversation

@WesP10

@WesP10 WesP10 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Merge order

  1. Merge Stop the broadcaster from losing cancellations on Python 3.11 cloud-services#7 first, with a merge commit (this PR pins its commit).
  2. Merge this PR. That triggers the first real deploy, which ships Build the web client in CI instead of on EC2 #21 and Serve the web client with nginx and proxy the API #22:
    • builds the web client on the runner (WEB_API_BASE_URL is unset, so the bundle uses the page origin)
    • installs nginx on EC2 if it is missing, disables the old frontend (vite preview) service, and serves the GUI on :4173
    • pulls cloud-services main, installs requirements and restarts backend

The deploy secrets (EC2_HOST, EC2_PEM_KEY, EC2_USER) are already set.

Test plan

  • actionlint passes
  • cloud-services fix: 100 runs of test_hub_ws.py on Python 3.11 went from 50 failures to 0
  • This PR's CI: test-api passes against the bumped submodule
  • After merge: the run shows test-api, test-web and then deploy running (not skipped), and the deploy job succeeds
  • On EC2: systemctl is-active nginx backend, curl -s localhost:4173/health, and view-only login works at http://98.93.47.19:4173

🤖 Generated with Claude Code

…ocking them

deploy needs test-api and test-web, but both skipped on the merge ("closed")
event, so GitHub skipped deploy too. No merge has deployed since the pipeline
was added. They now also run when a PR is merged, so the deploy still waits on
passing tests.

Also points cloud-services at fix/broadcast-cancellation, which fixes the
test_hub_ws failure that hit about half of the test-api runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 21:32

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@hyperloop-cornell
hyperloop-cornell merged commit a8679a0 into main Oct 1, 2026
5 checks passed
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.

3 participants