Skip to content

Show diff of dars.lock if it's out of date - #6657

Open
mrdziuban wants to merge 2 commits into
canton-network:mainfrom
obsidiansystems:mrdziuban/diff-dars-lock/5899
Open

Show diff of dars.lock if it's out of date#6657
mrdziuban wants to merge 2 commits into
canton-network:mainfrom
obsidiansystems:mrdziuban/diff-dars-lock/5899

Conversation

@mrdziuban

Copy link
Copy Markdown
Contributor

Fixes #5899

This updates DarLockChecker.scala to shell out to diff to get the difference between the current lock file and its expected contents, and includes the output in the error message.

@meiersi-da let me know if you'd prefer an approach that doesn't shell out to diff.

error

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).

@meiersi-da meiersi-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.

Fixes canton-network#5899

This updates `DarLockChecker.scala` to shell out to `diff` to get the difference between the current lock file and its expected contents, and includes the output in the error message.

Signed-off-by: Matt Dziuban <mrdziuban@gmail.com>
Signed-off-by: Matt Dziuban <mrdziuban@gmail.com>
@mrdziuban

Copy link
Copy Markdown
Contributor Author

Pushed a fix for the sbt output failure -- sbt 1.4.3 changed the text from "... were spent in garbage collection" to "... were spent in GC" (sbt/sbt@3c25657)

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.

Show diff of dars.lock file if it is not up to date

6 participants