Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCR split #9392

Merged
merged 11 commits into from
Dec 21, 2023
Merged

VCR split #9392

merged 11 commits into from
Dec 21, 2023

Conversation

shuyama1
Copy link
Member

@shuyama1 shuyama1 commented Nov 2, 2023

Release Note Template for Downstream PRs (will be copied)


@modular-magician

This comment was marked as outdated.

1 similar comment
@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

1 similar comment
@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@shuyama1 shuyama1 changed the title VCR split test VCR split Dec 18, 2023
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 115
Passed tests 107
Skipped tests: 8
Affected tests: 0

Click here to see the affected service packages
  • cloudrun
  • dataproc
  • cloudrunv2

$\textcolor{green}{\textsf{All tests passed in REPLAYING mode.}}$
View the build log

@shuyama1
Copy link
Member Author

Added affected service packages in the test report. see #9392 (comment)

Already cleaned up the cassettes recorded for testing this PR change.

@shuyama1 shuyama1 requested a review from melinath December 18, 2023 17:46
@shuyama1 shuyama1 requested a review from trodge December 18, 2023 17:46
for file in $gofiles
do
if [[ $file = google-beta/services* ]]; then
affected_services[$(echo "$file" | awk -F / '{ print $3 }')]=1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment explaining what this awk command is doing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Let me know if any part is still unclear and needs more comments. Thanks:)

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall


TESTS_TERMINATED=$(grep "^cannot run Terraform provider tests" replaying_test.log)

counter=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like we're losing this counter functionality - why is that safe / desirable to do as part of this change? They seem unrelated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When VCR was initially set up in GCB, we used to run into replaying tests got terminated due to non-provider-related issues, so we rerun the tests if that error occurred (with max retry: 3) example: #5881 (comment)

The issue should be resolved after we pre-install Terraform, but we never removed the logic. I've never seen any VCR test rerun needed for replaying mode after #6034, so I think it should be safe to remove it.

I agree it's unrelated - I could keep it for now and remove it in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with keeping this in

for file in $gofiles
do
if [[ $file = google-beta/services* ]]; then
affected_services[$(echo "$file" | awk -F / '{ print $3 }')]=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@shuyama1 shuyama1 requested a review from trodge December 20, 2023 00:05
@shuyama1 shuyama1 merged commit 8ee6d52 into GoogleCloudPlatform:main Dec 21, 2023
10 checks passed
@shuyama1 shuyama1 deleted the VCR_split branch December 21, 2023 00:40
kapreus pushed a commit to kapreus/magic-modules that referenced this pull request Jan 2, 2024
* split VCR tests

* tests

* fix

* fix checker

* more tests

* fix test code

* add magician comment

* fix typo

* update service packages detector

* revert test changes

* added more comments
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
* split VCR tests

* tests

* fix

* fix checker

* more tests

* fix test code

* add magician comment

* fix typo

* update service packages detector

* revert test changes

* added more comments
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
* split VCR tests

* tests

* fix

* fix checker

* more tests

* fix test code

* add magician comment

* fix typo

* update service packages detector

* revert test changes

* added more comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants