Skip to content
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

relax checktime_hashing_fail contract caching timing to eliminate spurious test failures #1100

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

spoonincode
Copy link
Member

On a fast Zen5 CPU, I see spurious failures on this line about 5% of the time (the action completes faster than 8ms resulting in the exception not firing). Reducing the limit to 6ms resolves the problem. But this is rather fragile and has been tweaked a number of times in the past. Since the purpose of this first action is to just get the contract cached, why not run a simple action that is guaranteed to pass to prime the cache?

@spoonincode spoonincode merged commit dfea280 into main Jan 15, 2025
36 checks passed
@spoonincode spoonincode deleted the checktime_hashing_fail_cache branch January 15, 2025 15:15
@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: Eliminate spurious test failures by relaxing contract cache timing
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants