Auto-clone fork for integration test pipeline #3

Merged
delandtj merged 2 commits from development into main 2026-02-10 15:00:16 +00:00
Member

Summary

  • make test-integ now builds the fork Docker image as part of the pipeline
  • Makefile auto-clones the forgejo_fork repo (shallow, development branch) if not present locally, configurable via FORGEJO_FORK_DIR, FORGEJO_FORK_REPO, FORGEJO_FORK_REF
  • CI workflow updated: replaces upstream Forgejo services: block with explicit steps (clone fork, build image, start via compose, test, teardown)
  • Adds if: always() teardown step to clean up containers on failure

Test plan

  • make test-integ passes all 14 tests from clean state
  • Fork directory already present: skips clone, builds image directly
  • CI workflow references correct fork repo and branch
## Summary - `make test-integ` now builds the fork Docker image as part of the pipeline - Makefile auto-clones the `forgejo_fork` repo (shallow, `development` branch) if not present locally, configurable via `FORGEJO_FORK_DIR`, `FORGEJO_FORK_REPO`, `FORGEJO_FORK_REF` - CI workflow updated: replaces upstream Forgejo `services:` block with explicit steps (clone fork, build image, start via compose, test, teardown) - Adds `if: always()` teardown step to clean up containers on failure ## Test plan - [x] `make test-integ` passes all 14 tests from clean state - [x] Fork directory already present: skips clone, builds image directly - [x] CI workflow references correct fork repo and branch
Add fork image build to integration test pipeline
All checks were successful
Build and Test / build (push) Successful in 2m13s
de50d2b75a
test-integ now builds forgejo-test:local from the fork before starting
the container, so the full pipeline works from a clean state.
Clone forgejo fork in CI and Makefile when not present locally
All checks were successful
Build and Test / build (push) Successful in 2m13s
Build and Test / build (pull_request) Successful in 1m50s
d26e9931f5
- Makefile test-integ-build now auto-clones the fork repo (shallow,
  development branch) if FORGEJO_FORK_DIR doesn't exist
- CI workflow clones the fork, builds the image, and runs tests via
  docker-compose instead of using upstream Forgejo as a service
- Adds teardown step to always clean up containers
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_research/forgejo_clients!3
No description provided.