Failed environment builds on modelling repositories

The model training environment build fails when creating a new code repo.

The other templates are fine. I have tried recreating new ones (5 times!) and the same problem re-occurs. I have tried installing the marketplace examples and get the same issue.

This is the gradle task that fails: gradle task :transforms-model-training:condaDevelop

This is the error:

❯ Restoring gradle cache

TokenId 296338c5-f975-4bab-adf8-5aac7d7173ef

❯ Running Gradle task :transforms-model-training:condaDevelop

Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘flight-arrival-delay-prediction’. > Could not resolve all files for configuration ‘:classpath’. > Could not find com.palantir.transforms:transforms-gradle-plugin:9.141.0. Searched in the following locations: - /compute/c5aa21/foundry/foundry-artifacts-api/artifacts/api/repositories/ri.stemma.main.repository.1f0ab664-2a6c-4a84-9297-a818d29f843a/contents/migration/maven/com/palantir/transforms/transforms-gradle-plugin/9.141.0/transforms-gradle-plugin-9.141.0.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.

Workarounds do not work because the remainder of the failed build is impossible to get around.

This is very urgent. We need to set up a new modelling repo asap.

I posted this last week in the community and there was no response.

Sorry to hear this! Would you be able to send the contents of your gradle.properties file omitting any sensitive naming/data? I would like to see the versions of the libraries you are using to be able to debug on my side. Thank you

Here is the redacted gradle.properties file:

canEnforceMinimumPythonVersion = true

condaSolveImplementation = hawk

enableCodeAssistEnvironmentCaching = true

enableLegacyFallback = false

envPackingLogicVersion = 2

forceCondaAutoconfiguration = true

modelsPluginVersion = 0.1379.0

org.gradle.caching = true

org.gradle.vfs.watch = false

palantirModelsVersion = 0.1712.0

pipelineOverrideUuid = REDACTED

rootProjectName = REDACTED

systemProp.http.connectionTimeout = 600000

systemProp.http.socketTimeout = 600000

systemProp.org.gradle.internal.http.connectionTimeout = 600000

systemProp.org.gradle.internal.http.socketTimeout = 600000

transformsDefaultBranchName = master

transformsLangPythonPluginVersion = 1.949.0

transformsRepoOrg = REDACTED

transformsRepoPath = REDACTED

transformsRepoProject = REDACTED

transformsRepoRid = REDACTED

transformsVersion = 10.23.0

useCondaLocksForPlatforms = linux-64

useDefaultPython = false

useHawkAsDefaultSolver = true

useIncrementalSolve = true

Also adding templateConfig.json:

{

“parentTemplateId” : “transforms”,

“childTemplatesByPath” : {

"transforms-model-training" : "model-training"

},

“parentTemplateVersion” : “10.23.0”,

“childTemplateVersionsByPath” : {

"transforms-model-training" : "1.949.0"

}

}

@mad_scientist this problem should be resolved as of this morning; could you try again on a new repository or upgrade your existing repository?

(it should upgrade to a version >=1.988.0 of the transforms-model-training template)

Thank you! :tada:

I have learned a lot more about conda and gradle in the past few days trying to fix this myself. The updated template appears to be building the environment correctly. I will post if I see any other issues in the later stages of building.