shunping opened a new pull request, #40133: URL: https://github.com/apache/beam/pull/40133
Gradle treats the `tokens:` map passed to the ReplaceTokens content filter as a filter argument, not a task input, so it affects neither the up-to-date check nor the build cache key. The filtered sources contain only unsubstituted placeholders and are byte identical regardless of what the tokens expand to, so nothing invalidates processResources when a token value changes. In a shared checkout where build/ survives branch switches, the task stays UP-TO-DATE and the previous branch's substituted resource is left behind. Switching master -> a former release branch left dataflow.properties holding master's container version, so pipelines ran against a wrong version of beam-master SDK harness. The same staleness also poisons the build cache, since both branches compute the same key for different correct outputs, so `clean` is not a reliable workaround. This can be fixed by declaring the token map as an input property. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
