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 commented Jul 8, 2015

Repro:

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 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
Copy link
Contributor

snoyberg commented Jul 8, 2015

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

@snoyberg snoyberg closed this as completed Jul 8, 2015
@akurilin
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants