GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Send tools telemetry to `init` status report by angelapwen · Pull Request #1497 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Jan 21, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR sends the following fields to the init status report on success and failure:

  • tools_source
  • if tools_source was DOWNLOAD, tools_download_duration_ms and tools_feature_flags_valid

Note that previously we only sent additional fields on init success, but because we would like to support the tools fields on failure as well, the PR changes the status report behavior so that the init report is sent on failure too, with as many fields populated as possible.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
angelapwen force-pushed the tools-telemetry-report branch from a9545a6 to f24d78c Compare January 21, 2023 00:37
@angelapwen angelapwen changed the title Send tools telemetry to init success status report Send tools telemetry to init status report Jan 21, 2023
@angelapwen
angelapwen marked this pull request as ready for review January 21, 2023 01:06
@angelapwen
angelapwen requested a review from a team as a code owner January 21, 2023 01:06
angelapwen added 2 commits January 20, 2023 17:10
@angelapwen
Send tools telemetry to init success status report
7c4b093
@angelapwen
Send init status report on failure as well
4fa58ed
@angelapwen
angelapwen force-pushed the tools-telemetry-report branch from a217825 to 4fa58ed Compare January 21, 2023 01:10
@angelapwen

angelapwen commented Jan 21, 2023

Copy link
Copy Markdown
Contributor Author

Looks like a bit of an inscrutable error, init action failed: TypeError: (0 , actions_util_1.getActionVersion) is not a function when it is correctly defined in actions-util and I haven't changed anything about it.

Also, oddly enough the error fails in the analyze step even though it originates from init

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer

henrymercer commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

I think this could be as boring as just needing to merge in main and recompile the Action — some of the compiled files seem to be missing at the moment.

angelapwen reacted with thumbs up emoji angelapwen reacted with eyes emoji
All reactions
  • 👍 1 reaction
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
Merge branch 'main' into tools-telemetry-report
4e95bb5
henrymercer
henrymercer reviewed Jan 23, 2023
View reviewed changes
Comment thread src/init.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

angelapwen added 2 commits January 23, 2023 08:55
@angelapwen
Move ToolsSource to init
ca8ef2b
@angelapwen
Merge branch 'tools-telemetry-report' of https://github.com/angelapwe…
0795d2d
…n/codeql-action into tools-telemetry-report
github-advanced-security[bot]
github-advanced-security AI found potential problems Jan 23, 2023
View reviewed changes
Comment thread src/init-action.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
Add missing semicolons
cc99631
@angelapwen

angelapwen commented Jan 23, 2023

Copy link
Copy Markdown
Contributor Author

I have an issue with node in VSCode so the automated linting isn't working very well.. trying to resolve now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
Fix linting errors
919c531
@angelapwen
angelapwen force-pushed the tools-telemetry-report branch from 8ca90f9 to 919c531 Compare January 23, 2023 18:30
henrymercer
henrymercer reviewed Jan 23, 2023
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I like how you've used this additional telemetry information to improve the tests for setting up the CodeQL tools! Here's a couple of initial comments:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

angelapwen reacted with heart emoji
All reactions
  • ❤️ 1 reaction
Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

angelapwen added 4 commits January 23, 2023 14:36
@angelapwen
Improve CodeQL tools tests
89a2e6b
@angelapwen
Refactor init status report types
d2f7f33
@angelapwen
Additional refactoring
2babeff
@angelapwen
Remove spy on performance function
afeddd6
@angelapwen

angelapwen commented Jan 24, 2023

Copy link
Copy Markdown
Contributor Author

I think I've addressed all comments and PR is ready for review again!

henrymercer reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
angelapwen requested a review from henrymercer January 24, 2023 19:47
henrymercer
henrymercer reviewed Jan 24, 2023
View reviewed changes
Comment thread src/feature-flags.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

angelapwen and others added 4 commits January 24, 2023 15:18
@angelapwen
Refactor feature flags validity into interface
d64fae7
@angelapwen @henrymercer
Improve comments
8c50b52
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
Make Javadoc comments
7d707c9
@angelapwen
Address PR comments
46dd699
@angelapwen
angelapwen requested a review from henrymercer January 24, 2023 23:35
henrymercer
henrymercer previously approved these changes Jan 25, 2023
View reviewed changes

@henrymercer henrymercer left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Great stuff! A couple of minor suggestions to improve the types, and there are a few conflicts to resolve before we can merge this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/feature-flags.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/feature-flags.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
Remove validity field from GHAE/GHES
113bfd6
@angelapwen
angelapwen dismissed henrymercer’s stale review via 113bfd6 January 25, 2023 18:27
@angelapwen
Merge main and resolve merge conflicts
9bfd4b5
@angelapwen
angelapwen requested a review from henrymercer January 25, 2023 18:34
henrymercer
henrymercer approved these changes Jan 25, 2023
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🎉

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

angelapwen reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@angelapwen
angelapwen merged commit 24ca6b0 into github:main Jan 25, 2023
@angelapwen
angelapwen deleted the tools-telemetry-report branch January 25, 2023 19:09
@github-actions github-actions Bot mentioned this pull request Jan 26, 2023
Merge main into releases/v2 #1511
Merged
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@angelapwen @henrymercer @github-advanced-security
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.