Skip to content

VCR split#9392

Merged
shuyama1 merged 11 commits into
GoogleCloudPlatform:mainfrom
shuyama1:VCR_split
Dec 21, 2023
Merged

VCR split#9392
shuyama1 merged 11 commits into
GoogleCloudPlatform:mainfrom
shuyama1:VCR_split

Conversation

@shuyama1

@shuyama1 shuyama1 commented Nov 2, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
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:)

@melinath melinath left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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