Closed igoumiri closed 1 year ago
Relatedly, I ran this https://github.com/LLNL/MuyGPyS/blob/a849e40177aaf30e4bfd7c6dbaded8f3db8ff887/.github/workflows/develop-test.yml#L33-L34
manually and it found a lot of issues. Is --exit-zero
actually making it pass when it shouldn't?
That's a good catch Imene. The second comment you added suggests that if there is a failure it will be reported as a warning, right?
I think so but you would only see the warnings if you looked for them.
Is
--exit-zero
actually making it pass when it shouldn't?
Actually, yes. flake8
is checking for syntax issues in the library. I had to add --exit-zero
back when the config object worked differently, because we had to do some things that PEP guides do not endorse. We can turn the crashes back on now that the that process has been streamlined, although we'll have to ignore some error codes like F401
because of how MuyGPyS._src
works. Removing --exit-zero
will cause more CI crashes, since it will be a stickler for PEP-correct code, but it will also force us to maintain higher-quality code, so it might be worthwhile. Would y'all like me to turn --exit-zero
off?
This typo
You're right, that is a mistake. I'll change it.
They might need to be chained with
&&
.
I don't think that is necessary.
PR #133 fixes the bug and updates the formatting throughout to match PEP requirements (where possible), and updates the flake8
linting call so that it now finds no issues. There are 2 items blocking me from merging this in:
--exit-zero
, since if we do small formatting foibles (e.g. unused imports) will cause the CI to crash until they are fixed. I am not opposed prima facie, but this change will certainly result in more failed CI checks for developers due to small issues. @alecmdunton and @igoumiri, please let me know what behavior you prefer.I'm fine either way but I don't mind more failed CI checks. I rarely get things right on the first try anyway. 🙂
Also, I opened the issue because I thought failing tests were undetected. If that's not the case, we can close it.
Let's turn off --exit-zero and clean up the library. It will be a pain at first but in the long run good.
Ok sounds good. Everyone might want to start practicing running flake8 before pushing to PRs. I'll wait to merge into develop until after the anisotropic PR gets merged.
I addressed this with PR #133. It is prudent to run sh scripts/flake/fatal.sh
and sh scripts/flake/issues.sh
before pushing commits from now on.
This typo https://github.com/LLNL/MuyGPyS/blob/a849e40177aaf30e4bfd7c6dbaded8f3db8ff887/.github/workflows/develop-test.yml#L42
makes me think that the tests can fail undetected. They might need to be chained with
&&
.