Skip to content

fix: diff log should not require verbose - #1343

Merged
amimas merged 6 commits into
gitlabform:mainfrom
TimKnight01:i-1315
Sep 12, 2026
Merged

amimas merged 6 commits into
gitlabform:mainfrom
TimKnight01:i-1315

Conversation

@TimKnight01

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.89%. Comparing base (be7316d) to head (57ea27a).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1343      +/-   ##
==========================================
- Coverage   78.24%   74.89%   -3.36%     
==========================================
  Files          83       83              
  Lines        4229     4234       +5     
==========================================
- Hits         3309     3171     -138     
- Misses        920     1063     +143     
Flag Coverage Δ
integration 74.89% <100.00%> (+0.10%) ⬆️
unittests ?
Files with missing lines Coverage Δ
gitlabform/__init__.py 67.13% <100.00%> (-14.72%) ⬇️
gitlabform/constants.py 100.00% <100.00%> (ø)
gitlabform/processors/util/difference_logger.py 84.00% <100.00%> (-7.67%) ⬇️

... and 13 files with indirect coverage changes

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

Comment thread gitlabform/constants.py
Comment thread gitlabform/constants.py Outdated
- adds custom log levels to support two custom log types

Signed-off-by: Tim Knight <[email protected]>
@TimKnight01
TimKnight01 had a problem deploying to Integrate Pull Request July 13, 2026 08:50 — with GitHub Actions Failure
@TimKnight01
TimKnight01 had a problem deploying to Integrate Pull Request July 13, 2026 08:50 — with GitHub Actions Failure
@TimKnight01

Copy link
Copy Markdown
Collaborator Author

@amimas updated following comments, thank you

@TimKnight01
TimKnight01 had a problem deploying to Integrate Pull Request July 14, 2026 09:12 — with GitHub Actions Failure
@TimKnight01
TimKnight01 had a problem deploying to Integrate Pull Request July 14, 2026 09:12 — with GitHub Actions Failure

@amimas amimas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From a quick glance over the file changes, it looks good to me @TimKnight01 . But, I haven't had a chance to try it out locally. Do we have any existing test cases or quick way to add some tests? Maybe we can look at those in the CI. Otherwise, would be nice to add some samples execution in the PR description from your local test run.

@TimKnight01

TimKnight01 commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

@amimas - you can see some of the results in the CI -> more logging, I can see if we can add one in, we'd need to I think check if it got written out with caplog, should be doable 🤔

@amimas

amimas commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Hey @TimKnight01 - Sorry, not sure what you were referring to as "in the CI -> more logging". Are you still looking into this? Just checking if we're good to merge this. The branch needs updating though.

@TimKnight01

Copy link
Copy Markdown
Collaborator Author

@amimas - sorry I've started a new role at work so it's eaten a lot of my time, will try and get back to this this week if I can

@amimas

amimas commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

No worries. I completely understand. Hope you're enjoying the new role.

@amimas
amimas requested a review from rickbrouwer as a code owner September 9, 2026 00:28
@amimas
amimas had a problem deploying to Integrate Pull Request September 9, 2026 00:28 — with GitHub Actions Error
@amimas
amimas had a problem deploying to Integrate Pull Request September 9, 2026 00:28 — with GitHub Actions Error
Comment thread docs/contrib/coding_guidelines.md Outdated
Comment thread docs/contrib/coding_guidelines.md Outdated
@rickbrouwer

Copy link
Copy Markdown
Collaborator

I think docs/running.md also needs an update (there is a suggestion about --verbose --diff-only-changed)

Also I think we loses the styling. RichHandler has markup off by default (so, :sparkles: now prints literally ":sparkles:" and the red/green/yellow are gone).
Passing an extra={"markup": True} on those specific calls brings it back. So, please add this an test if I'm correct. I'd avoid markup=True on the handler itself btw, since diff output can contain brackets and would then raise a MarkupError.

Fix diff logging so bracket-heavy values are emitted as literal text
instead of being parsed as Rich markup. Also added unit test for
diff logger so to validate this fix as well as not requiring verbose
mode for diff logging.
@amimas
amimas had a problem deploying to Integrate Pull Request September 12, 2026 16:52 — with GitHub Actions Error
@amimas
amimas had a problem deploying to Integrate Pull Request September 12, 2026 16:52 — with GitHub Actions Error
@amimas

amimas commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Thanks for those feedbacks @rickbrouwer . I just pushed an update. When you get a chance, could you please review?

@rickbrouwer

Copy link
Copy Markdown
Collaborator

@amimas
Is it okay if I check this out and make some adjustments? I'll make a separate commit so we can review the whole thing.

Signed-off-by: Rick Brouwer <[email protected]>
@rickbrouwer
rickbrouwer deployed to Integrate Pull Request September 12, 2026 17:37 — with GitHub Actions Active
@rickbrouwer
rickbrouwer deployed to Integrate Pull Request September 12, 2026 17:37 — with GitHub Actions Active
@rickbrouwer

Copy link
Copy Markdown
Collaborator

I’m just going to go ahead and do that (sorry 😉 ). If it’s not allowed or anything, I’m can drop the commit.

Personally, I think this commit does the trick, so I’m approving it now.
Feel free to take a look at it, and if you’re happy with it too, go ahead and merge it.

@amimas

amimas commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Ahh... ofcourse it's okay! Thanks for those adjustments and the review. Looks good to me. Going to merge this now.

@amimas
amimas merged commit 08149ef into gitlabform:main Sep 12, 2026
23 checks passed

This branch was successfully deployed

1 active deployment
Integrate Pull Request — 834c0994 Deployed Sep 12, 2026 by rickbrouwer via Acceptance Tests / GitLab Premium #239
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.

--diff-only-changed should show diffs without requiring --verbose

3 participants