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] [test] Fix patch_os_environ_helper #6017

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Sep 8, 2022

Related PR = #6002
In #6002, test_init_arg and test_init_arch fails on Windows. The failure is caused by reading outdated offline cache format. However, we have set offline cache to off and set the offline cache directory to a new directory in the environment variables in run_tests.py, so this should not happen. Then, I discovered that function patch_os_environ_helper which intends to remove only a few specified environment variables (excludes) accidentally removes all the environment variables, and replaced them with custom_environ. This PR fixes the bug and lets it work as expected.

@netlify
Copy link

netlify bot commented Sep 8, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit e742213
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63199762a2afb000080aa0a5
😎 Deploy Preview https://deploy-preview-6017--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.

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.

Nice catch!

@ailzhang ailzhang merged commit 23d9b62 into taichi-dev:master Sep 8, 2022
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.

2 participants