Skip to content

Get Rid of nobuild and nolink#2765

Merged
tgamblin merged 13 commits intospack:developfrom
citibeth:efischer/170105-EliminateNolink
Jan 8, 2017
Merged

Get Rid of nobuild and nolink#2765
tgamblin merged 13 commits intospack:developfrom
citibeth:efischer/170105-EliminateNolink

Conversation

@citibeth
Copy link
Copy Markdown
Member

@citibeth citibeth commented Jan 6, 2017

The dependency type aliases nobuild and nolink have been deprecated. This PR gets rid of them.

@tgamblin @hegner Would you be able to please take a quick look at the chnages to database.py? I think they need a little help...

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017

Actually, I think that database.py is OK. As long as _tracked_deps can be a tuple in the call to rec.spec.dependencies(_tracked_deps).

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017

@adamjstewart Do you know why Travis tests have stalled here (or how to restart)? Thanks!

@adamjstewart
Copy link
Copy Markdown
Member

Not sure why they stalled. But yes, pushing a new commit is one way to get them to restart. So is closing and reopening the PR. I think if you go to the travis page linked to under details, there is sometimes a restart button as well.

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017

Hmm... pushing the new commit didn't work. Can't find a restart button. now trying closing/reopening.

@citibeth citibeth closed this Jan 6, 2017
@citibeth citibeth reopened this Jan 6, 2017
@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017

Still no tests :*(

@adamjstewart
Copy link
Copy Markdown
Member

Travis definitely seems less stable now that we switched to pytest and added macOS tests. @alalazo @tgamblin?

@citibeth citibeth added the ready label Jan 6, 2017
@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017

This passed all the tests; except Travis hung and hasn't yet started the Mac tests. I'm adding the "ready" label...

@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Jan 6, 2017

It's not hung -- it's just waiting for the mac worker. I suspect those are scarce, but I'd rather have mac tests than not.

@adamjstewart
Copy link
Copy Markdown
Member

The mac tests take quite a while. If you check in .travis.yml, you'll see things like brew update. That's what causes the tests to take so long.

@adamjstewart
Copy link
Copy Markdown
Member

Ok, so it takes a while to find an available mac worker, and the tests take a while to run brew update. That makes more sense.

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017 via email

@adamjstewart
Copy link
Copy Markdown
Member

P.S. This may conflict a lot with #2761.

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 6, 2017 via email

Copy link
Copy Markdown
Member

@tgamblin tgamblin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small requested change.

@@ -1508,10 +1508,7 @@ Additional hybrid dependency types are (note the lack of quotes):
* **<not specified>**: ``type`` assumed to be ``("build",
"link")``. This is the common case for compiled language usage.
* **alldeps**: All dependency types. **Note:** No quotes here
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alldeps can probably be eliminated from the user docs and packages, as well. It's used internally by the Spec traversal routines, which need a way to guarantee that they are going over the whole DAG.

Using alldeps in a package is going be very surprising when we add things like test dependencies. There are 4 packages that currently use alldeps -- those should probably be changed to ('build', 'link', 'run').

@citibeth citibeth force-pushed the efischer/170105-EliminateNolink branch from 7734683 to 7977854 Compare January 8, 2017 02:08
@citibeth citibeth force-pushed the efischer/170105-EliminateNolink branch from 7977854 to 5882cdc Compare January 8, 2017 02:24
@citibeth citibeth closed this Jan 8, 2017
@citibeth citibeth reopened this Jan 8, 2017
@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 8, 2017

Closing; the SHA Travis don't match the SHA on the source branch (5882cdc8), hence the errors:
https://github.com/citibeth/spack/commits/efischer/170105-EliminateNolink

@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Jan 8, 2017

@citibeth: I think you are seeing the effect of Travis merging the PR into the target branch before building. If you go to the Travis PR build history and click on one of the SHAs you see there, it takes you to a page like this one. You see there that the travis commit is ec1c44f, which is a merge of 5882cdc into the tip of develop.

@citibeth citibeth reopened this Jan 8, 2017
@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 8, 2017

@tgamblin OK, looks like it's OK now. My trouble was actually rather prosaic: I had neglected to commit the most recent change from my working tree. So it was not in Git, and Travis could not see it. And no amount of pushing and re-pushing my branch could change that.

@citibeth
Copy link
Copy Markdown
Member Author

citibeth commented Jan 8, 2017

@tgamblin I have addressed your change request.

@tgamblin tgamblin merged commit 402dfe3 into spack:develop Jan 8, 2017
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.

3 participants