-
Notifications
You must be signed in to change notification settings - Fork 208
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
test(a3p): migrate wallet and vaults related tests from a3p-proposals
to the z:acceptance
#10123
test(a3p): migrate wallet and vaults related tests from a3p-proposals
to the z:acceptance
#10123
Conversation
a3p-proposals
to the z:acceptance
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'd like to see a list of what test in a3p these replace.
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.
IOU more info about which of these comments is critical vs. just suggestions.
a3p-integration/proposals/z:acceptance/invitation-test-submission/send-script.tjs
Outdated
Show resolved
Hide resolved
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772296787
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772296787
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772061405
- Address review comments from Agoric#10123 - Comments: - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772306184 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772310395 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772311673 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772072506
I updated the PR's description to provide the list of replaced a3p tests, being them: |
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772074528
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772309612
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
a3p-integration/proposals/z:acceptance/invitation-test-submission/send-script.tjs
Outdated
Show resolved
Hide resolved
const error = await t.throwsAsync(() => | ||
openVault(USER1ADDR, mint, collateral), | ||
); | ||
|
||
t.true( | ||
error?.message.includes( | ||
'Error: Vault creation requires a minInitialDebt of {"brand":"[Alleged: IST brand]","value":"[5000000n]"}', | ||
), | ||
'Error message does not contain the expected text', | ||
); |
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.
The form I'm more used to seeing is this
const error = await t.throwsAsync(() => | |
openVault(USER1ADDR, mint, collateral), | |
); | |
t.true( | |
error?.message.includes( | |
'Error: Vault creation requires a minInitialDebt of {"brand":"[Alleged: IST brand]","value":"[5000000n]"}', | |
), | |
'Error message does not contain the expected text', | |
); | |
await t.throwsAsync( | |
openVault(USER1ADDR, mint, collateral), | |
message: 'Error: Vault creation requires a minInitialDebt of {"brand":"[Alleged: IST brand]","value":"[5000000n]"}', | |
); |
There are forms that use regexps with //
pattterns, as well.
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 missed the earlier suggestion regarding the use of regular expressions made by @dckc on this comment for the error message. I wasn't aware that a regular expression could be provided as the expectation in t.throwsAsync(), which is why I overlooked it initially.
I also apologize for prematurely resolving the conversation. I understand that it made it harder to track the changes made and open questions. Moving forward, I will make sure to leave conversations open and wait for the original commenter to resolve them.
Thank you for your patience and guidance.
Changes addressed on commit 2f7d52d
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
a3p-integration/proposals/z:acceptance/invitation-test-submission/send-script.tjs
Outdated
Show resolved
Hide resolved
a3p-integration/proposals/z:acceptance/invitation-test-submission/send-script.tjs
Outdated
Show resolved
Hide resolved
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
4216ee1
to
0b1501a
Compare
f9f2660
to
cfcc7af
Compare
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772296787
This reverts commit 7cef6a3.
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772296787
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772061405
- Address review comments from Agoric#10123 - Comments: - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772306184 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772310395 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772311673 - https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772072506
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772074528
- Address review comments from Agoric#10123 - Comment: https://github.com/Agoric/agoric-sdk/pull/10123/files#r1772309612
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: Agoric#10123 (comment)
- Address review comments from Agoric#10123 - Comment: - Agoric#10123 (comment) - Agoric#10123 (comment)
cfcc7af
to
e43bcd7
Compare
closes: https://github.com/Agoric/BytePitchPartnerEng/issues/5
closes: https://github.com/Agoric/BytePitchPartnerEng/issues/7
refs: #10049
Description
This PR is part of an ongoing effort to migrate some of the selected test cases from
a3p-proposals
to thez:acceptance
test phase.This particular PR new tests focus on:
The source code of the migrated tests are:
Security Considerations
n/a
Scaling Considerations
n/a
Documentation Considerations
One commit included in this PR fixes a small typo on
a3p-integration/proposals/README.md
Testing Considerations
The new test files included in this PR are invoked through
test.sh
, so no changes to the current testing workflow are necessary.However, as pointed out by @dckc in this comment, using
waitForBlock()
can lead to unexpected behavior. To address this, we plan to update thez:acceptance
tests to mitigate this issue.As a solution, we propose extending the
@agoric/synthetic-chain
package to export a method like makeRetryUntilCondition or a similar function. This would provide a more reliable alternative towaitForBlock()
.Additionally, there is already an test-vaults.mts file that test operations related to changes on auctions parameters.
To avoid confusion with
vaults.test
due to the similarity in names, I propose renaming this file toauction.test
and expanding its scope to cover all auction-related tests.Upgrade Considerations
n/a