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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFRA] ensure build_docs_pdf CircleCI job runs last #436

Merged
merged 3 commits into from Mar 19, 2020

Conversation

sappelhoff
Copy link
Member

follow up #433, which was apparently not sufficient. 馃槥

With this PR we ensure that build_docs_pdf runs only when all other jobs have successfully finished AND the current branch is master.

@franklin-feingold can we get this in despite your opening of #435 ?

@effigies
Copy link
Collaborator

This will make it hard to check PRs intended to improve the PDF.

@sappelhoff
Copy link
Member Author

Thanks for the catch. The filter for master branch only is actually not necessary.

The branch to get the artifact from can be specified in the link as an appendix (see the ?branch=master):

https://circleci.com/api/v1.1/project/github/bids-standard/bids-specification/1957/artifacts/0/bids-spec.pdf?branch=master

@effigies
Copy link
Collaborator

Isn't the 1957 specifying the build number?

@sappelhoff
Copy link
Member Author

Isn't the 1957 specifying the build number?

exactly. And with this PR I want to ensure that build_docs_pdf is always the last job run on circleCI ... so that we can replace 1957 with latest.

Then the link will be stable / work everytime (except for the times that circleCI is actively running on master, which it is rarely doing)

@effigies
Copy link
Collaborator

Got it. Thanks for putting up with my slowness. Can you add a comment to the config to explain why it depends on all other jobs? Otherwise we'll have to dig through the git-blame and find this discussion.

Copy link
Collaborator

@franklin-feingold franklin-feingold left a comment

Choose a reason for hiding this comment

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

yup! we can squeeze this in. I think this is a nice addition to have for this release. I'll sync the release branch to master on the day of release

@sappelhoff sappelhoff merged commit 55bf354 into bids-standard:master Mar 19, 2020
@sappelhoff sappelhoff deleted the quick branch March 19, 2020 08:46
@sappelhoff
Copy link
Member Author

The link is working as expected now :-)

https://circleci.com/api/v1.1/project/github/bids-standard/bids-specification/latest/artifacts/0/bids-spec.pdf?branch=master

@nicholst nicholst mentioned this pull request Mar 19, 2020
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

3 participants