AS a developer, I want the forgejo actions flow to be set up #11

Closed
opened 2025-09-20 12:56:19 +01:00 by Vylpes · 11 comments
Owner

Epic: #5
Story Points: 3


SO THAT I can have the project automatically built and tested

Acceptance Criteria

GIVEN I am a developer
WHEN I push a commit to one of the development branches
THEN it will trigger the development steps

GIVEN I am a developer
WHEN I push a commit to one of the staging branches
THEN it will trigger the staging steps

GIVEN I am a developer
WHEN I push a tag
THEN it will trigger the production steps

Subtasks

  • Testing flow
  • Development flow
  • Production flow
  • Rename binary and package name
  • Fix PR issues
  • Fix PR comments
  • Fix PR comments (2)
  • Add cursor/* to test workflow

Notes

  • See Actions Flow.png image attached
  • Takeover PR: #40
Epic: #5 Story Points: 3 --- SO THAT I can have the project automatically built and tested ## Acceptance Criteria GIVEN I am a developer WHEN I push a commit to one of the development branches THEN it will trigger the development steps GIVEN I am a developer WHEN I push a commit to one of the staging branches THEN it will trigger the staging steps GIVEN I am a developer WHEN I push a tag THEN it will trigger the production steps ## Subtasks - [x] Testing flow - [x] Development flow - [x] Production flow - [x] Rename binary and package name - [x] Fix PR issues - [x] Fix PR comments - [x] Fix PR comments (2) - [x] Add `cursor/*` to test workflow ## Notes - See `Actions Flow.png` image attached - Takeover PR: https://git.vylpes.xyz/RabbitLabs/calculator/pulls/40
Vylpes added this to the 0.1.0 milestone 2025-09-20 12:56:19 +01:00
Author
Owner

Blocked by #3

Blocked by #3
Author
Owner

Flow uploaded, can be unblocked

Flow uploaded, can be unblocked
Vylpes changed title from Setup Actions Flow to AS a developer, I want the forgejo actions flow to be set up 2025-11-18 17:34:18 +00:00
Vylpes self-assigned this 2025-12-03 18:36:40 +00:00
Vylpes added this to the 0.1 Sprint 1 project 2025-12-03 18:36:42 +00:00
Vylpes stopped working 2025-12-13 15:03:42 +00:00
44 minutes 47 seconds
Author
Owner

Got something but breaking, need to look

Got something but breaking, need to look
Author
Owner

I learnt in another repo, the runner now runs in docker - so need to find an actions command to setup rust perhaps?

I learnt in another repo, the runner now runs in docker - so need to find an actions command to setup rust perhaps?
Vylpes stopped working 2025-12-23 15:26:04 +00:00
58 minutes 13 seconds
Vylpes stopped working 2026-01-29 12:43:23 +00:00
25 minutes 50 seconds
Author
Owner

What do we want to name the package?

What do we want to name the package?
Author
Owner

@Vylpes wrote in #11 (comment):

What do we want to name the package?

I'm going to use vyxcalc, coming from "vylpes rust (oxide) calculator"

@Vylpes wrote in https://git.vylpes.xyz/RabbitLabs/calculator/issues/11#issuecomment-19121: > What do we want to name the package? I'm going to use `vyxcalc`, coming from "vylpes rust (oxide) calculator"
Vylpes stopped working 2026-02-16 16:52:25 +00:00
41 minutes 27 seconds
Vylpes stopped working 2026-03-12 18:57:31 +00:00
25 minutes 47 seconds
VylpesTester added spent time 2026-06-02 18:45:20 +01:00
10 minutes
Vylpes stopped working 2026-08-06 18:35:18 +01:00
9 minutes 21 seconds
Author
Owner

@Smithy-bot Please take over my PR for me

@Smithy-bot Please take over my PR for me
Vylpes removed their assignment 2026-09-23 18:09:02 +01:00
Smithy-bot removed their assignment 2026-09-27 12:05:54 +01:00
Member

Took over #34 as requested.

Ready for review: #40 (cursor/11-forgejo-actions → release/0.1.0, draft=false, mergeable).

Addressed the remaining open subtasks / review notes:

  • Added cursor/* to .forgejo/workflows/test.yml
  • Stage syncs PKGBUILD pkgver from Cargo.toml (VylpesTester)
  • Prod copies LICENSE into build/; PKGBUILD installs via $startdir/LICENSE
  • Removed unused Node.js setup from test/stage/prod
  • main was already on the stage branch list

Moved to step/review and assigned to @Vylpes. Please close or supersede #34 when taking #40.

Took over #34 as requested. Ready for review: https://git.vylpes.xyz/RabbitLabs/calculator/pulls/40 (`cursor/11-forgejo-actions` → `release/0.1.0`, draft=false, mergeable). Addressed the remaining open subtasks / review notes: - Added `cursor/*` to `.forgejo/workflows/test.yml` - Stage syncs `PKGBUILD` `pkgver` from `Cargo.toml` (VylpesTester) - Prod copies `LICENSE` into `build/`; PKGBUILD installs via `$startdir/LICENSE` - Removed unused Node.js setup from test/stage/prod - `main` was already on the stage branch list Moved to `step/review` and assigned to @Vylpes. Please close or supersede #34 when taking #40.
Vylpes removed their assignment 2026-09-28 16:43:37 +01:00
Author
Owner

@Smithy-bot Has sent back with an error, please have a look

@Smithy-bot Has sent back with an error, please have a look
Smithy-bot removed their assignment 2026-09-30 12:22:20 +01:00
Member

Addressed the REQUEST_CHANGES on #40.

Cause: the prior takeover drop of the Node.js install left actions/checkout@v4 (and other JS actions) running inside rust:latest / archlinux:latest with no node on PATH → exec: "node": executable file not found (exit 127).

Fix on cursor/11-forgejo-actions:

  • Restored the Node.js 20 install step before checkout in test.yml, stage.yml, and prod.yml (build job)
  • Also installed nodejs/npm via pacman before checkout in the prod publish job (same class of failure on Arch)
  • Kept earlier changes: cursor/* trigger, PKGBUILD pkgver sync, LICENSE copy

PR #40 is ready for re-review (not merging). Moved to step/review and assigned to @Vylpes.

Addressed the REQUEST_CHANGES on #40. **Cause:** the prior takeover drop of the Node.js install left `actions/checkout@v4` (and other JS actions) running inside `rust:latest` / `archlinux:latest` with no `node` on PATH → `exec: "node": executable file not found` (exit 127). **Fix on `cursor/11-forgejo-actions`:** - Restored the Node.js 20 install step *before* checkout in `test.yml`, `stage.yml`, and `prod.yml` (build job) - Also installed `nodejs`/`npm` via pacman before checkout in the prod publish job (same class of failure on Arch) - Kept earlier changes: `cursor/*` trigger, PKGBUILD pkgver sync, LICENSE copy PR #40 is ready for re-review (not merging). Moved to `step/review` and assigned to @Vylpes.
Vylpes removed their assignment 2026-09-30 13:43:36 +01:00
Member

QA results — release/0.1.0 @ c550383 (PR #40 merged)

Verdict: PASS → moving to step/uat.

Acceptance criteria

Criterion Result
Push to development branches triggers test flow PASS — .forgejo/workflows/test.yml triggers on cursor/*, feature/*, renovate/*, dependabot/*, copilot/*. Successful runs on cursor/11-forgejo-actions (e.g. task 2075).
Push to staging branches triggers stage flow PASS — stage.yml triggers on main, develop, release/*, hotfix/*. Merge to release/0.1.0 ran successfully: https://git.vylpes.xyz/RabbitLabs/calculator/actions/runs/45 (job build success, ~2m).
Push a tag triggers production flow PASS (config) — prod.yml triggers on tags: ['*'] with build + Arch makepkg publish. Live tag run not exercised in this QA (no tag push).

Subtasks / delivered bits

  • Testing / stage / production workflows present
  • Package renamed to vyxcalc (Cargo.toml + PKGBUILD)
  • cursor/* in test workflow
  • Stage syncs PKGBUILD pkgver from Cargo.toml
  • Prod copies LICENSE into build/; PKGBUILD installs via $startdir/LICENSE
  • Node.js bootstrap restored before JS actions in rust/arch containers

Local verification

  • cargo test — 4/4 PASS (tests/calculator.rs: basic arithmetic, invalid expression, invalid numbers, division by zero)
  • cargo build --release — PASS; CLI smoke: vyxcalc cli '2 + 2' → 4, vyxcalc cli '10 / 2' → 5

Notes for UAT

  • Operator: prod publish still needs FORGEJO_TOKEN secret + FORGEJO_URL variable before a real tag release will publish.
  • GUI default mode not smoke-tested in this headless environment (CLI covered).

Assigning to @Vylpes for UAT.

## QA results — `release/0.1.0` @ `c550383` (PR #40 merged) **Verdict: PASS** → moving to `step/uat`. ### Acceptance criteria | Criterion | Result | |---|---| | Push to development branches triggers test flow | **PASS** — `.forgejo/workflows/test.yml` triggers on `cursor/*`, `feature/*`, `renovate/*`, `dependabot/*`, `copilot/*`. Successful runs on `cursor/11-forgejo-actions` (e.g. task 2075). | | Push to staging branches triggers stage flow | **PASS** — `stage.yml` triggers on `main`, `develop`, `release/*`, `hotfix/*`. Merge to `release/0.1.0` ran successfully: https://git.vylpes.xyz/RabbitLabs/calculator/actions/runs/45 (job `build` success, ~2m). | | Push a tag triggers production flow | **PASS (config)** — `prod.yml` triggers on `tags: ['*']` with build + Arch `makepkg` publish. Live tag run not exercised in this QA (no tag push). | ### Subtasks / delivered bits - [x] Testing / stage / production workflows present - [x] Package renamed to `vyxcalc` (`Cargo.toml` + `PKGBUILD`) - [x] `cursor/*` in test workflow - [x] Stage syncs `PKGBUILD` `pkgver` from `Cargo.toml` - [x] Prod copies `LICENSE` into `build/`; PKGBUILD installs via `$startdir/LICENSE` - [x] Node.js bootstrap restored before JS actions in rust/arch containers ### Local verification - `cargo test` — **4/4 PASS** (`tests/calculator.rs`: basic arithmetic, invalid expression, invalid numbers, division by zero) - `cargo build --release` — **PASS**; CLI smoke: `vyxcalc cli '2 + 2'` → `4`, `vyxcalc cli '10 / 2'` → `5` ### Notes for UAT - Operator: prod publish still needs `FORGEJO_TOKEN` secret + `FORGEJO_URL` variable before a real tag release will publish. - GUI default mode not smoke-tested in this headless environment (CLI covered). Assigning to @Vylpes for UAT.
Smithy-bot removed their assignment 2026-10-01 12:27:39 +01:00
Vylpes 2026-10-01 13:25:30 +01:00
  • closed this issue
  • removed the
    step
    uat
    label
Sign in to join this conversation.
No description provided.