Skip to content

build(build): add concurrency controls to orchestrator workflows#275

Merged
WilliamBerryiii merged 3 commits intomainfrom
build/workflow-concurrency-controls
Jan 25, 2026
Merged

build(build): add concurrency controls to orchestrator workflows#275
WilliamBerryiii merged 3 commits intomainfrom
build/workflow-concurrency-controls

Conversation

@WilliamBerryiii
Copy link
Copy Markdown
Member

Description

Adds workflow-level concurrency controls to all three orchestrator workflows. This prevents unnecessary parallel runs when multiple commits are pushed in quick succession and reduces GitHub Actions resource consumption.

Changes:

  • Added concurrency block to pr-validation.yml with cancel-in-progress: true to cancel stale PR validation runs when new commits arrive
  • Added concurrency block to main.yml with cancel-in-progress: false to prevent cancellation of main branch builds
  • Added concurrency block to weekly-security-maintenance.yml with cancel-in-progress: false for scheduled job protection
  • Updated .cspell/general-technical.txt with missing dictionary terms (carryforward, SCHED, SECCHECK) that were causing pre-existing spell-check failures

Related Issue(s)

Fixes #274

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Model Versions: Only contributions targeting the latest Anthropic and OpenAI models will be accepted. Older model versions (e.g., GPT-3.5, Claude 3) will be rejected.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Sample Prompts (for AI Artifact Contributions)

N/A - This PR does not include AI artifacts.

Testing

  • YAML lint validation passes (npm run lint:yaml)
  • Spell check passes (npm run spell-check)

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

N/A

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Link validation: npm run lint:md-links
  • PowerShell analysis: npm run lint:ps

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

Concurrency Configuration Patterns

Workflow Group Key Cancel In-Progress Rationale
pr-validation.yml workflow-head_ref true Cancel stale PR runs when new commits arrive
main.yml workflow-ref false Protect main branch builds from cancellation
weekly-security-maintenance.yml workflow false Single weekly job, no ref variation needed

Dictionary Updates

Fixed pre-existing spell-check gaps that passed CI due to timing:

⚡ - Generated by Copilot

- Add workflow-level concurrency to pr-validation.yml with cancel-in-progress
- Add workflow-level concurrency to main.yml without cancellation
- Add workflow-level concurrency to weekly-security-maintenance.yml
- Update dictionary with missing terms (carryforward, SCHED, SECCHECK)

Fixes #274

⚡ - Generated by Copilot
@WilliamBerryiii WilliamBerryiii requested a review from a team as a code owner January 24, 2026 18:30
Copilot AI review requested due to automatic review settings January 24, 2026 18:30
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 24, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.44%. Comparing base (ccbdfa3) to head (428d5e1).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   29.40%   29.44%   +0.03%     
==========================================
  Files          14       14              
  Lines        2785     2785              
==========================================
+ Hits          819      820       +1     
+ Misses       1966     1965       -1     
Flag Coverage Δ
pester 29.44% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds GitHub Actions workflow-level concurrency controls to reduce redundant parallel orchestrator runs and lower Actions resource usage, plus fixes pre-existing spell-check dictionary gaps.

Changes:

  • Added concurrency blocks to PR validation, main CI, and weekly security maintenance workflows with appropriate cancel/queue behavior.
  • Updated .cspell dictionary with missing technical terms to eliminate existing spell-check failures.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/pr-validation.yml Adds workflow concurrency with cancellation of superseded PR runs.
.github/workflows/main.yml Adds workflow concurrency to serialize main builds without cancellation.
.github/workflows/weekly-security-maintenance.yml Adds workflow concurrency to prevent overlapping weekly security runs.
.cspell/general-technical.txt Adds missing Codecov and Mermaid diagram terms to the spell-check dictionary.

…sions

- Change group key from github.head_ref to github.event.pull_request.number
- Prevents unrelated fork PRs with same branch name from cancelling each other

🔧 - Generated by Copilot
Copilot AI review requested due to automatic review settings January 25, 2026 00:31
@WilliamBerryiii WilliamBerryiii merged commit c3d2fe9 into main Jan 25, 2026
21 checks passed
@WilliamBerryiii WilliamBerryiii deleted the build/workflow-concurrency-controls branch January 25, 2026 00:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

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.

[Issue]: Add concurrency controls and optimize Codecov workflow efficiency

4 participants