Skip to content

Fix #697: Scope test workflows to PRs and refresh support policy#698

Merged
javihern98 merged 2 commits into
mainfrom
cr-697
May 7, 2026
Merged

Fix #697: Scope test workflows to PRs and refresh support policy#698
javihern98 merged 2 commits into
mainfrom
cr-697

Conversation

@javihern98
Copy link
Copy Markdown
Contributor

@javihern98 javihern98 commented May 7, 2026

Summary

Implements the code-changeable parts of #697 plus a related CI hygiene fix:

  • .github/workflows/testing.yml and .github/workflows/ubuntu_test_24_04.yml now trigger only on pull_request targeting main or 1.6.X. Push triggers and the unused duckdb/main/dev entries are removed; workflow_dispatch stays on testing.yml for manual debugging runs.
  • Both workflows now declare a workflow-level concurrency group keyed on ${{ github.workflow }}-${{ github.head_ref || github.ref }} with cancel-in-progress: true, so pushing a new commit to a PR cancels the in-flight run on the same PR instead of letting stale runs accumulate. For workflow_dispatch the fallback to github.ref keeps the same per-branch grouping.
  • SECURITY.md rewritten so the policy is stated in prose (latest released minor + 1.6.x LTS) with the table updated from the stale 1.5.x baseline to 1.6.x.

Important

Branch protection rules for main and 1.6.X are not included in this PR — they must be configured by an admin through Settings -> Branches after this merges. The remaining checklist items in #697 (require PR, require approvals, require status checks, linear history, no admin bypass, etc.) are tracked there.

Checklist

  • Code quality checks pass (ruff format, ruff check, mypy) — N/A: pure YAML/Markdown changes, no Python touched.
  • Tests pass (pytest) — N/A for this change; the workflow trigger change itself will be exercised once this PR runs CI.
  • Documentation updated (if applicable) — SECURITY.md updated.

Impact / Risk

  • Breaking changes: workflows no longer run on direct pushes to main (or to duckdb/main/dev). Once branch protection is enabled, the PR-only triggers are sufficient because main can only receive code via PRs anyway. Until branch protection lands, a direct push to main would skip CI — coordinate the admin step soon after this merges.
  • Concurrency cancellation only affects in-flight runs for the same PR/branch; PRs from different source branches still run independently.
  • Data/SDMX compatibility: none.
  • Notes for release/changelog: drops 1.5.x as a supported security line; 1.6.x is now the LTS line alongside the latest minor.

Notes

Closes #697

javihern98 added 2 commits May 7, 2026 11:06
- testing.yml and ubuntu_test_24_04.yml now run only on pull requests
  targeting main or 1.6.X, dropping push triggers and the obsolete
  duckdb/main and dev branch entries.
- SECURITY.md restated as "latest released minor + 1.6.x LTS" with the
  table updated from the stale 1.5.x baseline.

Branch protection rules for main and 1.6.X still need to be applied
manually by an admin via Settings -> Branches; that part of #697 cannot
be done from code.
Adds a workflow-level concurrency group keyed on the workflow name and
the PR head ref (falling back to github.ref for workflow_dispatch). New
runs in the same group cancel the in-flight one, so iterating on a PR
no longer queues stale runs alongside the latest.
@javihern98 javihern98 marked this pull request as ready for review May 7, 2026 09:48
@javihern98 javihern98 requested review from a team and mla2001 May 7, 2026 09:48
@javihern98 javihern98 enabled auto-merge (squash) May 7, 2026 09:49
Copy link
Copy Markdown
Contributor

@mla2001 mla2001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine! 😊

@javihern98 javihern98 merged commit c5af45a into main May 7, 2026
20 checks passed
@javihern98 javihern98 deleted the cr-697 branch May 7, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden main and 1.6.X branches, scope test workflows, and refresh support policy

2 participants