Repository navigation
Stop the production Drone server opening a build for every uat push (#287) - #506
Merged
Merged
Conversation
…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>
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.
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 checkstrigger: instanceafterwards (why #436 didn't help). So theDeploy Website UATpipeline in.drone.ymlmade the production server open a uat build it could never run.Change: this finishes the split that 9e9b520 started.
.drone.ymlkeeps 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.ymlis the only copy of the UAT pipeline. drone.tripsit.io reads it: its repository setting "Configuration" was switched to.drone-uat.ymlon 2026-11-27. The file gains the sameinstanceguard the.drone.ymlcopy had..github/CODEOWNERScovers.drone-uat.yml;docs/uat-deployment.mdexplains the split.src/__tests__/droneConfig.test.tsfails if either file gains a pipeline for the other server's branch.TripBot gets the same change in its own PR.
Type of change
Checklist
uat(this PR targetsuat, notmain)npx eslinton the new test; Prettier clean)npx next buildnot run: no application code changed. CI builds it..envvalues, or user data includedTest plan
js-yaml:.drone.ymlhas one pipeline (Deploy Website, branch main, event push, node env prod);.drone-uat.ymlhas one (Deploy Website UAT, branch uat, events custom and push, node env uat, role website-deploy)..drone-uat.ymlapart from comments and itsinstanceguard, which.drone-uat.ymlnow has.npx jest src/__tests__/droneConfig.test.ts: 2 passed, and 1 fails against the old.drone.yml.🤖 Generated with Claude Code