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

Throw full error for CLI bundle download #1657

Merged
merged 1 commit into from Apr 24, 2023

Conversation

angelapwen
Copy link
Contributor

Previously, when we ran into trouble with setting up CodeQL, we threw just the Unable to download and extract CodeQL CLI error message and logged the more granular error message. This makes it difficult for us to diagnose problems when we cannot view run logs ourselves, because we are only able to view the top-level error message in our telemetry. This change will allow us to view the more granular error message as well.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@angelapwen angelapwen marked this pull request as ready for review April 22, 2023 00:17
@angelapwen angelapwen requested a review from a team as a code owner April 22, 2023 00:17
@angelapwen angelapwen merged commit a9648ea into github:main Apr 24, 2023
649 checks passed
@github-actions github-actions bot mentioned this pull request Apr 26, 2023
6 tasks
angelapwen added a commit that referenced this pull request Apr 26, 2023
* Update changelog and version after v2.3.0

* Update checked-in dependencies

* Throw full error for CLI bundle download (#1657)

* Add `workload_run_attempt` to analysis upload (#1658)

* Refactor status report upload logic

Previously we had duplicated the logic to check `GITHUB_RUN_ID`. We now call the `getWorkflowRunID()` method for the status report upload method, and move the logic for the run attempt to `getWorkflowRunAttempt()`

* Add `workflow_run_attempt` to analysis payload

* Stop allowing `undefined` run IDs and attempts

Because we already throw an error if the ID or attempt aren't numbers, we don't have to allow `undefined` values into the payload.

* Update changelog for v2.3.1

---------

Co-authored-by: github-actions[bot] <github-actions@github.com>
Co-authored-by: Chuan-kai Lin <cklin@github.com>
Co-authored-by: Angela P Wen <angelapwen@github.com>
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.

None yet

2 participants