FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Include matrix information in debug artifact name by edoardopirovano · Pull Request #809 · github/codeql-action · GitHub

Include matrix information in debug artifact name - #809

Merged
aeisenberg merged 1 commit into
github:mainfrom
edoardopirovano:include-run-id
Nov 4, 2021
Merged

aeisenberg merged 1 commit into
github:mainfrom
edoardopirovano:include-run-id

Conversation

edoardopirovano commented Nov 4, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Adds the contents of matrix to the name of the debug artifact to avoid issues with clashing names in matrixed runs.

edoardopirovano changed the title Include run ID in debug artifact name Include matrix information in debug artifact name Nov 4, 2021
edoardopirovano marked this pull request as ready for review November 4, 2021 19:27
edoardopirovano requested a review from a team as a code owner November 4, 2021 19:27

aeisenberg 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The uploaded artifacts look good. Is there any reason why we're not running these tests using windows?

Comment thread src/analyze-action.ts
let suffix = "";
const matrix = actionsUtil.getRequiredInput("matrix");
if (matrix !== undefined && matrix !== "null") {
for (const entry of Object.entries(JSON.parse(matrix)).sort())

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

How does sort work if the keys are arrays? I did a little test and it seems to work. Also, we only need this functionality to ensure our tests work, so even if the sorting is not stable, if our tests pass consistently, I'm not too worried.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I believe the default way to compare two arrays in TypeScript is lexicographically. Since in this case the first element is the key of a JSON map, we know that all the arrays will differ in their first element (since the keys must be unique), so this is equivalent to sorting by the name of the key.

aeisenberg 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Meant to approve the first time, but clicked the wrong button. :)

aeisenberg merged commit ea16943 into github:main Nov 4, 2021

Copy link
Copy Markdown
Contributor Author

Is there any reason why we're not running these tests using windows?

Only that the bash script that checks the result wouldn't work on Windows (I think).

edoardopirovano deleted the include-run-id branch November 5, 2021 08:36
github-actions Bot mentioned this pull request Nov 8, 2021
5 tasks
This was referenced Nov 15, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL