Skip to content

Isolate sbt global base per workspace in CI#249

Merged
samuelchassot merged 1 commit intomainfrom
mb/clean-sbt-staging
Mar 2, 2026
Merged

Isolate sbt global base per workspace in CI#249
samuelchassot merged 1 commit intomainfrom
mb/clean-sbt-staging

Conversation

@mbovel
Copy link
Member

@mbovel mbovel commented Feb 27, 2026

scala-smtlib is fetched via sbt's RootProject(uri(...)), which
clones and compiles it into the sbt global staging directory. On
self-hosted runners this directory is shared across runners and
persists across runs, causing stale .tasty/.class files and race
conditions between concurrent jobs. Setting SBT_GLOBAL_BASE to a
workspace-local path isolates each job.

Can be reverted if scala-smtlib is published to Maven.

@mbovel mbovel force-pushed the mb/clean-sbt-staging branch from 7f2a96c to b0a2a7b Compare February 27, 2026 17:21
@mbovel mbovel changed the title Clean sbt staging cache before build Isolate sbt global base per workspace in CI Feb 27, 2026
@mbovel mbovel removed the request for review from sankalpgambhir February 27, 2026 17:24
scala-smtlib is fetched via sbt's RootProject(uri(...)), which
clones and compiles it into the sbt global staging directory. On
self-hosted runners this directory is shared across runners and
persists across runs, causing stale .tasty/.class files and race
conditions between concurrent jobs. Setting SBT_GLOBAL_BASE to a
workspace-local path isolates each job.

Can be reverted if scala-smtlib is published to Maven.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mbovel
Copy link
Member Author

mbovel commented Feb 27, 2026

Okay, now seems to work ✅

@samuelchassot samuelchassot merged commit 58200ea into main Mar 2, 2026
5 checks passed
@mbovel mbovel deleted the mb/clean-sbt-staging branch March 2, 2026 15:54
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.

2 participants