Skip to content

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

Merged
manupak merged 2 commits into
apache:mainfrom
lhutton1:enable-flaky-tests
Mar 10, 2022
Merged

[AOT] Use python temporary directory for AOT tests#10518
manupak merged 2 commits into
apache:mainfrom
lhutton1:enable-flaky-tests

Conversation

@lhutton1

@lhutton1 lhutton1 commented Mar 7, 2022

Copy link
Copy Markdown
Contributor

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

Comment thread tests/python/relay/aot/aot_test_utils.py Outdated

@manupak manupak left a comment

Copy link
Copy Markdown
Contributor

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)

Comment thread tests/python/relay/aot/aot_test_utils.py Outdated
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

@manupak manupak left a comment

Copy link
Copy Markdown
Contributor

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

manupak commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

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