Skip to content

Use a new temporary directory for manifest generation in CI - #19802

Merged
foolip merged 1 commit into
masterfrom
foolip/manifest-tmpdir
Oct 22, 2019
Merged

foolip merged 1 commit into
masterfrom
foolip/manifest-tmpdir

Conversation

@foolip

@foolip foolip commented Oct 21, 2019

Copy link
Copy Markdown
Member

In #19580 retry for
manifest generation was introduced, to make it more robust in case of
network errors or the GitHub search API not indexing the merged PR
fast enough.

However, an accidental commit to master showed that this won't work:
https://github.com/web-platform-tests/wpt/runs/265191690

It first failed with "No PR found for 9e1d0a2"
because there was no PR, just a direct push to master. Retries then
failed with "File exists: '/home/runner/meta'".

Use a new temporary directory every time to deal with this. Don't
attempt to remove the directory when done as this script is run in a
CI system where all state is thrown away on completion.

In #19580 retry for
manifest generation was introduced, to make it more robust in case of
network errors or the GitHub search API not indexing the merged PR
fast enough.

However, an accidental commit to master showed that this won't work:
https://github.com/web-platform-tests/wpt/runs/265191690

It first failed with "No PR found for 9e1d0a2"
because there was no PR, just a direct push to master. Retries then
failed with "File exists: '/home/runner/meta'".

Use a new temporary directory every time to deal with this. Don't
attempt to remove the directory when done as this script is run in a
CI system where all state is thrown away on completion.
@foolip

foolip commented Oct 21, 2019

Copy link
Copy Markdown
Member Author

@Hexcles

Hexcles commented Oct 22, 2019

Copy link
Copy Markdown
Member

Do we need to delete this temp dir?

@Hexcles

Hexcles commented Oct 22, 2019

Copy link
Copy Markdown
Member

Oh:

Don't attempt to remove the directory when done as this script is run in a
CI system where all state is thrown away on completion.

Alright then.

@Hexcles Hexcles left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@foolip
foolip merged commit 3b13e3a into master Oct 22, 2019
@foolip
foolip deleted the foolip/manifest-tmpdir branch October 22, 2019 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants