Skip to content

Conversation

@cjreynol
Copy link
Collaborator

And suppress the build warnings from those deprecations.

Bug: 432329063

@cjreynol cjreynol requested a review from Databean July 16, 2025 23:55
@cjreynol cjreynol self-assigned this Jul 16, 2025
@cjreynol cjreynol added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Jul 16, 2025
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Jul 16, 2025

message Connectivity {
optional Vsock vsock = 1;
optional Vsock vsock = 1 [deprecated = true];
Copy link
Member

Choose a reason for hiding this comment

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

vsock is in the "proposed for updated config" list in go/cf-config-flags-list .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the catch, that was a mistake! Removed the deprecated option.

repeated Display displays = 1;
optional bool record_screen = 2;
optional string gpu_mode = 3;
optional string gpu_mode = 3 [deprecated = true];
Copy link
Member

Choose a reason for hiding this comment

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

go/cf-config-flags-list mentions this should still be present, but limited to "auto" or "off" rather than the full set of options supported by our internal tools.

Copy link
Collaborator Author

@cjreynol cjreynol Jul 17, 2025

Choose a reason for hiding this comment

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

Yes. I thought we would change this to a new enum type. From what I read in the proto best practices about type changes I believe that change might be an issue. My plan was to deprecate this and introduce a new, limited field once we get to the point of removal.

I can leave a comment with that information, unless you disagree with the above plan.

EDIT: Found a reference, string to enum is listed as an unsafe change.


message Streaming {
optional string device_id = 1;
optional string device_id = 1 [deprecated = true];
Copy link
Member

Choose a reason for hiding this comment

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

This one is meant to be use by the orchestrators. Don't deprecate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed the deprecated option.

@cjreynol cjreynol force-pushed the deprecate_load_config_fields branch from 75ad284 to 89d514b Compare July 17, 2025 19:01
@cjreynol cjreynol requested review from Databean and jemoreira July 17, 2025 19:05
cjreynol added 2 commits July 17, 2025 14:04
To spare us the build noise until they are removed.
@cjreynol cjreynol force-pushed the deprecate_load_config_fields branch from 89d514b to 5a0a785 Compare July 17, 2025 21:16
@cjreynol
Copy link
Collaborator Author

Looks like this triggers clang-tidy's clang-diagnostic-deprecated-declarations. If that is going to trigger for every usage as we try to migrate users it may not be worth trying to signal our intentions until we are closer to removing fields?

@Databean
Copy link
Member

According to go/deprecation-policy it's valid to mark something as deprecated if there is a replacement available at the time of deprecation.

@cjreynol cjreynol marked this pull request as draft August 14, 2025 17:40
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