-
Notifications
You must be signed in to change notification settings - Fork 1
(fix) invalid workflows by commenting #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,8 +113,9 @@ def add_dependents(dirs_to_eval: Set[str], dependents: dict) -> List[str]: | |
|
||
|
||
def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]: | ||
if job == "test-pydantic": | ||
return _get_pydantic_test_configs(dir_) | ||
# Commenting out missing workflow reference | ||
# if job == "test-pydantic": | ||
# return _get_pydantic_test_configs(dir_) | ||
|
||
if dir_ == "libs/core": | ||
py_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
@@ -214,7 +215,7 @@ def _get_configs_for_multi_dirs( | |
dirs_to_run["lint"] | dirs_to_run["test"] | dirs_to_run["extended-test"], | ||
dependents, | ||
) | ||
elif job in ["test", "compile-integration-tests", "dependencies", "test-pydantic"]: | ||
elif job in ["test", "compile-integration-tests", "dependencies"]: | ||
Comment on lines
217
to
+218
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
dirs = add_dependents( | ||
dirs_to_run["test"] | dirs_to_run["extended-test"], dependents | ||
) | ||
|
@@ -321,12 +322,13 @@ def _get_configs_for_multi_dirs( | |
"extended-tests", | ||
"compile-integration-tests", | ||
"dependencies", | ||
"test-pydantic", | ||
# "test-pydantic", | ||
] | ||
} | ||
map_job_to_configs["test-doc-imports"] = ( | ||
[{"python-version": "3.12"}] if docs_edited else [] | ||
) | ||
# Commenting out missing workflow | ||
# map_job_to_configs["test-doc-imports"] = ( | ||
# [{"python-version": "3.12"}] if docs_edited else [] | ||
# ) | ||
Comment on lines
+328
to
+331
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
for key, value in map_job_to_configs.items(): | ||
json_output = json.dumps(value) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ jobs: | |
extended-tests: ${{ steps.set-matrix.outputs.extended-tests }} | ||
compile-integration-tests: ${{ steps.set-matrix.outputs.compile-integration-tests }} | ||
dependencies: ${{ steps.set-matrix.outputs.dependencies }} | ||
test-doc-imports: ${{ steps.set-matrix.outputs.test-doc-imports }} | ||
test-pydantic: ${{ steps.set-matrix.outputs.test-pydantic }} | ||
# test-doc-imports: ${{ steps.set-matrix.outputs.test-doc-imports }} | ||
# test-pydantic: ${{ steps.set-matrix.outputs.test-pydantic }} | ||
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
lint: | ||
name: cd ${{ matrix.job-configs.working-directory }} | ||
needs: [ build ] | ||
|
@@ -70,31 +70,33 @@ jobs: | |
python-version: ${{ matrix.job-configs.python-version }} | ||
secrets: inherit | ||
|
||
test-pydantic: | ||
name: cd ${{ matrix.job-configs.working-directory }} | ||
needs: [ build ] | ||
if: ${{ needs.build.outputs.test-pydantic != '[]' }} | ||
strategy: | ||
matrix: | ||
job-configs: ${{ fromJson(needs.build.outputs.test-pydantic) }} | ||
fail-fast: false | ||
uses: ./.github/workflows/_test_pydantic.yml | ||
with: | ||
working-directory: ${{ matrix.job-configs.working-directory }} | ||
pydantic-version: ${{ matrix.job-configs.pydantic-version }} | ||
secrets: inherit | ||
# Commenting out missing workflow reference | ||
# test-pydantic: | ||
# name: cd ${{ matrix.job-configs.working-directory }} | ||
# needs: [ build ] | ||
# if: ${{ needs.build.outputs.test-pydantic != '[]' }} | ||
# strategy: | ||
# matrix: | ||
# job-configs: ${{ fromJson(needs.build.outputs.test-pydantic) }} | ||
# fail-fast: false | ||
# uses: ./.github/workflows/_test_pydantic.yml | ||
# with: | ||
# working-directory: ${{ matrix.job-configs.working-directory }} | ||
# pydantic-version: ${{ matrix.job-configs.pydantic-version }} | ||
# secrets: inherit | ||
Comment on lines
+73
to
+86
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
test-doc-imports: | ||
needs: [ build ] | ||
if: ${{ needs.build.outputs.test-doc-imports != '[]' }} | ||
strategy: | ||
matrix: | ||
job-configs: ${{ fromJson(needs.build.outputs.test-doc-imports) }} | ||
fail-fast: false | ||
uses: ./.github/workflows/_test_doc_imports.yml | ||
secrets: inherit | ||
with: | ||
python-version: ${{ matrix.job-configs.python-version }} | ||
# Commenting out missing workflow reference | ||
# test-doc-imports: | ||
# needs: [ build ] | ||
# if: ${{ needs.build.outputs.test-doc-imports != '[]' }} | ||
# strategy: | ||
# matrix: | ||
# job-configs: ${{ fromJson(needs.build.outputs.test-doc-imports) }} | ||
# fail-fast: false | ||
# uses: ./.github/workflows/_test_doc_imports.yml | ||
# secrets: inherit | ||
# with: | ||
# python-version: ${{ matrix.job-configs.python-version }} | ||
Comment on lines
+88
to
+99
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
compile-integration-tests: | ||
name: cd ${{ matrix.job-configs.working-directory }} | ||
|
@@ -159,7 +161,7 @@ jobs: | |
echo "$STATUS" | grep 'nothing to commit, working tree clean' | ||
ci_success: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
name: "CI Success" | ||
needs: [build, lint, test, compile-integration-tests, extended-tests, test-doc-imports, test-pydantic] | ||
needs: [build, lint, test, compile-integration-tests, extended-tests] | ||
if: | | ||
always() | ||
runs-on: ubuntu-latest | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a comment explaining why these workflows are being commented out, and if there are plans to re-enable them in the future. This will help future developers understand the context of these changes.