You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[sdk-platform-java] investigate if test golden files are orphaned #12399
context: googleapis/sdk-platform-java#3550
At start of 2025, googleapis/sdk-platform-java#3547 causes test failures on license header year difference. These tests are missed in the original fix, and did not cause any ci test failures without the fix.
Suspecting that these tests are not actually used in test assert, or might be orphaned golden files that used to be used, and did not remove.
Investigate and remove these golden files if not used.
changed the title [-]investigate if test golden files are orphaned[/-][+][sdk-platform-java] investigate if test golden files are orphaned[/+]on Apr 1, 2026
The 122 sample .golden files updated in test: Update the gapic-generator and hermetic-build golden files' copyright to 2025 sdk-platform-java#3550 are not orphaned — they are exercised by ServiceClientClassComposerTest, ServiceSettingsClassComposerTest, and ServiceStubSettingsClassComposerTest via Assert.assertGoldenSamples. (The 2 hermetic_build golden files were also actively tested before hermetic_build/ was removed from sdk-platform-java/.)
Activity
[-]verify if test golden files are orphaned[/-][+]investigate if test golden files are orphaned[/+]test: Update the gapic-generator and hermetic-build golden files' cop…
test: Update the gapic-generator and hermetic-build golden files' cop…
test: Update the gapic-generator and hermetic-build golden files' cop…
[-]investigate if test golden files are orphaned[/-][+][sdk-platform-java] investigate if test golden files are orphaned[/+]blakeli0 commentedon Nov 19, 2026
Closing as not planned after investigating:
.goldenfiles updated in test: Update the gapic-generator and hermetic-build golden files' copyright to 2025 sdk-platform-java#3550 are not orphaned — they are exercised byServiceClientClassComposerTest,ServiceSettingsClassComposerTest, andServiceStubSettingsClassComposerTestviaAssert.assertGoldenSamples. (The 2hermetic_buildgolden files were also actively tested beforehermetic_build/was removed fromsdk-platform-java/.)75b068ec372(feat: Use gapic-generator-java jar in the client library generation process sdk-platform-java#918):GoldenFileWriter.saveSampleCodegenToFileis missing theupdateUnitGoldenssystem property guard, causingAssert.assertGoldenSamplesto overwrite each sample.goldenfile on disk immediately before diffing it.