Title: Reduce debug output in tests by sampart · Pull Request #74 · github/codeql-action · GitHub
Open Graph Title: Reduce debug output in tests by sampart · Pull Request #74 · github/codeql-action
X Title: Reduce debug output in tests by sampart · Pull Request #74 · 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/74
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d4473b1b-44ac-5672-32c7-e3f4f64e2246 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B838:3102C2:178895B:201F63B:6A546FC7 |
| html-safe-nonce | 3f54222263e452c7285b04acd3e7872f133b9a5732dbafa4ad2daf0797790aea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODM4OjMxMDJDMjoxNzg4OTVCOjIwMUY2M0I6NkE1NDZGQzciLCJ2aXNpdG9yX2lkIjoiOTE0MDI5NTgzOTE0Njg2NDU4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d2b8784e442752f1d5c6b981e52cc5fa8b64140a7ca9a89f77ad92fdae49cbc |
| hovercard-subject-tag | pull_request:438045347 |
| 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/74/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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width