Skip to content

Fixes a bug where Kokoro's artifacts directory wasn't being deleted. - #2434

Merged
phoenix-meadowlark merged 7 commits into
iree-org:mainfrom
phoenix-meadowlark:kokoro-rsync-tests
Jul 9, 2020
Merged

phoenix-meadowlark merged 7 commits into
iree-org:mainfrom
phoenix-meadowlark:kokoro-rsync-tests

Conversation

@phoenix-meadowlark

@phoenix-meadowlark phoenix-meadowlark commented Jul 7, 2020 •

Copy link
Copy Markdown
Contributor

This should fix the issue where our CMake presubmits would sometimes take twice as long as they should.

Explanation:
The problem was that (for some reason) bash was evaluating rm -rf "${KOKORO_ARTIFACTS_DIR?}/*" to rm -rf '/tmpfs/src/*'. The additional single quotes would cause rm to fail with a directory not found error, which would be swallowed by the -f flag.

Removing the double quotes around the /* expansion removes the single quotes that appear when bash + rm evaluates it. This gives a permission denied error, which we fix by adding sudo.

@phoenix-meadowlark phoenix-meadowlark changed the title [test-pr] Kokoro rsync delays tests. Fixes a bug where Kokoro's artifacts directory wasn't being deleted. Jul 9, 2020
@phoenix-meadowlark phoenix-meadowlark added infrastructure Relating to build systems, CI, or testing cmake labels Jul 9, 2020
@phoenix-meadowlark
phoenix-meadowlark marked this pull request as ready for review July 9, 2020 02:11
@phoenix-meadowlark
phoenix-meadowlark merged commit 22cf59d into iree-org:main Jul 9, 2020
@GMNGeoffrey GMNGeoffrey mentioned this pull request Jul 9, 2020
@phoenix-meadowlark
phoenix-meadowlark deleted the kokoro-rsync-tests branch July 10, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants