Skip to content

Conversation

@alonj-google
Copy link

datastream: added `spanner_profile` field to `google_datastream_connection_profile`
datastream: added `backfill_all.spanner_excluded_objects` and  `source_config.spanner_source_config` fields to `google_datastream_stream`

@github-actions github-actions bot requested a review from slevenick January 12, 2026 14:26
@github-actions
Copy link

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

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@slevenick, 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.

@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 generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 1737 insertions(+), 69 deletions(-))
google-beta provider: Diff ( 6 files changed, 1849 insertions(+), 77 deletions(-))
terraform-google-conversion: Diff ( 7 files changed, 1961 insertions(+), 123 deletions(-))

Missing test report

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

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

resource "google_datastream_connection_profile" "primary" {
  spanner_profile {
    database = # value needed
    host     = # value needed
  }
}

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

resource "google_datastream_stream" "primary" {
  backfill_all {
    spanner_excluded_objects {
      schemas {
        schema = # value needed
        tables {
          columns {
            column = # value needed
          }
          table = # value needed
        }
      }
    }
  }
  rule_sets {
    object_filter {
      source_object_identifier {
        spanner_identifier {
          schema = # value needed
          table  = # value needed
        }
      }
    }
  }
  source_config {
    spanner_source_config {
      backfill_data_boost_enabled = # value needed
      change_stream_name          = # value needed
      exclude_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      fgac_role = # value needed
      include_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      max_concurrent_backfill_tasks = # value needed
      max_concurrent_cdc_tasks      = # value needed
      spanner_rpc_priority          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 19
Passed tests: 8
Skipped tests: 10
Affected tests: 1

Click here to see the affected service packages
  • datastream

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
  • TestAccDatastreamStream_mongoDb

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDatastreamStream_mongoDb [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@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 generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 1747 insertions(+), 69 deletions(-))
google-beta provider: Diff ( 6 files changed, 1859 insertions(+), 77 deletions(-))
terraform-google-conversion: Diff ( 7 files changed, 1961 insertions(+), 123 deletions(-))

Missing test report

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

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

resource "google_datastream_connection_profile" "primary" {
  spanner_profile {
    database = # value needed
    host     = # value needed
  }
}

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

resource "google_datastream_stream" "primary" {
  backfill_all {
    spanner_excluded_objects {
      schemas {
        schema = # value needed
        tables {
          columns {
            column = # value needed
          }
          table = # value needed
        }
      }
    }
  }
  rule_sets {
    object_filter {
      source_object_identifier {
        spanner_identifier {
          schema = # value needed
          table  = # value needed
        }
      }
    }
  }
  source_config {
    spanner_source_config {
      backfill_data_boost_enabled = # value needed
      change_stream_name          = # value needed
      exclude_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      fgac_role = # value needed
      include_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      max_concurrent_backfill_tasks = # value needed
      max_concurrent_cdc_tasks      = # value needed
      spanner_rpc_priority          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 19
Passed tests: 9
Skipped tests: 10
Affected tests: 0

Click here to see the affected service packages
  • datastream

🟢 All tests passed!

View the build log

@zli82016
Copy link
Member

/gcbrun

@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 generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 1747 insertions(+), 69 deletions(-))
google-beta provider: Diff ( 6 files changed, 1859 insertions(+), 77 deletions(-))
terraform-google-conversion: Diff ( 7 files changed, 1961 insertions(+), 123 deletions(-))

Missing test report

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

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

resource "google_datastream_connection_profile" "primary" {
  spanner_profile {
    database = # value needed
    host     = # value needed
  }
}

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

resource "google_datastream_stream" "primary" {
  backfill_all {
    spanner_excluded_objects {
      schemas {
        schema = # value needed
        tables {
          columns {
            column = # value needed
          }
          table = # value needed
        }
      }
    }
  }
  rule_sets {
    object_filter {
      source_object_identifier {
        spanner_identifier {
          schema = # value needed
          table  = # value needed
        }
      }
    }
  }
  source_config {
    spanner_source_config {
      backfill_data_boost_enabled = # value needed
      change_stream_name          = # value needed
      exclude_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      fgac_role = # value needed
      include_objects {
        schemas {
          schema = # value needed
          tables {
            columns {
              column = # value needed
            }
            table = # value needed
          }
        }
      }
      max_concurrent_backfill_tasks = # value needed
      max_concurrent_cdc_tasks      = # value needed
      spanner_rpc_priority          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 19
Passed tests: 9
Skipped tests: 10
Affected tests: 0

Click here to see the affected service packages
  • datastream

🟢 All tests passed!

View the build log

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

description: |
Table name.
required: true
- name: 'columns'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be required?

Spanner column.
type: NestedObject
properties:
- name: 'column'
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be required if all other properties are output-only

primary_resource_id: 'default'
vars:
source_connection_profile_id: 'source-profile'
exclude_test: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we excluding this test? Can we include it so we can make sure this all works

stream_id: 'spanner-stream'
source_connection_profile_id: 'source-profile'
destination_connection_profile_id: 'destination-profile'
exclude_test: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Same, why exclude?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants