Skip to content

fix(test-suite): fix delegated user decrypt assertion#2070

Open
tawadaa wants to merge 3 commits intomainfrom
aw/fix-delegation-decrypt
Open

fix(test-suite): fix delegated user decrypt assertion#2070
tawadaa wants to merge 3 commits intomainfrom
aw/fix-delegation-decrypt

Conversation

@tawadaa
Copy link
Contributor

@tawadaa tawadaa commented Mar 9, 2026

No description provided.

@tawadaa tawadaa requested a review from a team as a code owner March 9, 2026 18:08
@cla-bot cla-bot bot added the cla-signed label Mar 9, 2026
@mergify
Copy link

mergify bot commented Mar 9, 2026

🧪 CI Insights

Here's what we observed from your CI run for ab6d3c1.

🟢 All jobs passed!

But CI Insights is watching 👀

new RegExp(USER_DECRYPTION_NOT_DELEGATED_SELECTOR),
);
),
).to.be.rejectedWith('Execution reverted');
Copy link
Contributor

@isaacdecoded isaacdecoded Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tawadaa do you know why the error changed? Maybe something has changed on the Relayer side?

In this case, I think the const declared at line 8 is not needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it changed, but the error we observed is an Execution reverted with and error 500

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error from relayer didn't change. Relater sends only an abstracted information (labels) and a message intended for user. Revert selector is not there, since we do the ACL as boolena check (isDelegatedUserDecryptReady).

However, the message will also change in the incoming 0.12 release due to Host ACL feature.

// Wait for 2 blocks to ensure delegation is propagated by the coprocessor.
const currentBlock = await ethers.provider.getBlockNumber();
await waitForBlock(currentBlock + 15);
await waitForBlock(currentBlock + 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this got decremented to 2 blocks? Is the simple ACL already working maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 15 blocks we hit the timeout for the last test, as we wait for 15 blocks twice.
Not sure for simple ACL, as this tested for v0.11.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would appreciate if we could merge #2072 first, to avoid dealing with conflicts on a big long living feature branch 😇

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple ACL changes are not yet active on main.

The error matching would again change with simple ACL, as the check will be have a new error label for Host ACL related errors.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @eudlins-zama that we should merge the feature branch sooner.

Copy link
Contributor

@manoranjith manoranjith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants