fix: handle legacy Woodpecker mosaic credentials #522

Open
jason.woltje wants to merge 4 commits from fix/woodpecker-wrapper-legacy-mosaic into main
Owner

Summary

  • Allow WOODPECKER_INSTANCE=mosaic to fall back to legacy flat Woodpecker credentials when nested mosaic credentials are absent.
  • Preserve explicit named-instance behavior for future nested Woodpecker credentials.
  • Fix Woodpecker v3 pipeline pagination from per_page to perPage in pipeline-list and latest pipeline status lookup.

Verification

  • bash -n packages/mosaic/framework/tools/_lib/credentials.sh
  • bash -n packages/mosaic/framework/tools/woodpecker/pipeline-list.sh
  • bash -n packages/mosaic/framework/tools/woodpecker/pipeline-status.sh
  • load_credentials woodpecker resolves ci.mosaicstack.dev with flat credentials.
  • WOODPECKER_INSTANCE=mosaic load_credentials woodpecker resolves flat credentials instead of failing with woodpecker.mosaic.url not found.
  • load_credentials woodpecker-mosaic resolves flat credentials for backward compatibility.
  • WOODPECKER_INSTANCE=mosaic packages/mosaic/framework/tools/woodpecker/pipeline-list.sh -r ddk/ai-bma -l 5 returns exactly five pipelines.
  • packages/mosaic/framework/tools/woodpecker/pipeline-status.sh -r mosaicstack/stack resolves the latest pipeline via perPage=1.
## Summary - Allow WOODPECKER_INSTANCE=mosaic to fall back to legacy flat Woodpecker credentials when nested mosaic credentials are absent. - Preserve explicit named-instance behavior for future nested Woodpecker credentials. - Fix Woodpecker v3 pipeline pagination from per_page to perPage in pipeline-list and latest pipeline status lookup. ## Verification - bash -n packages/mosaic/framework/tools/_lib/credentials.sh - bash -n packages/mosaic/framework/tools/woodpecker/pipeline-list.sh - bash -n packages/mosaic/framework/tools/woodpecker/pipeline-status.sh - load_credentials woodpecker resolves ci.mosaicstack.dev with flat credentials. - WOODPECKER_INSTANCE=mosaic load_credentials woodpecker resolves flat credentials instead of failing with woodpecker.mosaic.url not found. - load_credentials woodpecker-mosaic resolves flat credentials for backward compatibility. - WOODPECKER_INSTANCE=mosaic packages/mosaic/framework/tools/woodpecker/pipeline-list.sh -r ddk/ai-bma -l 5 returns exactly five pipelines. - packages/mosaic/framework/tools/woodpecker/pipeline-status.sh -r mosaicstack/stack resolves the latest pipeline via perPage=1.
jason.woltje added 1 commit 2026-05-25 16:28:33 +00:00
fix: handle legacy woodpecker mosaic credentials
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
fd874649e8
jason.woltje force-pushed fix/woodpecker-wrapper-legacy-mosaic from fd874649e8 to 410ada409c 2026-05-25 16:29:33 +00:00 Compare
jason.woltje added 1 commit 2026-05-25 19:08:50 +00:00
fix(ci): avoid postgres service collision in k8s backend
Some checks failed
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled
2d4d799c26
jason.woltje added 1 commit 2026-05-25 19:19:55 +00:00
fix(git): pass explicit repo to Gitea wrappers
Some checks failed
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled
4741b3e16f
jason.woltje added 1 commit 2026-05-25 19:20:16 +00:00
fix(git): avoid duplicate gh repo flag in pr-diff
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/manual/ci Pipeline was successful
2f5b6ca2e7
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/manual/ci Pipeline was successful
This pull request has changes conflicting with the target branch.
  • packages/mosaic/framework/tools/git/issue-list.sh
  • packages/mosaic/framework/tools/git/pr-list.sh
  • packages/mosaic/framework/tools/git/pr-view.sh
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/woodpecker-wrapper-legacy-mosaic:fix/woodpecker-wrapper-legacy-mosaic
git checkout fix/woodpecker-wrapper-legacy-mosaic
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#522