Title: Tests for ValidateNotNull, ValidateNotNullOrEmpty are timing sensitive and unreliable. · Issue #5627 · PowerShell/PowerShell · GitHub
Open Graph Title: Tests for ValidateNotNull, ValidateNotNullOrEmpty are timing sensitive and unreliable. · Issue #5627 · PowerShell/PowerShell
X Title: Tests for ValidateNotNull, ValidateNotNullOrEmpty are timing sensitive and unreliable. · Issue #5627 · PowerShell/PowerShell
Description: Tests in the ValidateAttributeTests.ps1 attempt to estimate the time it takes for these attributes to be applied and tests the various attributes to ensure they complete within the estimated time. In CI, these tests can take 2-3 times lo...
Open Graph Description: Tests in the ValidateAttributeTests.ps1 attempt to estimate the time it takes for these attributes to be applied and tests the various attributes to ensure they complete within the estimated time. ...
X Description: Tests in the ValidateAttributeTests.ps1 attempt to estimate the time it takes for these attributes to be applied and tests the various attributes to ensure they complete within the estimated time. ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5627
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tests for ValidateNotNull, ValidateNotNullOrEmpty are timing sensitive and unreliable.","articleBody":"Tests in the ValidateAttributeTests.ps1 attempt to estimate the time it takes for these attributes to be applied and tests the various attributes to ensure they complete within the estimated time.\r\n\r\nIn CI, these tests can take 2-3 times longer than the estimate causing test failures.\r\n\r\nSee Context \"ValidateNotNull, ValidateNotNullOrEmpty and Not-Null-Or-Empty check for Mandatory parameter\" in the referenced file.\r\n\r\nThe following logic is used to calculate a baseline measurement:\r\n## Use the running time of 'MandatoryFunc -Value $byteArray' as the baseline time\r\n$baseline = (Measure-Command { MandatoryFunc -Value $byteArray }).Milliseconds\r\n## Running time should be less than 'expected'\r\n$expected = $baseline + 20","author":{"url":"https://github.com/dantraMSFT","@type":"Person","name":"dantraMSFT"},"datePublished":"2017-12-05T01:07:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5627/PowerShell/issues/5627"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ca88f3f-b0ad-f4e7-5d78-d8e128903c8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B764:5BC7E:D70248:138DE77:6A5751B3 |
| html-safe-nonce | ff01713d8b241fce30014218162c6e6a49eb5948c7c94c45ee0024b84e363304 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzY0OjVCQzdFOkQ3MDI0ODoxMzhERTc3OjZBNTc1MUIzIiwidmlzaXRvcl9pZCI6IjMyNjY5NTU0MTY1MTM3NjE3MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 327b1bdc0b85e89ce5410cfcda0abee1d7898b8dac9650444053372a79fca2e8 |
| hovercard-subject-tag | issue:279208994 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/PowerShell/PowerShell/5627/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6bb52d37a30ad6f47965e98ba21634ef455b66cd81b80655841cdb96b8e79428/PowerShell/PowerShell/issues/5627 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bb52d37a30ad6f47965e98ba21634ef455b66cd81b80655841cdb96b8e79428/PowerShell/PowerShell/issues/5627 |
| og:image:alt | Tests in the ValidateAttributeTests.ps1 attempt to estimate the time it takes for these attributes to be applied and tests the various attributes to ensure they complete within the estimated time. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dantraMSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width