-
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?
Conversation
…c-imports in GitHub Actions and update related configurations in check_diff.py.
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.
Hello @teetangh, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
This pull request addresses invalid workflows by commenting out references to test-doc-imports
and test-pydantic
in .github/scripts/check_diff.py
and .github/workflows/check_diffs.yml
. These workflows appear to be missing or invalid, and the changes prevent errors related to these missing workflows.
Highlights
- Workflow Fix: Comments out references to the
test-pydantic
workflow in.github/scripts/check_diff.py
to prevent errors due to a missing workflow definition. Specifically, the conditional logic that executes the pydantic tests is disabled. - Workflow Update: Removes
test-pydantic
from the list of jobs that require dependents in.github/scripts/check_diff.py
. - Workflow Configuration: Comments out references to the
test-doc-imports
workflow in.github/scripts/check_diff.py
to prevent errors due to a missing workflow definition. The conditional logic that executes the doc imports tests is disabled. - Workflow Definition: Comments out the definitions for the
test-pydantic
andtest-doc-imports
jobs in.github/workflows/check_diffs.yml
. - CI Success Condition: Removes
test-doc-imports
andtest-pydantic
from the list of needs for theci_success
job in.github/workflows/check_diffs.yml
.
Changelog
- .github/scripts/check_diff.py
- Comments out the
test-pydantic
workflow reference in_get_configs_for_single_dir
function (lines 116-118). - Removes
test-pydantic
from the list of jobs in theelif
condition on line 217. - Comments out the
test-pydantic
entry inmap_job_to_configs
dictionary (line 325). - Comments out the
test-doc-imports
entry inmap_job_to_configs
dictionary (lines 328-331).
- Comments out the
- .github/workflows/check_diffs.yml
- Comments out
test-doc-imports
andtest-pydantic
from the outputs list in thebuild
job (lines 43-44). - Comments out the entire
test-pydantic
job definition (lines 73-86). - Comments out the entire
test-doc-imports
job definition (lines 88-99). - Removes
test-doc-imports
andtest-pydantic
from theneeds
list for theci_success
job (line 162).
- Comments out
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Trivia time!
What is YAML, the language used to define GitHub Actions workflows, short for?
Click here for the answer
YAML stands for "YAML Ain't Markup Language". It's a recursive acronym, emphasizing that YAML is a data serialization language, not a markup language.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
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.
Code Review
This pull request aims to fix invalid workflows by commenting out references to the test-pydantic
and test-doc-imports
workflows in the .github/scripts/check_diff.py
and .github/workflows/check_diffs.yml
files. The changes seem reasonable given the context of missing workflows.
Merge Readiness
The changes in this pull request address the issue of invalid workflows by commenting out the references to the missing workflows. Given that there are no critical or high severity issues, the pull request appears to be ready for merging. However, I am unable to directly approve the pull request, and it is recommended that other reviewers examine the changes before merging.
# Commenting out missing workflow reference | ||
# if job == "test-pydantic": | ||
# return _get_pydantic_test_configs(dir_) |
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.
) | ||
elif job in ["test", "compile-integration-tests", "dependencies", "test-pydantic"]: | ||
elif job in ["test", "compile-integration-tests", "dependencies"]: |
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.
# Commenting out missing workflow | ||
# map_job_to_configs["test-doc-imports"] = ( | ||
# [{"python-version": "3.12"}] if docs_edited else [] | ||
# ) |
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.
# test-doc-imports: ${{ steps.set-matrix.outputs.test-doc-imports }} | ||
# test-pydantic: ${{ steps.set-matrix.outputs.test-pydantic }} |
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.
# 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 |
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.
# 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 }} |
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.
@@ -159,7 +161,7 @@ | |||
echo "$STATUS" | grep 'nothing to commit, working tree clean' | |||
ci_success: |
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.
No description provided.