-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Refactor integration tests infrastructure #37462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wxiaoguang
merged 27 commits into
go-gitea:main
from
silverwind:cacheable-integration-tests
Apr 29, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
973ae22
Make integration tests cacheable, dedupe Makefile DB targets
silverwind d4e49d9
Chdir to source root in SetupGiteaTestEnv
silverwind 4adf51d
Drop stale /integrations.test from .gitignore
silverwind 32d2f02
Move test cwd anchor out of SetupGiteaTestEnv
silverwind 2ef5389
Use t.Chdir in migration test init
silverwind 9ffdbc4
Make test fixture paths package-relative
silverwind 8568769
Make test-echo render command path package-relative
silverwind 11c0ef4
Anchor test fixture paths at GetGiteaTestSourceRoot
silverwind 3572731
Drop integration benchmarks, superseded by package-level benchmarks
silverwind 9d32c0a
Use GITEA_TEST_ROOT for ini render-command substitution
silverwind d7e4fd5
clean up
wxiaoguang f1afc4a
fix
wxiaoguang 845f7de
fix makefile
wxiaoguang a5fbaa0
fix
wxiaoguang f931b8e
Merge branch 'main' into cacheable-integration-tests
wxiaoguang 5b45220
Drop test-integration binary, stream progress via go test -v
silverwind cf032e3
Capture test logs internally instead of routing through t.Log
silverwind c75829d
Revert "Capture test logs internally instead of routing through t.Log"
silverwind 26bf533
Revert "Drop test-integration binary, stream progress via go test -v"
silverwind 2cb3bd5
Merge branch 'cacheable-integration-tests' of github.com:silverwind/g…
lunny 631f733
Upgrade xgo to 1.26.x
lunny ccd655e
Split e2e CI step so build and test durations are visible
silverwind ae602f6
Fix Test_DropTableColumns skip and rewrite test-integration FIXME
silverwind 73e1a7b
Merge branch 'main' into cacheable-integration-tests
silverwind c8e0df7
Merge branch 'main' into cacheable-integration-tests
silverwind 2b22e24
docke dryrun in parallel
wxiaoguang 54243d7
Merge branch 'main' into cacheable-integration-tests
wxiaoguang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Reusable workflow that performs the container build steps for a single platform. | ||
| # Used by `pull-docker-dryrun.yml` to run builds in parallel per-platform. | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| platform: | ||
| description: 'The target platform(s) to build for (e.g. linux/amd64)' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| build-dryrun: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 | ||
| - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 | ||
| - name: Build rootful image | ||
| uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 | ||
| with: | ||
| context: . | ||
| platforms: ${{ inputs.platform }} | ||
| push: false | ||
| file: Dockerfile | ||
| cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful | ||
| - name: Build rootless image | ||
| uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 | ||
| with: | ||
| context: . | ||
| platforms: ${{ inputs.platform }} | ||
| push: false | ||
| file: Dockerfile.rootless | ||
| cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.