-
Notifications
You must be signed in to change notification settings - Fork 44
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
ci: Debug CLI / test-solana
job
#573
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3e1f0b5
solana: Revert `getVersion` on error to return `"2.0.0"`
nvsriram 46b0b23
ci: Reset version and add logging to detect race condition
nvsriram 3bdec10
ci: Reduce debugging to test race condition
nvsriram 401cae1
ci: Remove pullChainConfig logs
nvsriram fb2acf7
ci: Check pullChainConfig and nttFromManager output
nvsriram 364b49a
ci: Remove cyclic struct log
nvsriram ae13407
ci: Add deploySolana logs
nvsriram 733c829
ci: Add nttFromManager logs
nvsriram 24e0c2f
ci: Add sleep before fetching upgraded ntt
nvsriram 9ca5212
ci: Add comments for sleep
nvsriram d44e84b
nit: Remove extra new line
nvsriram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a less arbitrary way to detect this? Can it be known that the program will always take less than 2 seconds to be deployed?
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.
There is no guarantee that the program will always take less than 2 seconds to be deployed or in this case for the RPC to catch up to the deployed program (I could probably update the comment).
This sleep happens after deploy proc has exited. So this sleep just acts as a buffer for the RPC to query the correct deployed program - similar to the sleep before initialize.
The less arbitrary option I considered was a spinloop inside
nttFromManager
if an optionalexpectedVersion
parameter is passed in:And it could be called in
upgrade
:Concerns with this approach:
getProtocol
in a loop might not be the most optimal way to fetch versionsThere 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.
I think my proposal in #574 fixes the underlying problem without the arbitrary wait.