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

[bug] Rehash compile config map in advance #6550

Merged
merged 6 commits into from
Nov 9, 2022

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Nov 9, 2022

Issue: fixes #6546

Brief Summary

I've run the test for 1000 times and the flaky test never appear again.

@netlify
Copy link

netlify bot commented Nov 9, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit aa63a33
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/636b58674093540008c5304e
😎 Deploy Preview https://deploy-preview-6550--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

taichi/program/program.h Outdated Show resolved Hide resolved
taichi/program/program.h Outdated Show resolved Hide resolved
@lin-hitonami lin-hitonami changed the title [bug] Add a mutex to protect config map [bug] Rehash compile config map in advance Nov 9, 2022
@lin-hitonami
Copy link
Contributor Author

After rehashing the map in advance, the flaky test never appeared again, and we don't need to add locks. Thanks to @jim19930609 !

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM! (please make sure to add comment ;P

@lin-hitonami lin-hitonami merged commit 25c555a into taichi-dev:master Nov 9, 2022
@lin-hitonami lin-hitonami deleted the fix-flaky branch November 9, 2022 10:27
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: fixes taichi-dev#6546 

### Brief Summary
I've run the test for 1000 times and the flaky test never appear again.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

M1 flaky test - taichi_sparse_test.py
3 participants