-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dangling modified file on make devnet-up #7051
Fix dangling modified file on make devnet-up #7051
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@jyellick could you rerun the failing circle ci check - https://app.circleci.com/pipelines/github/bobanetwork/v3-anchorage/446/workflows/f89a47a6-4e1a-4870-af05-383b7d775d47/jobs/18765. The PR passes for me locally so this could just be a flake. |
Hey @jyellick! This PR has merge conflicts. Please fix them before continuing review. |
c0cb422
to
89cad4d
Compare
89cad4d
to
3384fbe
Compare
This change seems to make the devnet CI a bit flaky, going to investigate, will undraft once ready. |
1931da5
to
e867f49
Compare
When starting from a fresh clone of the repo and running ``` make make cannon-prestate make devnet-up ``` We are left with a file changed in the tree at ``` packages/contracts-bedrock/deploy-config/devnetL1.json ``` This file is a bit annoying as it should not be checked in but shows as an outstanding change. The python script reads the original file, backs it up, then rewrites that file with a new timestamp. I'm not entirely certain why the timestamp needs to be rewritten, so I've left that modification in place. Instead, this change takes the approach of moving the original file to a 'template' path, and ignoring the modified file. In this way there's no longer any need to constantly create a backup and have the changes show up in a git diff.
e867f49
to
208731a
Compare
This PR has been added to the merge queue, and will be merged soon. |
Modified the change a bit to ensure that a version with the original timestamp is written during the initial alloc, while an updated timestamp is written during the devnet-up. I'm not entirely sure why this behavior is necessary, but, it seems to make CI happy. |
Hey @jyellick, this pull request failed to merge and has been dequeued from the merge train. If you believe your PR failed in the merge train because of a flaky test, requeue it by commenting with |
@Mergifyio requeue |
❌ Command disallowed due to command restrictions in the Mergify configuration.
|
Hey @jyellick! This PR has merge conflicts. Please fix them before continuing review. |
When starting from a fresh clone of the repo and running
We are left with a file changed in the tree at
This file is a bit annoying as new changes to it should generally not be checked in but shows as an outstanding change. The python script reads the original file, backs it up, then rewrites that file with a new timestamp.
I'm not entirely certain why the timestamp needs to be rewritten, so I've left that modification in place. Instead, this change takes the approach of moving the original file to a 'template' path, and ignoring the modified file. In this way there's no longer any need to constantly create a backup and have the changes show up in a git diff.
If we don't like this approach, I'm happy to implement something else, just wanting to stop accidentally capturing this file in my changesets.