You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove all dev dependencies before provider yaml check #60662
Currently scripts/in_container/run_provider_yaml_files_check.py walks through all provider "source" files and does some checks (like whether classes mentioned in provider.yaml files as hooks are actually hooks.
It is run inside breeze image as result of this pre-comit hook
We should make sure that when the script is run inside breeze CI docker files we run uv sync --no-dev.
Ideally we should do it separately for each provider before re-importing each provider, but that might take a long time and require spawning new interpreters for each provider.
If we do it "per provider" - this would also allow to automatically detect cases, where one provider has an optional cross-provider dependency where it's optionality is not handled properly.
Feel free - just make sure that to understand it- there are number of moving parts there - such as calling CI image from whithin a prek hook and handlng single files versus "all files" there
The script imports jsonpath_ng at the top level, but it's a dev dependency. Simply adding uv sync --no-dev would cause an ImportError when the script tries to use it.
My Solution
Added a sync_dependencies_without_dev() function that runs:
This strips dev dependencies to create an environment closer to production, helping detect unhandled optional cross-provider dependencies. The script exits if this fails, ensuring validation doesn't run with dev dependencies still present.
Converted the jsonpath_ng import to a lazy import inside check_providers_are_mentioned_in_issue_template() to avoid the ImportError after dev dependencies are removed.
This approach ensures the validation always runs without dev dependencies while still allowing the script to access jsonpath_ng when needed for the issue template check.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Hi! I'd like to take a look at this issue.
I noticed that there was a previous attempt in PR #60728 that introduces uv sync --no-dev before running the provider YAML checks.
I'll review the existing implementation and CI scripts to see if there are remaining improvements needed or if the approach can be simplified.
Activity
GauravFrontend commentedon Jan 16, 2026
I will start working on a PR for this!
potiuk commentedon Jan 16, 2026
Feel free - just make sure that to understand it- there are number of moving parts there - such as calling CI image from whithin a
prek hookand handlng single files versus "all files" thereFury0508 commentedon Jan 17, 2026
Hi! I've implemented a fix for this in PR #60728.
The Problem
The script imports
jsonpath_ngat the top level, but it's a dev dependency. Simply addinguv sync --no-devwould cause anImportErrorwhen the script tries to use it.My Solution
sync_dependencies_without_dev()function that runs:This strips dev dependencies to create an environment closer to production, helping detect unhandled optional cross-provider dependencies. The script exits if this fails, ensuring validation doesn't run with dev dependencies still present.
jsonpath_ngimport to a lazy import insidecheck_providers_are_mentioned_in_issue_template()to avoid theImportErrorafter dev dependencies are removed.This approach ensures the validation always runs without dev dependencies while still allowing the script to access
jsonpath_ngwhen needed for the issue template check.Remove dev dependencies before provider YAML check
Add uv sync --no-dev before provider YAML checks
potiuk commentedon Mar 2, 2026
@GauravFrontend We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Bhuvan-08 commentedon Mar 9, 2026
Hi! I'd like to take a look at this issue.
I noticed that there was a previous attempt in PR #60728 that introduces
uv sync --no-devbefore running the provider YAML checks.I'll review the existing implementation and CI scripts to see if there are remaining improvements needed or if the approach can be simplified.
Add uv sync --no-dev before provider YAML checks (#60728)
Add uv sync --no-dev before provider YAML checks (apache#60728)
Add uv sync --no-dev before provider YAML checks (apache#60728)