-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix spurious failure of the check/all script #6611
Conversation
Problem: check/format-incremental fails when invoked with an empty string, because it is not a valid git revision. Solution: Use shell array to store the revision in check/all, that way it is not passed as a sub-command argument if unset.
Ensure grep matches `?` as a literal character.
Allow git tags which point to a commit.
Problem: check/mypy passes in the mypy.env.txt environment, but fails on "unnecessary type ignore" in dev.env.txt virtual environment, because it installs IPython with its type information. Solution: Ignore IPython in type checks.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6611 +/- ##
=======================================
Coverage 97.81% 97.81%
=======================================
Files 1063 1063
Lines 91761 91761
=======================================
+ Hits 89755 89759 +4
+ Misses 2006 2002 -4 ☔ View full report in Codecov by Sentry. |
@95-martin-orion - can you PTAL? |
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.
I haven't looked at this (or Cirq code in general) in a very long time, but nothing about this stands out as obviously wrong to me.
- Avoid passing an empty string argument to `check/format-incremental` when invoked from `check/all` - Improve validation of the git-revision argument in check scripts by allowing git tags that resolve to a commit - Fix invalid use of `?` in egrep pattern - Make check/mypy pass in the dev.env.txt virtual environment
- Avoid passing an empty string argument to `check/format-incremental` when invoked from `check/all` - Improve validation of the git-revision argument in check scripts by allowing git tags that resolve to a commit - Fix invalid use of `?` in egrep pattern - Make check/mypy pass in the dev.env.txt virtual environment
Avoid passing an empty string argument to
check/format-incremental
when invoked from
check/all
Improve validation of the git-revision argument in check scripts by
allowing git tags that resolve to a commit
Fix invalid use of
?
in egrep patternMake check/mypy pass in the dev.env.txt virtual environment