-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Migrate CI-basictests from jenkins-build-scripts to in-repo test/infra #5525
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
Open
renecannao
wants to merge
22
commits into
v3.0
Choose a base branch
from
v3.0-ci260322
base: v3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5d02ad5
Add basictests TAP group and sysbench to CI base image
renecannao 75d958f
Fix hardcoded /home/rene/proxysql paths in pre-proxysql.bash scripts
renecannao 0c58d1c
Fix REPO_ROOT derivation: 4 levels up from test/tap/groups/<name>/
renecannao 3389217
Default WITHGCOV=0 in env-isolated.bash
renecannao 6d90bc2
Source group env.sh inside test runner container
renecannao b93a1a1
Remove jenkins-build-scripts dependencies from test scripts
renecannao 29fec9d
Add hostgroup aliasing hook for basictests group
renecannao 9cf64fd
Fix failover test: use DEFAULT_MYSQL_INFRA for orchestrator DNS names
renecannao c1eb55d
Add CI-legacy-g2 and CI-legacy-g2-genai caller workflows
renecannao bc42730
Add GitHub Actions CI/CD documentation
renecannao eb48756
Fix mysql84+ pre-proxysql.bash: remove infra-default, fix infra paths
renecannao 75d3246
Skip missing unit test binaries instead of counting as failures
renecannao 4dfaedc
Revert "Skip missing unit test binaries instead of counting as failures"
renecannao 5773411
Fix unit test Makefile: auto-detect feature flags from libproxysql.a
renecannao 98fb842
Add test/tap/tests/unit/ to TAP_WORKDIRS
renecannao 16e9413
Pass MAKECMDGOALS to unit test submake
renecannao f2db55f
Fix basictests hostgroup hook: move instead of copy to avoid monitor …
renecannao 648852b
Add debug filters to infra-mysql57 infra-config.sql
renecannao 7df23de
Remove error suppression from ProxySQL config dump queries
renecannao 09e9207
Move reg_test_3765_ssl_pollout-t from legacy-g2 to legacy-g5
renecannao d087285
Enable coverage when either WITHGCOV or COVERAGE_MODE is set
renecannao 879ebdc
Fix startup order and add readiness check in test runner
renecannao 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: CI-legacy-g2-genai | ||
| run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} ${{ github.workflow }} ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.sha }}' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| workflow_run: | ||
| workflows: [ CI-trigger ] | ||
| types: [ in_progress ] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| run: | ||
| uses: sysown/proxysql/.github/workflows/ci-legacy-g2-genai.yml@GH-Actions | ||
| secrets: inherit | ||
| with: | ||
| trigger: ${{ toJson(github) }} |
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,19 @@ | ||
| name: CI-legacy-g2 | ||
| run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} ${{ github.workflow }} ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.sha }}' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| workflow_run: | ||
| workflows: [ CI-trigger ] | ||
| types: [ in_progress ] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| run: | ||
| uses: sysown/proxysql/.github/workflows/ci-legacy-g2.yml@GH-Actions | ||
| secrets: inherit | ||
| with: | ||
| trigger: ${{ toJson(github) }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid passing the full Line 19 forwards Suggested change with:
- trigger: ${{ toJson(github) }}
+ trigger: ${{ toJson(fromJSON(format(
+ '{{"event_name":"{0}","workflow":"{1}","ref_name":"{2}","sha":"{3}","run_id":"{4}"}}',
+ github.event_name,
+ github.workflow,
+ github.ref_name,
+ github.sha,
+ github.run_id
+ ))) }}🤖 Prompt for AI Agents |
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
For GitHub Actions reusable workflows, what are the security/reproducibility recommendations for using branch refs vs commit SHAs injobs.<job_id>.uses?💡 Result:
For GitHub Actions reusable workflows, in jobs.<job_id>.uses, use commit SHAs instead of branch refs for optimal security and reproducibility. Security: Pinning to a full-length commit SHA provides immutability, preventing supply chain attacks where a bad actor pushes malicious code to a branch or moves a tag. Branches and tags can change, allowing potential backdoors without SHA collision. Official GitHub docs explicitly recommend SHA pinning for both actions and reusable workflows, stating it is the safest option. GitHub offers policies to enforce SHA pinning. Reproducibility: SHAs ensure the exact same workflow version is used every time, guaranteeing consistent behavior across runs. Branch refs fetch the latest commit on that branch, which may change between runs (e.g., new pushes), leading to non-deterministic outcomes. When re-running jobs with non-SHA refs, it may pull updated versions. Tags are better than branches but still mutable if repository access is compromised. Alternatives: Tags from verified creators are acceptable if SHA pinning is inconvenient, but less secure. For same-repo local references (./.github/workflows/file.yml), it uses the caller's commit, offering reproducibility without explicit SHA. Use Dependabot for updates. Example: jobs: my-job: uses: owner/repo/.github/workflows/reusable.yml@abc123def4567890abcdef1234567890abcdef12 # full SHA
Citations:
Pin the reusable workflow to a commit SHA.
Line 16 uses
@GH-Actions(mutable branch ref). This allows the caller to execute different workflow code over time without any change in this repository, creating reproducibility and supply chain risks. GitHub's official security guidance recommends pinning to a full-length commit SHA as the safest option. Branch refs can drift and enable potential backdoors if the branch is moved or updated.Suggested change
🤖 Prompt for AI Agents