Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit caching test for PropertiesFileTransformer #1208

Closed

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Jan 28, 2025

Refs #1206.

@Goooler Goooler force-pushed the g/20250128/add-tests-for-transformer branch from 036832e to 09ccc2a Compare January 28, 2025 03:32
@Goooler Goooler changed the title Add caching test for PropertiesFileTransformer Add explicit caching test for PropertiesFileTransformer Jan 28, 2025
@Goooler Goooler force-pushed the g/20250128/add-tests-for-transformer branch from d0d41e8 to fa0d5f0 Compare January 28, 2025 04:58
@Goooler Goooler force-pushed the g/20250128/add-tests-for-transformer branch from fa0d5f0 to ef872cf Compare January 28, 2025 05:01
@Goooler Goooler changed the base branch from main to g/20250127/more-inputs January 28, 2025 05:10
}

assertFirstExecutionSuccess()
assertions("FOO")
Copy link
Member Author

Choose a reason for hiding this comment

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

expected to contain:<"FOO=bar"> but was:<"#

foo=bar
"> (com.github.jengelman.gradle.plugins.shadow.util.JarPath@5827af16)
org.opentest4j.AssertionFailedError: expected to contain:<"FOO=bar"> but was:<"#

foo=bar

This failure looks due to keyTransformer being @Transient, can't be serialized back, it's null in

if (keyTransformer == null) {
return properties as CleanProperties
}

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried a serializable type in d71e879, but with a new error


* What went wrong: |  
-- | --
  | com/github/jengelman/gradle/plugins/shadow/transformers/KeyTransformer |  
  | > com.github.jengelman.gradle.plugins.shadow.transformers.KeyTransformer |  
  |   |  
  | * Try: |  
  | > Run with --info or --debug option to get more log output. |  
  | > Run with --scan to get full insights. |  
  | > Get more help at https://help.gradle.org. |  
  |   |  
  | * Exception is: |  
  | java.lang.NoClassDefFoundError: com/github/jengelman/gradle/plugins/shadow/transformers/KeyTransformer

No idea how to fix them now...

@Goooler Goooler closed this Jan 28, 2025
@Goooler Goooler deleted the g/20250128/add-tests-for-transformer branch January 28, 2025 09:18
@Goooler Goooler restored the g/20250128/add-tests-for-transformer branch February 1, 2025 08:48
@Goooler Goooler deleted the g/20250128/add-tests-for-transformer branch February 1, 2025 10:38
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.

1 participant