-
Notifications
You must be signed in to change notification settings - Fork 7
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
482 add stellar testnet archive urls to vault client config #524
482 add stellar testnet archive urls to vault client config #524
Conversation
@pendulum-chain/devs beyond the simple unit tests added, does anyone know if there is a configuration by which we can trigger in the integration tests a situation in which the client will try to look for these archives? |
@gianfra-t Waiting time is 5 minutes:
There is an integration test that Marcel added: spacewalk/clients/vault/tests/vault_integration_tests.rs Lines 609 to 703 in 1c3ea1c
You can see in line 663:
@ebma if the archives are already available in testnet, should we revert the: |
7c87dd8
to
320c1c3
Compare
hhhm, something wrong with the rustfmt; it's reverted back. I tried to do |
I did run |
Torsten commented on this before. I didn't want the reformatting to overlap with this PR. Apologies on the |
Oh okay, sorry! So we have to be careful and leave the format to the pre-commit hook @b-yap? Signing the commits again no problem. |
…om testnet archive instead of skipping Signed-off-by: Gianfranco <g.tasteri@gmail.com>
Signed-off-by: Gianfranco <g.tasteri@gmail.com>
Signed-off-by: Gianfranco <g.tasteri@gmail.com>
This reverts commit 320c1c3.
…ob/24882561006?pr=524#step:13:15
62c8917
to
189765c
Compare
@gianfra-t and @b-yap I created a new issue #525 for the formatting. I already noticed this problem last week and it's quite annoying that we now have this mismatch between the formatting of the precommit hook vs what the CI expects.
@b-yap I don't think we should. The main reason I created the tests is to be able to replicate issues that only seem to occur on Stellar mainnet. Being able to test on both Stellar test and main network is quite valuable IMO.
True, it's redundant but I'd say we add the test case anyway. We can afford to have the CI run 3 extra minutes in order to be safe that restoring messages from archives works as expected. In the future it could happen that the SDF introduces some changes that break our logic and as they will introduce them on testnet first, we would be able to catch it earlier. |
@@ -10,5 +10,7 @@ | |||
"version_str": "stellar-core 20.2.0.rc3 (34d82fc00426643e16b7ad59c9fde169b778eb4b)", | |||
"is_pub_net": false | |||
}, | |||
"stellar_history_archive_urls": [] | |||
"stellar_history_archive_urls": [ | |||
"http://history.stellar.org/prd/core-testnet/core_testnet_001" |
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.
any reason why we don't include core_testnet_002
and core_testnet_003
?
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 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.
Ah I see. I was wondering whether you paired them on purpose: like sdftest1
for core_testnet_001
; sdftest2
for core_testnet_002
, sdftest3
for core_testnet_003
.
In that case having only 1 url in the list is a-ok 👌
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.
I guess the only argument in favor of separating them could be to have a more fine-grained control in case one of them is not working, so that the selection is not random when trying to fetch.
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.
I think this is just some legacy fragment, because in the very beginning we only knew about one Stellar archive URL. By now, we know 'all' of the official ones and there is no good reason not to add all of them to the array.
It might be least confusing if we streamline this across all the configuration files and make each of them list all archives (for the respective network only, of course).
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.
Alright, also makes sense. Added here.
We could also add stellar-history..
ones as well as core-live
but seems to me a bit confusing.
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.
Hmm.. let's maybe still have all 6 in the mainnet configurations to signify that all of them can be used.
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.
Looks good to me too 👍
@@ -10,5 +10,7 @@ | |||
"version_str": "stellar-core 20.2.0.rc3 (34d82fc00426643e16b7ad59c9fde169b778eb4b)", | |||
"is_pub_net": false | |||
}, | |||
"stellar_history_archive_urls": [] | |||
"stellar_history_archive_urls": [ | |||
"http://history.stellar.org/prd/core-testnet/core_testnet_001" |
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.
I think this is just some legacy fragment, because in the very beginning we only knew about one Stellar archive URL. By now, we know 'all' of the official ones and there is no good reason not to add all of them to the array.
It might be least confusing if we streamline this across all the configuration files and make each of them list all archives (for the respective network only, of course).
Co-authored-by: Marcel Ebert <mail@marcel-ebert.de>
Regarding #482
About
Adds archive url's for Stellar testent, and code changes such that we don't discriminate anymore between testnet and mainnet for fetching this values.
Notable changes