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

Run deploy_to_levelbuilder on weekday afternoons. #17173

Merged
merged 4 commits into from Aug 23, 2017

Conversation

ashercodeorg
Copy link
Contributor

@ashercodeorg ashercodeorg commented Aug 21, 2017

Per feedback from @wjordan, this is being made to run on the test machine as it executes commands on that machine (namely, creating and pushing a new branch).

As such, this PR includes some code changes to reflect this. This PR also deletes the branch after merge, something missed in #17163.

# Double-escape the command string, once for each remote shell we're passing through.
system "ssh -t gateway.code.org ssh -t #{server} #{command.inspect.inspect}"
end

# Creates a new branch with the given name from the given commit on the test server
# (without checking it out) and pushes it to GitHub.
# @param [String] branch_name The name of the branch to create.
# @param [String] commit The sha of the commit to base the branch at.
# TODO(asher): Move this to a location for better reuse, deduplicating existing copies of it.
Copy link
Contributor

@Erin007 Erin007 Aug 23, 2017

Choose a reason for hiding this comment

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

Is this something that can be done along with these changes? Or is the TODO comment no longer applicable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good Q. Definitely still relevant, though a slightly moving target as the deploy_to_test, deploy_to_levelbuilder, and scoop_content (soon to be commit_content) scripts change. Ideally (IMO), I'll resolve the TODO after the scripts settle, that way I know the best API to offer.

For example, I would have done things "wrong" originally, based on wjordan's (good) suggestion that the only cross environment interaction should be through PR merges.

@ashercodeorg ashercodeorg merged commit 48b0343 into staging Aug 23, 2017
@ashercodeorg ashercodeorg deleted the cronLevelbuilder branch August 23, 2017 16:58
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.

None yet

2 participants