Skip to content

raise astra version to 2.1.4#3333

Open
derrickaw wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
derrickaw:20260214_fixAstra
Open

raise astra version to 2.1.4#3333
derrickaw wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
derrickaw:20260214_fixAstra

Conversation

@derrickaw
Copy link
Contributor

  1. fixes issues seen in build(deps): bump com.datastax.astra:astra-sdk-devops from 0.6.3 to 2.1.4 #3176
  2. also moves astra properties up to v2/pom level

@gemini-code-assist
Copy link

Summary of Changes

Hello @derrickaw, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on modernizing the AstraDB integration by adopting newer functions and classes from an updated Astra SDK, which resolves existing issues. Concurrently, it refactors the project's dependency management by consolidating Astra SDK and IO library versions into the parent v2/pom.xml, enhancing overall project consistency and simplifying future updates.

Highlights

  • Astra SDK Client Updates: Updated references to Astra SDK client classes, replacing DatabaseClient with DbOpsClient and AstraDbClient with AstraDBOpsClient to align with newer SDK versions. This change was applied across several Java source and test files.
  • Centralized Dependency Management: Moved astra-sdk.version and astra-io.version properties from individual pom.xml files to the parent v2/pom.xml. This centralizes dependency version management, improving consistency and maintainability.
  • Issue Resolution: Addressed and fixed issues previously reported in build(deps): bump com.datastax.astra:astra-sdk-devops from 0.6.3 to 2.1.4 #3176 by adapting the code to the updated Astra SDK functions and classes.
Changelog
  • v2/astradb-to-bigquery/pom.xml
    • Removed hardcoded Astra SDK and IO version properties.
  • v2/astradb-to-bigquery/src/main/java/com/google/cloud/teleport/v2/astradb/templates/AstraDbToBigQuery.java
    • Replaced DatabaseClient with DbOpsClient for Astra database operations.
  • v2/astradb-to-bigquery/src/test/java/com/google/cloud/teleport/v2/astradb/templates/AstraDbToBigQueryIT.java
    • Updated AstraDbClient to AstraDBOpsClient in imports.
    • Updated DatabaseClient to DbOpsClient in imports and class instantiations.
  • v2/pom.xml
    • Added astra-sdk.version and astra-io.version properties to the parent POM.
  • v2/sourcedb-to-spanner/pom.xml
    • Updated Astra SDK and IO dependency versions to use properties defined in the parent POM.
  • v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/source/reader/io/cassandra/iowrapper/AstraDbDataSource.java
    • Replaced DatabaseClient with DbOpsClient for Astra database operations.
  • v2/sourcedb-to-spanner/src/test/java/com/google/cloud/teleport/v2/source/reader/io/cassandra/iowrapper/AstraDbDataSourceTest.java
    • Replaced DatabaseClient with DbOpsClient in imports and mocked constructions.
  • v2/sourcedb-to-spanner/src/test/java/com/google/cloud/teleport/v2/source/reader/io/cassandra/iowrapper/CassandraConnectorTest.java
    • Replaced DatabaseClient with DbOpsClient in imports and mocked constructions.
  • v2/sourcedb-to-spanner/src/test/java/com/google/cloud/teleport/v2/source/reader/io/cassandra/iowrapper/CassandraTableReaderFactoryCassandraIoImplTest.java
    • Replaced DatabaseClient with DbOpsClient in imports and mocked constructions.
Activity
  • No specific review comments or activity found in the provided context.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@derrickaw derrickaw added the improvement Making existing code better label Feb 14, 2026
@codecov
Copy link

codecov bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.04%. Comparing base (18949a0) to head (9e3f909).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #3333   +/-   ##
=========================================
  Coverage     51.04%   51.04%           
  Complexity     5211     5211           
=========================================
  Files           994      994           
  Lines         60672    60672           
  Branches       6651     6651           
=========================================
  Hits          30967    30967           
  Misses        27529    27529           
  Partials       2176     2176           
Components Coverage Δ
spanner-templates 70.85% <100.00%> (ø)
spanner-import-export 69.06% <ø> (ø)
spanner-live-forward-migration 79.83% <ø> (ø)
spanner-live-reverse-replication 77.42% <ø> (ø)
spanner-bulk-migration 87.93% <100.00%> (ø)
Files with missing lines Coverage Δ
...ader/io/cassandra/iowrapper/AstraDbDataSource.java 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@derrickaw derrickaw marked this pull request as ready for review February 14, 2026 20:43
@derrickaw derrickaw requested a review from a team as a code owner February 14, 2026 20:43
@derrickaw derrickaw changed the title use new functions for higher version astra use new functions for higher version astra 2.1.4 Feb 16, 2026
@derrickaw derrickaw changed the title use new functions for higher version astra 2.1.4 raise astra version to 2.1.4 Feb 16, 2026
@derrickaw derrickaw requested a review from Abacn February 17, 2026 13:57
Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

Thanks!

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

Labels

improvement Making existing code better size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants