Title: Fix flaky query history reveal test via stable TreeItem ids by cklin · Pull Request #4468 · github/vscode-codeql · GitHub
Open Graph Title: Fix flaky query history reveal test via stable TreeItem ids by cklin · Pull Request #4468 · github/vscode-codeql
X Title: Fix flaky query history reveal test via stable TreeItem ids by cklin · Pull Request #4468 · github/vscode-codeql
Description: Summary
Fixes a flaky test in query-history-manager.test.ts (the handleRemoveHistoryItem › "should not change the selection" cases), which was failing on CI (e.g. this windows-latest run).
Root cause
HistoryTreeDataProvider.getTreeItem never set a TreeItem.id. When no id is provided, VS Code identifies tree nodes by their label plus their position in the list (
Open Graph Description: Summary Fixes a flaky test in query-history-manager.test.ts (the handleRemoveHistoryItem › "should not change the selection" cases), which was failing on CI (e.g. this windows-latest run)...
X Description: Summary Fixes a flaky test in query-history-manager.test.ts (the handleRemoveHistoryItem › "should not change the selection" cases), which was failing on CI (e.g. this windows-lat...
Opengraph URL: https://github.com/github/vscode-codeql/pull/4468
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:82295967-54a9-ff73-964d-2d6637270f5d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9B70:2B4B1:22603A0:2FF69EA:6A5F4D57 |
| html-safe-nonce | a91b506205550e3bfcb337741b39bd87e73dbae1a2369913513523a83e8ffaa1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjcwOjJCNEIxOjIyNjAzQTA6MkZGNjlFQTo2QTVGNEQ1NyIsInZpc2l0b3JfaWQiOiI4MjExOTM5ODU2NDEzMDUyMjQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f46240fb779bd2b44afb1f1c366434fc95f3d5a32c8c123c5aebd17534505da6 |
| hovercard-subject-tag | pull_request:4079657690 |
| 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/vscode-codeql/pull/4468/files |
| twitter:image | https://avatars.githubusercontent.com/u/1418580?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1418580?s=400&v=4 |
| og:image:alt | Summary Fixes a flaky test in query-history-manager.test.ts (the handleRemoveHistoryItem › "should not change the selection" cases), which was failing on CI (e.g. this windows-latest run)... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a0797c11799dbfd7df57fa3de31c7ea3a4c4bd055eb1a0427a5cde1d4d7ba3f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/vscode-codeql git https://github.com/github/vscode-codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 211169016 |
| octolytics-dimension-repository_nwo | github/vscode-codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 211169016 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-codeql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b099d96da147aea31036cd16b2fba0083a6defe4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width