magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

Add `ephemeral_directories` to google_workstations_workstation_config

Open kangy-google opened this issue 1 year ago • 17 comments

Release Note Template for Downstream PRs (will be copied)

workstations: add support for `ephemeral_directories` in `google_workstations_workstation_config`

kangy-google avatar Feb 23 '24 23:02 kangy-google

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@hao-nan-li, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

github-actions[bot] avatar Feb 23 '24 23:02 github-actions[bot]

Looks like contributor-membership-checker failed, but it is not clear to me what it means

kangy-google avatar Feb 23 '24 23:02 kangy-google

Test added, please take a look

kangy-google avatar Feb 24 '24 00:02 kangy-google

/gcbrun

hao-nan-li avatar Feb 24 '24 00:02 hao-nan-li

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 40 insertions(+)) Terraform Beta: Diff ( 3 files changed, 352 insertions(+)) TF Conversion: Diff ( 1 file changed, 95 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_workstations_workstation_config (38 total tests) Please add an acceptance test which includes these fields. The test should include the following:

resource "google_workstations_workstation_config" "primary" {
  ephemeral_directories {
    gce_pd {
      disk_type    = # value needed
      source_image = # value needed
    }
  }
}

modular-magician avatar Feb 24 '24 01:02 modular-magician

Tests analytics

Total tests: 31 Passed tests: 30 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • workstations

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccWorkstationsWorkstationConfig_ephemeralDirectories

Get to know how VCR tests work

modular-magician avatar Feb 24 '24 01:02 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccWorkstationsWorkstationConfig_ephemeralDirectories[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$ View the build log or the debug log for each test

modular-magician avatar Feb 24 '24 01:02 modular-magician

Please let me know if there is anything else I should do.

kangy-google avatar Feb 26 '24 16:02 kangy-google

Please let me know if there is anything else I should do.

Could you add the missing fields based on the Missing Test Report?

hao-nan-li avatar Feb 26 '24 17:02 hao-nan-li

Please let me know if there is anything else I should do.

Could you add the missing fields based on the Missing Test Report?

Added.

kangy-google avatar Feb 26 '24 18:02 kangy-google

/gcbrun

hao-nan-li avatar Feb 26 '24 18:02 hao-nan-li

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 40 insertions(+)) Terraform Beta: Diff ( 3 files changed, 442 insertions(+)) TF Conversion: Diff ( 1 file changed, 95 insertions(+))

modular-magician avatar Feb 26 '24 19:02 modular-magician

Tests analytics

Total tests: 32 Passed tests: 31 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • workstations

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccWorkstationsWorkstationConfig_ephemeralDirectories_withSourceImage

Get to know how VCR tests work

modular-magician avatar Feb 26 '24 19:02 modular-magician

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$ TestAccWorkstationsWorkstationConfig_ephemeralDirectories_withSourceImage[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test

modular-magician avatar Feb 26 '24 19:02 modular-magician

Could you fix the failing test?

hao-nan-li avatar Feb 29 '24 22:02 hao-nan-li

Fixed typo, please allow the test to rerun

kangy-google avatar Feb 29 '24 22:02 kangy-google

/gcbrun

hao-nan-li avatar Feb 29 '24 22:02 hao-nan-li

It is not clear which check failed, can you take a look? Thanks!

kangy-google avatar Mar 01 '24 02:03 kangy-google

/gcbrun

hao-nan-li avatar Mar 05 '24 17:03 hao-nan-li

Could you do a rebase on main and try again?

hao-nan-li avatar Mar 05 '24 17:03 hao-nan-li

done

kangy-google avatar Mar 05 '24 18:03 kangy-google

/gcbrun

hao-nan-li avatar Mar 05 '24 18:03 hao-nan-li

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 40 insertions(+)) Terraform Beta: Diff ( 3 files changed, 442 insertions(+)) TF Conversion: Diff ( 1 file changed, 95 insertions(+))

modular-magician avatar Mar 05 '24 19:03 modular-magician

Tests analytics

Total tests: 32 Passed tests: 31 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • workstations

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccWorkstationsWorkstationConfig_ephemeralDirectories_withSourceImage

Get to know how VCR tests work

modular-magician avatar Mar 05 '24 19:03 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccWorkstationsWorkstationConfig_ephemeralDirectories_withSourceImage[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$ View the build log or the debug log for each test

modular-magician avatar Mar 05 '24 19:03 modular-magician

Alright, tests are passing. Please take another look when you get a chance. Thanks!

kangy-google avatar Mar 05 '24 20:03 kangy-google

I don't fully understand the semantics of default_from_api and immutable. Are they documented anywhere?

kangy-google avatar Mar 05 '24 23:03 kangy-google

/gcbrun

hao-nan-li avatar Mar 06 '24 16:03 hao-nan-li

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 40 insertions(+)) Terraform Beta: Diff ( 3 files changed, 440 insertions(+)) TF Conversion: Diff ( 1 file changed, 95 insertions(+))

modular-magician avatar Mar 06 '24 17:03 modular-magician

Tests analytics

Total tests: 32 Passed tests: 32 Skipped tests: 0 Affected tests: 0

Click here to see the affected service packages
  • workstations

$\textcolor{green}{\textsf{All tests passed!}}$ View the build log

modular-magician avatar Mar 06 '24 17:03 modular-magician