Skip to content

feat: add preflight environment validation via check command.#6724

Draft
NiravTech22 wants to merge 4 commits intoautowarefoundation:mainfrom
NiravTech22:main
Draft

feat: add preflight environment validation via check command.#6724
NiravTech22 wants to merge 4 commits intoautowarefoundation:mainfrom
NiravTech22:main

Conversation

@NiravTech22
Copy link
Copy Markdown

Description

This request introduces a new 'check' command along with a supporting 'check_environment' function to proactively validate development environment prerequisites before runtime .

The goal of this change is to fail fast and provide clear, actionable feedback when required tools, configurations, or dependencies are misconfigured/missing. By centralizing environment verification into a dedicated command, contributors can quickly diagnose setup issues without needing to run deeper workflows or encounter strange runtime errors.

Key improvements:

Adds a dedicated check command to the CLI/tooling surface.

Implements check_environment as a single source of truth for environment validation logic.

Improves developer experience by surfacing missing prerequisites early and explicitly.

Keeps behavior deterministic and non-destructive (read-only checks only).

Fork has been fully synced to ensure no divergence from upstream prior to submission.

How was this PR tested?

This change was PR tested using local manual validation, by running the new 'check' command in a correctly configured IDE to confirm all checks passed successfully. Output clarity and exit behavior were also classified under normal conditions during this test. A failure mode safety test was also run in order to simulate missing/misconfigured prerequisites for confirming if failures were detected reliably, error messages were explicit and actionable, and that there were no partial or misleading success states that occurred. The fork was also synced with upstream prior to applying the changes, and confirmed that there were no merge conflicts or unintended diffs outside the scope of this PR

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 15, 2026

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@NiravTech22 NiravTech22 marked this pull request as draft January 15, 2026 00:08
@NiravTech22 NiravTech22 marked this pull request as draft January 15, 2026 00:08
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.

1 participant