Improve Git flow on this project #580
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No project
No assignees
2 participants
Notifications
Total time spent: 1 minute 18 seconds
Due date
Smithy-bot
1 minute 18 seconds
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app#580
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic:
Story Points: 5
Adopt a clearer git / release flow: features integrate via
develop, hotfixes frommain, stage only fromrelease/*andhotfix/*, and drop legacy Drone config. Feature-flag infrastructure is out of scope here (follow-on story).Current Behaviour
main;developexists for integration..forgejo/workflows/stage.yml) deploys on pushes tomain,develop,hotfix/*, andrelease/*.scripts/deploy_stage.shchecks outdevelop.CONTRIBUTING.mdstill referencesmasterand does not document this release flow..drone.ymlremains in the repo.New Behaviour
develop; hotfixes branch frommain; cutrelease/*when ready to stage and test;developdoes not auto-deploy to stage.release/*andhotfix/*(notmainordevelop).developcheckout for staging)..drone.ymlis removed.CONTRIBUTING.md(and any short in-repo note if needed) describes the flow usingmain(notmaster).Acceptance Criteria
GIVEN I am a contributor reading the docs
WHEN I open the git / contribution flow section
THEN I know features go through
develop, hotfixes branch frommain, and arelease/*branch is cut when ready to stage and testAND the docs do not tell me to use
masteras the default branchGIVEN the stage Forgejo workflow
WHEN I inspect its
on.push.branchestriggersTHEN only
release/*andhotfix/*are listedAND
mainanddevelopare not stage deploy triggersGIVEN
developreceives a pushWHEN stage CI is evaluated
THEN a stage deploy is not started from that push alone
GIVEN stage deploy scripts used by ops or CI
WHEN staging is performed under the new flow
THEN they do not require checking out
developas the stage source of truthGIVEN the repository root
WHEN I look for Drone config
THEN
.drone.ymlis absentSubtasks
.forgejo/workflows/stage.ymlbranch filters torelease/*andhotfix/*onlyscripts/deploy_stage.sh(and any related stage docs/scripts) for the new branch policyCONTRIBUTING.md(main/develop/release/*/hotfix/*).drone.ymlNotes
main;developremains integration without auto-stage..forgejo/workflows/production.yml) unless changed elsewhere.Estimate (needs/estimate)
Story points: 5
.forgejo/workflows/stage.ymlscripts/deploy_stage.sh+ related docsCONTRIBUTING.mdmain/develop/release/*/hotfix/*..drone.ymlWhy not 3: multiple touch points (workflow, deploy script, contributor docs) and stage behaviour should be verified after the workflow change.
Why not 8: no application logic changes; acceptance criteria are clear and #609 covers feature-flag infrastructure separately.
Advancing to needs/test.
QA test plan (needs/tests)
Manual verification on the implementation branch / post-merge default branch. Each script maps to acceptance criteria in the issue body. No application runtime behaviour is in scope — CI workflow, deploy script, contributor docs, and legacy Drone removal.
Setup
mainafter merge).release/x.y.z-testorhotfix/smoke-testbranch if your permissions allow (otherwise use workflow file inspection + dry-run reasoning with maintainer).TC-1 — CONTRIBUTING documents git flow (
main, notmaster)Covers: GIVEN I am a contributor … THEN features go through
develop, hotfixes frommain,release/*for staging … AND docs do not tell me to usemasterCONTRIBUTING.md(or linked contribution doc).develop, hotfixes branching frommain, and cuttingrelease/*for stage/test.main(no instruction to usemasteras the default branch).TC-2 — Stage workflow branch triggers (
release/*,hotfix/*only)Covers: GIVEN the stage Forgejo workflow … THEN only
release/*andhotfix/*are listed … ANDmainanddevelopare not stage deploy triggers.forgejo/workflows/stage.yml.on.push.branches(or equivalent trigger configuration).release/*andhotfix/*.mainanddevelopare not listed as push triggers for the stage workflow.TC-3 — Push to
developdoes not start stage deployCovers: GIVEN
developreceives a push … THEN a stage deploy is not started from that push aloneOption A (preferred, if permitted):
develop.stage.yml(or the stage deploy workflow).developpush.Option B (static):
developis absent from stage workflow push triggers.developfor this repo.TC-4 — Stage deploy scripts align with branch policy
Covers: GIVEN stage deploy scripts … THEN they do not require checking out
developas the stage source of truthscripts/deploy_stage.sh(and any related stage deploy docs/scripts referenced from the workflow).developcheckouts, hard-coded branch names, or assumptions that stage source is alwaysdevelop.release/*orhotfix/*) or an explicit documented ref — not a mandatorygit checkout developfor staging.TC-5 — Legacy Drone config removed
Covers: GIVEN the repository root … THEN
.drone.ymlis absent.drone.ymlat repo root.TC-6 —
release/*orhotfix/*can still trigger stage (smoke)Covers: TC-2 positive path — stage remains available for intended branches
Option A (if permitted):
release/*orhotfix/*branch.Option B:
release/*/hotfix/*per documented flow.TC-7 — Production workflow unchanged (regression guard)
Covers: issue note — prod remains tag-based unless changed elsewhere
.forgejo/workflows/production.yml(if present).Pass criteria
All Expected results for TC-1–TC-7 hold on the implementation branch.
Advancing needs/tests → needs/approval. Assigning Vylpes for approval (Smithy-bot planning complete).