Skip to content

Update the log checker to reduce disk use and to check canton logs#6174

Merged
nicu-da merged 5 commits into
mainfrom
nicu/chore/smarter_log_split
Jul 1, 2026
Merged

Update the log checker to reduce disk use and to check canton logs#6174
nicu-da merged 5 commits into
mainfrom
nicu/chore/smarter_log_split

Conversation

@nicu-da

@nicu-da nicu-da commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

…files

the fun part is that the canton log checking was broken because of a \n in the ignore patterns, and a || true on the rg command

[ci]

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@nicu-da nicu-da changed the title Change the log splitter such that it does it without duplicating the … Update the log checker to reduce disk use Jul 1, 2026
@nicu-da nicu-da changed the title Update the log checker to reduce disk use Update the log checker to reduce disk use and to check canton logs Jul 1, 2026
@nicu-da nicu-da marked this pull request as ready for review July 1, 2026 07:41
@nicu-da nicu-da requested a review from martinflorian-da July 1, 2026 07:42

@martinflorian-da martinflorian-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks reasonable, thank you!

Would make a pass to cut words in the comments but don't mind it all that much either. 🤖

sed -n "0,/$SHUTDOWN_MESSAGE_PATTERN/p" "$LOGFILE" >> "$LOGFILE_BEFORE"
# Find the line number of the shutdown message (first and only match).
# This avoids ever making a second copy of the (potentially large) "before"
# half of the log file. The previous approach wrote both halves out with sed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: consider making this a bit less verbose

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I considered that but I am weary of us changing in the future without looking at it closely, so would just leave the entire 🤖 story

nicu-da added 3 commits July 1, 2026 11:32
…files

[ci]

Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
[ci]

Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
[ci]

Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
@nicu-da nicu-da force-pushed the nicu/chore/smarter_log_split branch from 4a0a80b to 833cec5 Compare July 1, 2026 11:32
nicu-da added 2 commits July 1, 2026 12:13
.
[ci]

Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
.
[ci]

Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
@nicu-da nicu-da merged commit 9ecfa73 into main Jul 1, 2026
66 checks passed
@nicu-da nicu-da deleted the nicu/chore/smarter_log_split branch July 1, 2026 13:45
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