Skip to content

Load workflowcheck config from an environment variable - #3232

Open
DOKL57 wants to merge 2 commits into
temporalio:mainfrom
DOKL57:workflowcheck-config-env
Open

DOKL57 wants to merge 2 commits into
temporalio:mainfrom
DOKL57:workflowcheck-config-env

Conversation

@DOKL57

@DOKL57 DOKL57 commented Nov 23, 2026

Copy link
Copy Markdown

What changed?

workflowcheck check reads a .properties file from TEMPORAL_WORKFLOWCHECK_CONFIG. It loads defaults first, then the environment file, then each explicit --config file in argument order. --no-default-config still skips the built-in rules. The CLI help, README, and changelog document the new option.

Why?

CI jobs can select a rules file through their environment and reuse the same analyzer command. This implements the environment-based config-file item in #2770.

Breaking changes?

None. Unset and empty values preserve current behavior.

Validation

  • ./gradlew :temporal-workflowcheck:test
  • ./gradlew spotlessCheck test :temporal-workflowcheck:shadowJar --max-workers=2 --continue completed testing across all modules. The test server had one timing-sensitive assertion failure.
  • ./gradlew spotlessCheck :temporal-test-server:test :temporal-workflowcheck:test :temporal-workflowcheck:shadowJar --max-workers=1 --continue passed, including the full test server suite.
  • Ran the built JAR with a path containing spaces and verified the exit codes for environment-only and explicit override configurations.

Let CI select a rules file through its environment while preserving explicit config precedence.
@DOKL57
DOKL57 requested a review from a team as a code owner November 23, 2026 08:40
@CLAassistant

CLAassistant commented Nov 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
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.

2 participants