Skip to content

split rectify and modify as decided in #343 - #401

Open
nevrome wants to merge 25 commits into
masterfrom
rectifyModifySplit
Open

nevrome wants to merge 25 commits into
masterfrom
rectifyModifySplit

Conversation

@nevrome

@nevrome nevrome commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

As decided in #343 I renamed rectify to modify and then built a new rectify that simply searches for packages with changed checksums to automatically fix them. This is a breaking change, of course. This PR also includes new dependencies that speed up the MD5 sum computation considerably.

Remaining TODOs are:

  1. Add a warning or generally better command line output to modify to highlight that it changes all input packages.
  2. Add some golden tests for rectify.

@codecov

codecov Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.28502% with 76 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.53%. Comparing base (58d10f8) to head (c4e87bc).

Files with missing lines Patch % Lines
src/Poseidon/CLI/Trident/Modify.hs 58.27% 41 Missing and 22 partials ⚠️
src/Poseidon/CLI/Trident/Rectify.hs 74.41% 5 Missing and 6 partials ⚠️
...Poseidon/CLI/Trident/OptparseApplicativeParsers.hs 0.00% 1 Missing ⚠️
src/Poseidon/Core/Package.hs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #401      +/-   ##
==========================================
+ Coverage   52.36%   52.53%   +0.17%     
==========================================
  Files          37       38       +1     
  Lines        6065     6129      +64     
  Branches      648      654       +6     
==========================================
+ Hits         3176     3220      +44     
- Misses       2241     2255      +14     
- Partials      648      654       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nevrome
nevrome marked this pull request as ready for review September 5, 2026 14:34
@nevrome
nevrome requested a review from stschiff September 5, 2026 14:35

@stschiff stschiff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, looks great, from my perspective. Just to be clear: the new rectify only detects changed checksums, not missing ones. That's intended, right?

@nevrome

nevrome commented Sep 25, 2026

Copy link
Copy Markdown
Member Author

Yes - that's what I implemented. But I wasn't sure about this. My reasoning was that rectify should purely "make things right", and a package without checksums is valid. But now I'm wondering if it's more convenient in practical use to have it add the checksums. What do you think?

@nevrome
nevrome added this pull request to stack #407 September 26, 2026 16:56
@stschiff

Copy link
Copy Markdown
Member

I think it would be less surprising if this updates and also adds checksums in case they're missing.

@nevrome

nevrome commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

Yes - I agree now. #406 implements the relevant change.

@nevrome
nevrome removed this pull request from stack #407 September 29, 2026 11:45
nevrome and others added 2 commits September 29, 2026 13:45

This branch has not been deployed

No deployments
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.

2 participants