Title: Reduce debug output in tests by sampart · Pull Request #75 · github/codeql-action · GitHub
Open Graph Title: Reduce debug output in tests by sampart · Pull Request #75 · github/codeql-action
X Title: Reduce debug output in tests by sampart · Pull Request #75 · github/codeql-action
Description: The full test output is long, so here's an example of a single test before and after. Before: $ npm test > codeql@0.0.0 test /Users/sam/code/codeql-action > ava src/fingerprints.test.ts --serial ⠸ hash ⠼ hash 1 passed::debug::Ignoring location URI "/src/foo/bar.js' as it is outside of the src root ::debug::Ignoring location URI "https:///Users/sam/code/codeql-action/lib/fingerprints.test.js' as the scheme is not recognised ::debug::Ignoring location URI "ftp:///Users/sam/code/codeql-action/lib/fingerprints.test.js' as the scheme is not recognised ::debug::Ignoring location as uri "1" is invalid ::debug::Ignoring location as uri "undefined" is invalid ::debug::Unable to compute fingerprint for non-existent file: /Users/sam/code/codeql-action/lib/fingerprints.test.js2 4 tests passed After: $ npm test > codeql@0.0.0 test /Users/sam/code/codeql-action > ava src/fingerprints.test.ts --serial 4 tests passed There's still a fair bit of noise that isn't caught by this (e.g. output from system calls), and the output could do with more cleaning generally, but this is a start, and provides a framework for further improvements. Thanks to @alexrford for pairing with me on much of this. Merge / deployment checklist Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos! CodeQL using init/analyze actions 3rd party tool using upload action Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.
Open Graph Description: The full test output is long, so here's an example of a single test before and after. Before: $ npm test > codeql@0.0.0 test /Users/sam/code/codeql-action > ava src/fingerprints.test.ts ...
X Description: The full test output is long, so here's an example of a single test before and after. Before: $ npm test > codeql@0.0.0 test /Users/sam/code/codeql-action > ava src/fingerpri...
Opengraph URL: https://github.com/github/codeql-action/pull/75
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b6a0ee77-cf6b-f37d-f997-7cd1e6637bb6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 92AE:2DCEA7:2BA2CEF:3ACA6E5:6A53AF5B |
| html-safe-nonce | 3e32c779199689f4cecd05896caa9bcc2dceece12c4cbb71497eafa66dc566b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkFFOjJEQ0VBNzoyQkEyQ0VGOjNBQ0E2RTU6NkE1M0FGNUIiLCJ2aXNpdG9yX2lkIjoiMzc0NjQ4ODcwODM4NTQ1MTg2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 017091f2f99f519d039035ff32f893bccc7ef772d3f9d349c695820f19b23c54 |
| hovercard-subject-tag | pull_request:438425292 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/75/files |
| twitter:image | https://avatars.githubusercontent.com/u/1507328?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1507328?s=400&v=4 |
| og:image:alt | The full test output is long, so here's an example of a single test before and after. Before: $ npm test > codeql@0.0.0 test /Users/sam/code/codeql-action > ava src/fingerprints.test.ts ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width