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

Automatically run tournaments nightly #7

Open
marcharper opened this issue Oct 12, 2015 · 10 comments
Open

Automatically run tournaments nightly #7

marcharper opened this issue Oct 12, 2015 · 10 comments

Comments

@marcharper
Copy link
Member

We discussed this once upon a time. The update script now takes over an hour to run (on a fast machine), and of course is going to get longer as more strategies are added to the library.

I'm thinking it's a good time to add a script to pull down the latest axelrod master, checkout a remote tracking branch, install it, and run the update_script.

My questions are:
(1) Where will it run? I can do it locally for now... it might be a good idea to run in more than one location.
(2) What to do with the new figures? I can try to automatically push to my tournament repository, which can then be merged if anyone needs to do so.

@drvinceknight
Copy link
Member

(1) Where will it run? I can do it locally for now... it might be a good idea to run in more than one location.

I could run it locally also. There's a fair few machines at the university that would be ok for this to run on.

Also, is this something travis could do for us, not sure what the timeout limit is?

(2) What to do with the new figures? I can try to automatically push to my tournament repository, which can then be merged if anyone needs to do so.

I'm not sure I understand, why not just push to the tournament repository?

Also, I'm guessing you don't mean for this to actually run nightly? We could just check the diff and run if new strategies are present?

@marcharper
Copy link
Member Author

Also, is this something travis could do for us, not sure what the timeout limit is?

I think travis has a ~10 minute time limit, which is not long enough.

Also, I'm guessing you don't mean for this to actually run nightly? We could just check the diff and run if new strategies are present?

Ideally, the script would check if there are new commits to master before running, but I'm not sure how easy that is to do.

I'm not sure I understand, why not just push to the tournament repository?

We could push it to a side branch on the main repository, that's fine, but I'm not sure we want to merge /push to gh_pages automatically (not sure if that's what you meant).

@drvinceknight
Copy link
Member

We could push it to a side branch on the main repository, that's fine, but I'm not sure we want to merge /push to gh_pages automatically (not sure if that's what you meant).

Ah yes: very good point. I like the other branch idea, we could use the github API to open a PR for one of us to review?

@marcharper
Copy link
Member Author

Sounds good.

@drvinceknight
Copy link
Member

We could also do something like this https://github.com/tdhopper/phd-tweet and have a twitter account shout when there are new strategies...

@drvinceknight
Copy link
Member

Given the size of this and the fact that data is now being put on zenodo I think this needs to be done manually. Ok to close?

@marcharper
Copy link
Member Author

It's up to you -- I don't mind running a cron job every night if there's interest.

@drvinceknight
Copy link
Member

It's up to you -- I don't mind running a cron job every night if there's interest.

The main thing would be to make sure we're notified so that we can upload the data files... Fancy hooking in to the github API so it would automatically open a PR? It probably makes sense (for computing time) for me to run it on our cluster but if you're happy to: 👍

@marcharper
Copy link
Member Author

Yeah either way. I was just going to dump the data to dropbox or my website and I don't think it would be difficult to automatically open a PR. But I also doubt we want to merge that often. It would just be nice to have some recent runs of data laying around somewhere easily accessible.

@drvinceknight
Copy link
Member

Cool. As you say, it's not exactly a problem if we're running the tournament more than once :)

I was talking about updating the data here: https://zenodo.org/record/49557#.VxlIgFQrKkA It's a shame that that can't just update, it's (mildly) tedious to update as you have to create a new record each time.

Let me know if you want me to run it :)

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