You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Learn how VCR tests work](https://googlecloudplatform.github.io/magic-modules/develop/test/test/)
37
+
38
+
---
39
+
40
+
**Step 1: Replaying Mode**
41
+
42
+
{{ ifgt (len.ReplayingResult.FailedTests) 0 }}
39
43
#### Action taken
40
44
<details>
41
-
<summary>Found {{len.ReplayingResult.FailedTests}} affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
<summary>Found {{len.ReplayingResult.FailedTests}} affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests</summary>
49
46
50
-
[Get to know how VCR tests work](https://googlecloudplatform.github.io/magic-modules/develop/test/test/)
51
-
{{ else -}}
52
-
{{- if.ReplayingErr -}}
53
-
{{color "red""Errors occurred during REPLAYING mode. Please fix them to complete your PR."}}
> {{color "red""Errors occurred during REPLAYING mode. Please fix them to complete your PR."}}
53
+
{{ else }}
54
+
{{color "green""**All tests passed in Replaying mode! No Recording was needed.**"}}
55
+
{{ end }}
56
+
{{ end }}
57
57
58
58
View the [build log](https://storage.cloud.google.com/{{.LogBucket}}/{{.Version}}/refs/heads/{{.Head}}/artifacts/{{.BuildID}}/build-log/replaying_test.log)
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.
20
-
21
-
Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, orif you have any questions, please raise the concern with your reviewer.
> {{color "red""**Tests failed when rerunning REPLAYING mode after recording!**"}}
14
+
> Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.
15
+
> Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, orif you have any questions, please raise the concern with your reviewer.
16
+
{{elseifgt (len.RecordingResult.PassedTests) 0}}
24
17
{{color "green""No issues found for passed tests after REPLAYING rerun."}}
25
-
{{end}}{{/* end of if gt (len .ReplayingAfterRecordingResult.FailedTests ) 0 */}}
26
-
---
27
-
{{end}}{{/* end of if gt (len .RecordingResult.PassedTests) 0 */}}
28
-
29
-
{{ifgt (len.RecordingResult.FailedTests) 0 -}}
30
-
{{color "red""Tests failed during RECORDING mode:"}}
"<summary>Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests",
418
-
"</summary>",
419
-
"<blockquote>",
420
-
"<ul>",
421
-
"<li>a</li>",
422
-
"<li>b</li>",
423
-
"", // Empty line
424
-
"</ul>",
425
-
"</blockquote>",
393
+
"<summary>Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests</summary>",
394
+
"* a",
395
+
"* b",
426
396
"</details>",
427
-
"",
428
-
"[Get to know how VCR tests work](https://googlecloudplatform.github.io/magic-modules/develop/test/test/)",
397
+
"[Learn how VCR tests work](https://googlecloudplatform.github.io/magic-modules/develop/test/test/)",
"π΄ **Tests failed when rerunning REPLAYING mode after recording!**",
528
500
"Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.",
529
501
"Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.",
530
-
color("red", "Tests failed during RECORDING mode:"),
"π΄ Several tests terminated during RECORDING mode.",
504
+
"> [!CAUTION]",
505
+
"π΄ Errors occurred during RECORDING mode. Please fix them to complete your PR.",
506
+
"View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-123/artifacts/build-123/build-log/recording_test.log) or the [debug logs folder](https://console.cloud.google.com/storage/browser/ci-vcr-logs/beta/refs/heads/auto-pr-123/artifacts/build-123/recording) for detailed results.",
537
507
},
538
508
},
539
509
{
540
510
name: "ReplayingAfterRecordingResult does not have failed tests",
"π’ No issues found for passed tests after REPLAYING rerun.",
531
+
"π’ **All tests passed!**",
532
+
"View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-123/artifacts/build-123/build-log/recording_test.log) or the [debug logs folder](https://console.cloud.google.com/storage/browser/ci-vcr-logs/beta/refs/heads/auto-pr-123/artifacts/build-123/recording) for detailed results.",
0 commit comments