Skip to content

Combine file checks with build checks back into a single workflow file#1058

Merged
mhucka merged 29 commits into
tensorflow:masterfrom
mhucka:streamline-file-check-ci
May 3, 2026
Merged

Combine file checks with build checks back into a single workflow file#1058
mhucka merged 29 commits into
tensorflow:masterfrom
mhucka:streamline-file-check-ci

Conversation

@mhucka
Copy link
Copy Markdown
Member

@mhucka mhucka commented May 2, 2026

Previously, I tried to make ci-file-checks.yaml be efficient and skip running some checks when they were not relevant to the files changed in a PR. However, the maintenance has been higher than hoped, and other team members didn't like the arrangement. Moreover, the overall CI workflow execution time for TFQ is bounded by the build checks, so skipping some file checks did not reduce overall CI time. While it is obviously best to save CPU cycles (= electricity = energy) as much as possible by not running unnecessary programs, the tradeoffs still argue against keeping the current ci-file-checks.yaml approach.

So, this PR:

  • simplifies the file checks into a single job
  • integrates that file check job into ci-build-checks.yaml
  • renames the combined result to ci.yaml
  • removes ci-file-checks.yaml
  • removes the use of GitHub problem-matchers, to simplify things further

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 replaces a YAML lint problem matcher with a new configuration for yapf diffs. A review comment correctly identified that the regular expression for parsing diff hunk headers was too restrictive, as it failed to account for cases where line counts are omitted in single-line changes; a suggestion was provided to make the line range optional.

Comment thread .github/problem-matchers/yapf.json Outdated
mhucka and others added 13 commits May 2, 2026 00:45
The script `ci_validate_tutorials.sh` installs it, and besides, the
version installed by this `ci.yaml` didn't match the script's version.
The last step was meant to call `scripts/format_ipynb.sh`, but that
script doesn't check the format; it reformats the files. So, let's skip
that last step.
There's not enough cause in the way this will be used.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@mhucka
Copy link
Copy Markdown
Member Author

mhucka commented May 2, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 replaces the yamllint problem matcher with a new configuration for yapf-diff. The new yapf.json file contains invalid JSON due to unescaped backslashes in regular expressions and lacks necessary properties like severity and loop, which are required for the problem matcher to function correctly across multiple hunks.

Comment thread .github/problem-matchers/yapf.json Outdated
@mhucka mhucka marked this pull request as ready for review May 2, 2026 06:08
@mhucka mhucka merged commit 27e8718 into tensorflow:master May 3, 2026
5 checks passed
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