Skip to content

Conversation

@thekad
Copy link
Collaborator

@thekad thekad commented Aug 20, 2025

SUMMARY

Google Cloud does not host source repositories anymore, they provide connections to other source code providers (e.g. github, gitlab, bitbucket)

Likewise, they stopped offering their ML products in favor of Vertex AI.

The modules that use these APIs are currently broken and, given that the upstream actively discourages you to use them, are not worth to fix imo.

There should be some new modules to replace sourcerepo_repository under the cloudbuild umbrella (since they are part of the v2 API) and there should be new modules for Vertex as well.

After the next major version, these should be tombstoned, ref:

https://docs.ansible.com/ansible/latest/dev_guide/module_lifecycle.html

ISSUE TYPE
  • Deprecation notice
COMPONENT NAME
  • gcp_sourcecode_repo
  • gcp_sourcecode_repo_info
  • gcp_mlengine_model
  • gcp_mlengine_model_info
  • gcp_mlengine_version
  • gcp_mlengine_version_info
ADDITIONAL INFORMATION

With this patch, a deprecation notice is shown when running a playbook with these modules, example for sourcecode_repo:

[DEPRECATION WARNING]: google.cloud.gcp_sourcerepo_repository has been deprecated. Effective June 
17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't 
previously used Cloud Source Repositories, you can't enable the API or use Cloud Source 
Repositories. This feature will be removed from google.cloud in version 2.0.0. Deprecation warnings 
can be disabled by setting deprecation_warnings=False in ansible.cfg.

Google Cloud does not host source repositories anymore, they provide
connections to other source code providers (e.g. github, gitlab,
bitbucket)

Likewise, they stopped offering their ML products in favor of Vertex AI.

The modules that use these APIs are currently broken and, given that the
upstream actively discourages you to use them, are not worth to fix imo.

There should be some new modules to replace sourcerepo_repository under
the cloudbuild umbrella (since they are part of the v2 API) and there
should be new modules for Vertex as well.

After the next major version, these should be tombstoned, ref:

https://docs.ansible.com/ansible/latest/dev_guide/module_lifecycle.html
@thekad thekad requested a review from SirGitsalot August 20, 2025 01:51
Copy link
Collaborator

@p3ck p3ck left a comment

Choose a reason for hiding this comment

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

I think you need to update the docs to state they are deprecated as well. Look at the failed test run.

@thekad
Copy link
Collaborator Author

thekad commented Aug 20, 2025

@p3ck I completely missed that bit from the lifecycle reference, my bad. I tried it but the alternative field is required, I could put there is no alternative, or I could wait to add this deprecation information until after I have created the actual alternatives... WDYT?

@p3ck
Copy link
Collaborator

p3ck commented Aug 20, 2025

I think you need the actual alternatives first :-)

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.

2 participants