Skip to content

Fixes #2302. Don't check pre and post conditions in sbt.Execute by default#2303

Merged
eed3si9n merged 1 commit intosbt:0.13from
jrudolph:w/2302-disable-pre-and-post-checks
Dec 14, 2015
Merged

Fixes #2302. Don't check pre and post conditions in sbt.Execute by default#2303
eed3si9n merged 1 commit intosbt:0.13from
jrudolph:w/2302-disable-pre-and-post-checks

Conversation

@jrudolph
Copy link
Member

@jrudolph jrudolph commented Dec 7, 2015

The checking code has bad run time characteristics and would need to be fixed for large projects with deep task dependency chains.

The code in sbt.Execute has been in production for a long time so it seems safe enough to drop the extra checks by default. To debug issues, you can set -Dsbt.execute.extrachecks=true to revert to the old behavior.

Fixes #2302.

… default.

The checking code has bad run time characteristics and would need to be fixed
for large projects with deep task dependency chains.

The code in sbt.Execute has been in production for a long time so it seems safe
enough to drop the extra checks by default. To debug issues, you can set
`-Dsbt.execute.extrachecks=true` to revert to the old behavior.
@eed3si9n eed3si9n added the ready label Dec 7, 2015
@jrudolph
Copy link
Member Author

jrudolph commented Dec 7, 2015

/cc @fommil

@typesafe-tools
Copy link

Can one of the admins verify this patch?

@eed3si9n
Copy link
Member

eed3si9n commented Dec 7, 2015

LGTM pending Travis.

@fommil
Copy link
Contributor

fommil commented Dec 7, 2015

hmm, where is your repo @jrudolph ?

@fommil
Copy link
Contributor

fommil commented Dec 7, 2015

oh wow, your fork is xsbt. You're properly hardcore.

@fommil
Copy link
Contributor

fommil commented Dec 7, 2015

not sure about "fixes" but this certainly improves things! I'm seeing an update in https://github.com/fommil/sbt-big-project/tree/master/src/sbt-test/sbt-big-project/clusterfsck drop from 68s down to 33s. Which is awesome.

@eed3si9n
Copy link
Member

eed3si9n commented Dec 8, 2015

Could you also add a release not entry in https://github.com/sbt/sbt/tree/0.13/notes/0.13.10?

eed3si9n added a commit that referenced this pull request Dec 14, 2015
…ecks

Fixes #2302. Don't check pre and post conditions in sbt.Execute by default
@eed3si9n eed3si9n merged commit 98fbb43 into sbt:0.13 Dec 14, 2015
@eed3si9n eed3si9n removed the ready label Dec 14, 2015
eed3si9n added a commit that referenced this pull request Dec 15, 2015
@eed3si9n eed3si9n mentioned this pull request Jan 7, 2016
7 tasks
@jrudolph
Copy link
Member Author

I now have a build that just hangs which would have failed with an assertion without this change. Maybe the assertion that notices that no tasks are runnable any more should be enabled in any case.

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.

4 participants