Add support for SPECKIT_WORKFLOW_RUN_ID override#2742
Merged
Conversation
Contributor
Author
Completed in |
Copilot
AI
changed the title
[WIP] Add support for SPECKIT_WORKFLOW_RUN_ID override
Add support for SPECKIT_WORKFLOW_RUN_ID override
May 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an environment-variable override for workflow run IDs so operators/CI can force a stable run_id without changing call sites, while preserving explicit run_id argument precedence.
Changes:
- Read
SPECKIT_WORKFLOW_RUN_IDinsideWorkflowEngine.execute()whenrun_idis not provided. - Preserve precedence: an explicitly passed
run_idcontinues to win over the environment override. - Add tests for env override behavior and explicit-arg precedence.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/workflows/engine.py |
Applies SPECKIT_WORKFLOW_RUN_ID as the effective run id when run_id is None. |
tests/test_workflows.py |
Adds regression tests asserting env override behavior and precedence rules. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
mnriem
approved these changes
May 29, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements support for overriding workflow run IDs via the
SPECKIT_WORKFLOW_RUN_IDenvironment variable.What changed
SPECKIT_WORKFLOW_RUN_IDhandling in workflow execution so it is used when no explicitrun_idargument is provided.run_idstill overrides the environment variable.run_idprecedence over env overrideValidation
ruff check srcpassed