Skip to content

github run pytests: closes #151 - #159

Merged
bhaller merged 1 commit into
MesserLab:masterfrom
petrelharp:autopytest
Feb 20, 2021
Merged

bhaller merged 1 commit into
MesserLab:masterfrom
petrelharp:autopytest

Conversation

@petrelharp

@petrelharp petrelharp commented Feb 20, 2021 •

Copy link
Copy Markdown
Collaborator

Let's see if this works!

@bhaller

bhaller commented Feb 20, 2021

Copy link
Copy Markdown
Contributor

Looks like it failed: "Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'".

@petrelharp

Copy link
Copy Markdown
Collaborator Author

heh, whoops

@petrelharp

Copy link
Copy Markdown
Collaborator Author

I'm asking this to run with development pyslim, FYI. I think that's the right thing to do here.

@bhaller

bhaller commented Feb 20, 2021

Copy link
Copy Markdown
Contributor

So, the tests.yml builds both a Debug and a Release build of SLiM. It's not clear to me which one your tests will run against. How is it finding the slim binary to execute?

@petrelharp
petrelharp force-pushed the autopytest branch 13 times, most recently from ad3bfba to d2b23c0 Compare February 20, 2021 16:33
Comment thread core/slim_sim.cpp
== tsk_individual)
&& (p_tables->nodes.individual[ind->genome2_->tsk_node_id_]
== tsk_individual));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This bit of code is duplicated above, and there doesn't seem to be the possibility that the node tables are changed between there and here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're referring to the line above where it does p_tables->nodes.individual[ind->genome1_->tsk_node_id_] = tsk_individual;, that is in a different branch of the if/else statement, isn't it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, I meant "below", here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Figured I'd keep the consistency check that's at the end.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, I see. Yes, the first check seems redundant, I suppose. I can't remember why we did that.

@petrelharp

petrelharp commented Feb 20, 2021 •

Copy link
Copy Markdown
Collaborator Author

Huh, this still fails on macos by not finding gsl when installing msprime, but the exact same coide, AFAICT, works for installing msprime for tskit?!? Edit: hah, never mind - I had the pip and conda files switched.

@petrelharp

Copy link
Copy Markdown
Collaborator Author

IT WORKS!!!!!!! 🎉 I think this is ready to merge!

If you're wondering what all this conda cache stuff is doing, so am I, but I think the answer is that "it's making things work" and we can thank Ben Jeffery for figuring it out.

@bhaller

bhaller commented Feb 20, 2021

Copy link
Copy Markdown
Contributor

Wow, that is impressively gross. :-> I guess understanding it isn't really necessary – it's just CI glue. Congrats on slogging through to the finish line!

@bhaller
bhaller merged commit 4243efa into MesserLab:master Feb 20, 2021
@petrelharp
petrelharp deleted the autopytest branch December 13, 2023 23:22
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