Skip to content

Conversation

@dcalavrezo-qorix
Copy link
Contributor

  • add ferrocene_report orchestration and repo-local wrapper rule
  • support line-coverage parsing and gating
  • default reports to bazel-bin/coverage and add overall summary
  • improve path remapping, crate resolutio and runfiles handling
  • update README/docs for developers and integrators

  - add ferrocene_report orchestration and repo-local wrapper rule
  - support line-coverage parsing and gating
  - default reports to bazel-bin/coverage and add overall summary
  - improve path remapping, crate resolutio and runfiles handling
  - update README/docs for developers and integrators

Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
Fixed formatting, updated version

Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
split the python scripts into separate files
added some tests
updated worfklow
split shell script into a template

Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
Fixing formatting issues

Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
Copy link
Contributor

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a first pass.
Further improvements & changes will be made after implementation is known.

for root in roots:
try:
return p.relative_to(root).as_posix()
except ValueError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems kind of not ideal, to just swallow an error without informatin or even a comment on why

Comment on lines +29 to +30
except Exception:
return None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't blanket except Exception without even knowing what the exception is imo.

Suggested change
except Exception:
return None
except Exception as e:
logging.error(f"Error: {e}")
return None

@@ -0,0 +1,58 @@
#!/usr/bin/env python3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should have a logger

Comment on lines +34 to +35
except ValueError:
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't swallow errors silently

with json_path.open("r", encoding="utf-8") as fh:
data = json.load(fh)

def relativize(p: Path):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return typehint missing

except FileNotFoundError:
sys.exit(1)

m = re.search(r'([0-9]+(?:\.[0-9]+)?)%\s*\((\d+)/(\d+)\s+lines\)', text)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is this regex looking for, do you have an example?


output="$(python3 "${parser}" "${fixture}")"

if [[ "${output}" != "100.00 8 8" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems random magical.
Could you explain this?

Comment on lines +16 to +19
def _shell_quote(value):
if value == "":
return "''"
return "'" + value.replace("'", "'\"'\"'") + "'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't quiet understand this.

@@ -0,0 +1,869 @@
#!/usr/bin/env bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this file is now old / outdated, as much logic has moved to standalone python files?

@MaximilianSoerenPollak MaximilianSoerenPollak merged commit fe54d6a into eclipse-score:main Jan 27, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from Draft to Done in Infrastructure Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants