Skip to content

Stop the production Drone server opening a build for every uat push (#287) - #506

Merged
LunaUrsa merged 1 commit into
uatfrom
ci/287-drone-uat-split
Nov 28, 2026
Merged

LunaUrsa merged 1 commit into
uatfrom
ci/287-drone-uat-split

Conversation

@LunaUrsa

Copy link
Copy Markdown
Contributor

Summary

For #287. drone.tripsit.me opens a build for every uat push, and none of them ever run: 88 of the last 100 builds there are skipped uat builds, and one is still pending (#278).

Cause: both Drone servers receive every push and, until now, both read .drone.yml. Drone creates a build for any pipeline whose branch and event match, and only checks trigger: instance afterwards (why #436 didn't help). So the Deploy Website UAT pipeline in .drone.yml made the production server open a uat build it could never run.

Change: this finishes the split that 9e9b520 started.

  • .drone.yml keeps only the production pipeline. A uat push now matches nothing on drone.tripsit.me, so no build is created there. drone.tripsit.io also stops opening builds for main pushes.
  • .drone-uat.yml is the only copy of the UAT pipeline. drone.tripsit.io reads it: its repository setting "Configuration" was switched to .drone-uat.yml on 2026-11-27. The file gains the same instance guard the .drone.yml copy had.
  • .github/CODEOWNERS covers .drone-uat.yml; docs/uat-deployment.md explains the split.
  • src/__tests__/droneConfig.test.ts fails if either file gains a pipeline for the other server's branch.

TripBot gets the same change in its own PR.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore
  • Other (describe above)

Checklist

  • Branch is up to date with uat (this PR targets uat, not main)
  • Lint passes (npx eslint on the new test; Prettier clean)
  • npx next build not run: no application code changed. CI builds it.
  • No secrets, .env values, or user data included

Test plan

  • Parsed both files with js-yaml: .drone.yml has one pipeline (Deploy Website, branch main, event push, node env prod); .drone-uat.yml has one (Deploy Website UAT, branch uat, events custom and push, node env uat, role website-deploy).
  • The removed UAT document was identical to .drone-uat.yml apart from comments and its instance guard, which .drone-uat.yml now has.
  • npx jest src/__tests__/droneConfig.test.ts: 2 passed, and 1 fails against the old .drone.yml.
  • After merge: the merge commit should get a successful build on drone.tripsit.io and no build on drone.tripsit.me.

🤖 Generated with Claude Code

…287)

Both Drone servers receive every push and both read .drone.yml. Drone
creates a build for any pipeline whose branch and event match before it
looks at `trigger: instance`, so the UAT pipeline in .drone.yml made
drone.tripsit.me open a build for each uat push that was then skipped or
left pending for good (88 skipped and one still pending, #278).

.drone.yml now holds only the production pipeline. The UAT pipeline lives
only in .drone-uat.yml (added as a copy in 9e9b520), so a uat push matches
nothing on drone.tripsit.me and no build is created. It also stops
drone.tripsit.io opening a build for main pushes.

drone.tripsit.io's repository setting "Configuration" must be
.drone-uat.yml before this merges, or the UAT server finds no pipeline for
the merge commit and UAT is not deployed. A test now fails if either file
gains a pipeline for the other server's branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LunaUrsa
LunaUrsa requested a review from a team as a code owner November 27, 2026 19:38
@LunaUrsa
LunaUrsa disabled auto-merge November 28, 2026 18:13
@LunaUrsa
LunaUrsa merged commit 227f2f8 into uat Nov 28, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026
@LunaUrsa
LunaUrsa deleted the ci/287-drone-uat-split branch November 28, 2026 18:23
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.

1 participant