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 — test: Update the gapic-generator and hermetic-build golden files' copyright to 2025 by zhumin8 · Pull Request #3550 · googleapis/sdk-platform-java

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

Conversation

@zhumin8

@zhumin8 zhumin8 commented Jan 7, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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 [sdk-platform-java] investigate if test golden files are orphaned google-cloud-java#12399 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.

    sdk-platform-java/hermetic_build/library_generation/owlbot/synthtool/languages/java.py

    Lines 113 to 116 in 67f5ea2

    def fix_grpc_headers(grpc_root: Path, package_name: str = "unused") -> None:
    """Helper to ensure that generated grpc stub classes have appropriate license headers.
    If the file does not already contain a license header, inject one at the top of the file.

Sorry, something went wrong.

Uh oh!

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

All reactions
@zhumin8
test: Update the golden files' copyright to 2025
5402323
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Jan 7, 2025
@zhumin8
zhumin8 requested review from blakeli0 and lqiu96 January 7, 2025 15:50
@zhumin8 zhumin8 changed the title test: Update the golden files' copyright to 2025 test: Update the gapic-generator golden files' copyright to 2025 Jan 7, 2025
lqiu96
lqiu96 approved these changes Jan 7, 2025
View reviewed changes
@zhumin8 zhumin8 mentioned this pull request Apr 1, 2026
[sdk-platform-java] investigate if test golden files are orphaned googleapis/google-cloud-java#12399
Closed
@zhumin8
update golden file license year for hermetic build library generation…
d0b9a81
… unit test.
blakeli0
blakeli0 approved these changes Jan 7, 2025
View reviewed changes

@blakeli0 blakeli0 left a comment

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.

Thanks Min! Can you please make it clear that these golden files do not fail the unit tests? And they might get cleaned up in the future.

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
@zhumin8 zhumin8 changed the title test: Update the gapic-generator golden files' copyright to 2025 test: Update the gapic-generator and hermetic-build golden files' copyright to 2025 Jan 7, 2025
@zhumin8

zhumin8 commented Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

Updated description to provide more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@zhumin8
zhumin8 enabled auto-merge (squash) January 7, 2025 22:11
@zhumin8 zhumin8 mentioned this pull request Jan 7, 2025
Tests should not automatically start failing when new year comes #3547
Closed
@zhumin8

zhumin8 commented Jan 7, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Hermetic library generation upon generation config change through pull requests / library_generation (pull_request) Failing after 31m

  File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/release_note_generation/generate_pr_description.py", line 114, in get_repo_level_commit_messages
    raise ValueError(
ValueError: current_commit (f17e0aa, committed on 1734006769) should be newer than or equal to baseline_commit (3cef095, committed on 1736181309) (is this branch up to date with the base branch?).
Error: Process completed with exit code 1.

Based on description in script here:

sdk-platform-java/.github/scripts/hermetic_library_generation.sh

Lines 4 to 5 in 816b160

# This script is used to, when a pull request changes the generation
# configuration (generation_config.yaml by default) or Dockerfile:

I am not sure if this test should run on this pr?

UPDATE: hint from above error, merge main into this resolved it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@blakeli0
Merge branch 'main' into fix-license-header-year
6482d1a
@sonarqubecloud

sonarqubecloud Bot commented Jan 7, 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.

@sonarqubecloud

sonarqubecloud Bot commented Jan 7, 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 merged commit 816f155 into main Jan 7, 2025
@zhumin8
zhumin8 deleted the fix-license-header-year branch January 7, 2025 23:50
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@blakeli0 blakeli0 blakeli0 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.

Uh oh!

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

3 participants

@zhumin8 @blakeli0 @lqiu96
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.