Skip to content

coverage - fix some issues and make it hard for them to happen again - #2121

Merged
jeremylt merged 2 commits into
mainfrom
zach/lcov-fixes
Dec 3, 2026
Merged

jeremylt merged 2 commits into
mainfrom
zach/lcov-fixes

Conversation

@zatkins-dev

Copy link
Copy Markdown
Collaborator

Purpose:

Fix bugs causing LCOV to fail.

Make LCOV happen in the main script on Noether to cause loud failures.

LLM/GenAI Disclosure:

None

@jeremylt

Copy link
Copy Markdown
Member

LCOV regularly has errors processing files dues to oddities around timestamps, so I dunno if we want a hard fail in general

@zatkins-dev

Copy link
Copy Markdown
Collaborator Author

Not sure I know what you mean. Most of the errors i've seen since cleaning up the command have been pretty specific and reproducible (this float error has been there for a minute). I could also figure out how to have it be a pipeline warning if that's would be better.

@jeremylt

Copy link
Copy Markdown
Member

I can't find a good example, met something is sometimes wonky either when we force push or when jobs don't get cleaned up correctly and there's errors that state something about overwriting files with different time steps.

We might need to have a 'on failure' step?

@zatkins-dev

Copy link
Copy Markdown
Collaborator Author

If you set the allow_failure with specific error codes, it will mark it as passing with warnings. We could use that to allow coverage specifically to fail, but still see that it's something we should double check.

@zatkins-dev
zatkins-dev force-pushed the zach/lcov-fixes branch 2 times, most recently from f185dd7 to c3dfdce Compare December 2, 2026 00:31
@zatkins-dev

Copy link
Copy Markdown
Collaborator Author

Okay the coverage drop here is expected, since before this we didn't have float magma coverage at all.

@jeremylt

jeremylt commented Dec 2, 2026

Copy link
Copy Markdown
Member

do you have a summary of what the changes entail at a high level? they pass and the logs look nicer

@jeremylt

jeremylt commented Dec 2, 2026

Copy link
Copy Markdown
Member

it does look like some f90 files are flaky, which doesn't surprise me

@zatkins-dev

Copy link
Copy Markdown
Collaborator Author

Yeah -- the changes are actually very minor. I moved the coverage report generation and upload into the main job section of the gitlab CI jobs. The float one is a bit more involved; coverage files are tied to the executable. Since we essentially rerun the entire test suite with a different config, we have to clean out the coverage files in between. That isn't an issue for the other jobs, since when they invoke make test multiple times, it's hitting different executables.

@jeremylt
jeremylt merged commit d74d5bf into main Dec 3, 2026
40 of 41 checks passed
@jeremylt
jeremylt deleted the zach/lcov-fixes branch December 3, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants