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

[AOT] Use python temporary directory for AOT tests #10518

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

lhutton1
Copy link
Contributor

@lhutton1 lhutton1 commented Mar 7, 2022

Uses a python temporary directory with a context manager in an effort to solve the flaky FVP tests raised in #10300 and #10314. Now that CI is becoming more and more parallelized, the thinking is that the python temporary directory implementation might be more stable than utils.tempdir. Removing the XFail markings off the affected tests, but keeping the work around implemented in #10408 while we monitor with the above change.

cc @manupa-arm @ekalda @grant-arm @Mousius

Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

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

@lhutton1 thanks for this.

I do have a slight suggestion to avoid the suppression of exceptions and make this bit readable by avoiding the indentation (that you correctly pointed out to be the reason)

tests/python/relay/aot/aot_test_utils.py Outdated Show resolved Hide resolved
Uses a python temporary directory with a context manager in an effort to
solve the flaky FVP tests raised in
apache#10300 and
apache#10314. Now that CI is becoming
more and more parallelized, the thinking is that the python temporary
directory implementation might be more stable than `utils.tempdir`.
Removing the XFail markings off the affected tests, but keeping the
work around implemented in apache#10408
while we monitor with the above change.

Change-Id: Id07869b51cd2278ec4885ef964bc1b23892ba235
@lhutton1 lhutton1 force-pushed the enable-flaky-tests branch from e12d6ba to b33e292 Compare March 8, 2022 13:39
@github-actions github-actions bot requested a review from manupak March 8, 2022 13:39
@lhutton1 lhutton1 force-pushed the enable-flaky-tests branch 2 times, most recently from d7a8aa8 to 644b273 Compare March 8, 2022 13:40
Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

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

LGTM!

@lhutton1 lhutton1 force-pushed the enable-flaky-tests branch from 644b273 to 6b42f15 Compare March 8, 2022 17:33
@github-actions github-actions bot requested a review from manupak March 8, 2022 17:33
Change-Id: Iba0644db14e50648f6dc99a4ed0f455641c31912
@lhutton1 lhutton1 force-pushed the enable-flaky-tests branch from 6b42f15 to b2e51c0 Compare March 9, 2022 10:35
@manupak manupak merged commit 39bf923 into apache:main Mar 10, 2022
@manupak
Copy link
Contributor

manupak commented Mar 10, 2022

Thanks @lhutton1 . This is merged now!

@lhutton1 lhutton1 deleted the enable-flaky-tests branch March 15, 2022 11:17
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
* [AOT] Use python temporary directory for AOT tests

Uses a python temporary directory with a context manager in an effort to
solve the flaky FVP tests raised in
apache#10300 and
apache#10314. Now that CI is becoming
more and more parallelized, the thinking is that the python temporary
directory implementation might be more stable than `utils.tempdir`.
Removing the XFail markings off the affected tests, but keeping the
work around implemented in apache#10408
while we monitor with the above change.

Change-Id: Id07869b51cd2278ec4885ef964bc1b23892ba235

* alter context manager to make more readable

Change-Id: Iba0644db14e50648f6dc99a4ed0f455641c31912
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