GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tests: Update the golden files' copyright to 2025 by blakeli0 · Pull Request #3513 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@blakeli0

@blakeli0 blakeli0 commented Jan 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes #3512.

The copyright year for GAPIC generated files are automatically set to current year. This creates a problem that all the tests are going to automatically fail when new year comes. Updating all the golden files' copyright to 2025 in this PR for now.

There are golden test files need to be updated in spring-cloud-gcp as well since it is dependent on the generator.

In the future, we need to come up with a better strategy that the tests do not fail automatically, created an issue #3547 to track the future enhancement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@blakeli0
Update ComposerTest.java
50e91a4
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Jan 3, 2025
blakeli0 and others added 2 commits January 3, 2025 12:36
@blakeli0
Update ComposerTest.java
20ff2ec
@cloud-java-bot
chore: generate libraries at Fri Jan 3 17:40:49 UTC 2025
4bf1f20
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: xs Pull request size is extra small. labels Jan 3, 2025
@mpeddada1 mpeddada1 mentioned this pull request Jan 3, 2025
Nightly builds are failing due to copyright header update #3512
Closed
@zhumin8 zhumin8 mentioned this pull request Jan 6, 2025
chore: update googleapis commit at Fri Dec 13 02:31:23 UTC 2024 #3466
Merged
zhumin8
zhumin8 reviewed Jan 6, 2025
View reviewed changes
Comment thread gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java Outdated
assertTrue(context.containsServices());
}

@Disabled

@zhumin8 zhumin8 Jan 6, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

IIUC, this is a manual fix and this @Disabled is added temporarily and will be removed after this update is merged?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@blakeli0 blakeli0 Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

No, I was testing if adding @Disabled to this test is going to fix most of the issues or not. It proves not, we need to update integration tests, showcase tests, hermetic build tests and spring-cloud-gcp tests. I'm going to update all the golden files in this repo for now to unblock the release, and create issues for improvements.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zhumin8 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@blakeli0
fix: Update the unit tests, integration tests, and showcase tests' go…
b2a50ce
…lden files' copyright to 2025.
@blakeli0 blakeli0 changed the title Update ComposerTest.java tests: Update the golden files' copyright to 2025 Jan 6, 2025
blakeli0 added 2 commits January 6, 2025 14:43
@blakeli0
fix: Update GAPIC generated resource names' golden files' copyright t…
59d5c62
…o 2025.
@blakeli0
fix: Formatting.
afc8ae7
@sonarqubecloud

sonarqubecloud Bot commented Jan 6, 2025

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@blakeli0 blakeli0 mentioned this pull request Jan 6, 2025
Tests should not automatically start failing when new year comes #3547
Closed
@sonarqubecloud

sonarqubecloud Bot commented Jan 6, 2025

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zhumin8 zhumin8 mentioned this pull request Jan 6, 2025
deps: update dependency com.google.guava:guava-bom to v33.4.0-jre #3545
Merged
1 task
@blakeli0

blakeli0 commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

/gcbrun

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

1 similar comment
@blakeli0

blakeli0 commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

/gcbrun

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@blakeli0
blakeli0 requested review from lqiu96 and zhumin8 January 6, 2025 21:38
@blakeli0
blakeli0 marked this pull request as ready for review January 6, 2025 21:38
zhumin8
zhumin8 approved these changes Jan 6, 2025
View reviewed changes
lqiu96
lqiu96 approved these changes Jan 6, 2025
View reviewed changes
@blakeli0
blakeli0 merged commit 8e5d662 into main Jan 6, 2025
@blakeli0
blakeli0 deleted the blakeli0-patch-4 branch January 6, 2025 21:53
This was referenced Jan 7, 2025
test: Update the golden files' copyright to 2025 GoogleCloudPlatform/spring-cloud-gcp#3441
Merged
feat: revert #3400: reintroduce experimental S2A integration in client libraries grpc transport #3548
Merged
test: Update the gapic-generator and hermetic-build golden files' copyright to 2025 #3550
Merged
zhumin8 added a commit that referenced this pull request Jan 7, 2025
@zhumin8
test: Update the gapic-generator and hermetic-build golden files' cop…
816f155
…yright to 2025 (#3550)

follow-up to #3513, 

Changes in this PR:
- generated by ` mvn test -DupdateUnitGoldens ` from
gapic-generator-java/. Note that unit tests without this change did not
fail. Filed https://github.com/googleapis/sdk-platform-java/issues/3556
to investigate and maybe remove these in the future.
- library-generation unit test golden files. They are causing test
failures in
https://github.com/googleapis/sdk-platform-java/actions/runs/12659566586/job/35278951040?pr=3462
These 2 files are used in unit tests to test logic in owlbot to insert
header when they are missing. e.g.
https://github.com/googleapis/sdk-platform-java/blob/67f5ea23f50eaf57925cdf34d51c7b0bfcc67cf3/hermetic_build/library_generation/owlbot/synthtool/languages/java.py#L113-L116
lqiu96 pushed a commit that referenced this pull request Feb 20, 2025
@blakeli0 @cloud-java-bot @lqiu96
tests: Update the golden files' copyright to 2025 (#3513)
8ec7757
Fixes #3512.

The copyright year for GAPIC generated files are automatically [set to
current
year](https://github.com/googleapis/sdk-platform-java/blob/9a65386dfc3146de4f9b36962caae2df0662ac98/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java#L38).
This creates a problem that all the tests are going to automatically
fail when new year comes. Updating all the golden files' copyright to
2025 in this PR for now.

There are golden test files need to be updated in spring-cloud-gcp as
well since it is dependent on the generator.

In the future, we need to come up with a better strategy that the tests
do not fail automatically, created an issue
#3547 to track the
future enhancement.

---------

Co-authored-by: cloud-java-bot <[email protected]>
lqiu96 pushed a commit that referenced this pull request Feb 20, 2025
@zhumin8 @lqiu96
test: Update the gapic-generator and hermetic-build golden files' cop…
85020a9
…yright to 2025 (#3550)

follow-up to #3513, 

Changes in this PR:
- generated by ` mvn test -DupdateUnitGoldens ` from
gapic-generator-java/. Note that unit tests without this change did not
fail. Filed https://github.com/googleapis/sdk-platform-java/issues/3556
to investigate and maybe remove these in the future.
- library-generation unit test golden files. They are causing test
failures in
https://github.com/googleapis/sdk-platform-java/actions/runs/12659566586/job/35278951040?pr=3462
These 2 files are used in unit tests to test logic in owlbot to insert
header when they are missing. e.g.
https://github.com/googleapis/sdk-platform-java/blob/67f5ea23f50eaf57925cdf34d51c7b0bfcc67cf3/hermetic_build/library_generation/owlbot/synthtool/languages/java.py#L113-L116
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 24, 2026
@zhumin8
test: Update the gapic-generator and hermetic-build golden files' cop…
9cd2328
…yright to 2025 (#3550)

follow-up to googleapis/sdk-platform-java#3513, 

Changes in this PR:
- generated by ` mvn test -DupdateUnitGoldens ` from
gapic-generator-java/. Note that unit tests without this change did not
fail. Filed https://github.com/googleapis/sdk-platform-java/issues/3556
to investigate and maybe remove these in the future.
- library-generation unit test golden files. They are causing test
failures in
https://github.com/googleapis/sdk-platform-java/actions/runs/12659566586/job/35278951040?pr=3462
These 2 files are used in unit tests to test logic in owlbot to insert
header when they are missing. e.g.
https://github.com/googleapis/sdk-platform-java/blob/54485c32dc9b6b265cade7f9d458e3fb196bba09/hermetic_build/library_generation/owlbot/synthtool/languages/java.py#L113-L116
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@zhumin8 zhumin8 zhumin8 approved these changes
@lqiu96 lqiu96 lqiu96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Nightly builds are failing due to copyright header update

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@blakeli0 @zhumin8 @lqiu96 @cloud-java-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.