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

Stack init runs for hours when building git-annex #543

Closed
AKurilin opened this issue Jul 8, 2015 · 3 comments
Closed

Stack init runs for hours when building git-annex #543

AKurilin opened this issue Jul 8, 2015 · 3 comments

Comments

@AKurilin
Copy link

@AKurilin AKurilin commented Jul 8, 2015

Repro:

  • stack 0.1.2
  • download repo from https://github.com/joeyh/git-annex
  • run stack init
  • on an ubuntu 14.04 instance, I had it run for over 90 minutes without any conclusion, stuck on this line:
2015-07-08 01:13:10.749746: [info] Checking against build plan lts-2.3 @(stack-0.1.2.0:Stack.BuildPlan src/Stack/BuildPlan.hs:584:9)

and on a separate machine, without verbose mode on:

[git-annex (master)]$ stack init
Writing default config file to: /home/alex/code/vendor/git-annex/stack.yaml
Basing on cabal files:
- /home/alex/code/vendor/git-annex/git-annex.cabal

Downloaded lts-2.17 build plan.
Caching build plan
Fetched package index.
Populated index cache.
Checking against build plan lts-2.17
@snoyberg
Copy link
Contributor

@snoyberg snoyberg commented Jul 8, 2015

It would seem that git-annex has 24 different flag options, which are all being tested by stack. 2^24==16777216, which obviously takes a long time to test.

I think I'll just hard-code some upper limit like 100 flag combinations to test before giving up.

snoyberg added a commit that referenced this issue Jul 8, 2015
@snoyberg
Copy link
Contributor

@snoyberg snoyberg commented Jul 8, 2015

Alright, upper limit of 128 pushed, which should solve things.

@snoyberg snoyberg closed this Jul 8, 2015
@AKurilin
Copy link
Author

@AKurilin AKurilin commented Jul 8, 2015

Thank you!

dysinger added a commit that referenced this issue Jul 8, 2015
* master:
  #279 Add retries (default 3) to verifiedDownload
  Upper limit on number of flag combinations to test #543
  Flip order of build and test/bench opts parser
  Move `boptsCoverage` and `boptsNoTests` to `TestOpts`
  Replace `boptsAdditionalArgs` with fields in `FinalAction`
  Add benchmark and test options to FinalAction
  Implement `stack bench --benchmark-arguments`
  Fix #537
  Targets outside of root dir don't build (fixes #366)
  Add changelog for #517
  Add --no-run-tests parameter to stack test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.