Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ machine:

checkout:
post:
- |
git clone --depth 1 ${ST2_PACKAGES_REPO} /home/ubuntu/st2/st2-packages
cd /home/ubuntu/st2/st2-packages
git checkout ${CIRCLE_BRANCH} || true
- git clone -b ${CIRCLE_BRANCH} --single-branch --depth 1 ${ST2_PACKAGES_REPO} /home/ubuntu/st2/st2-packages
- .circle/buildenv.sh

dependencies:
Copy link
Member

Choose a reason for hiding this comment

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

As noted before, see the discussion why this order || true hack was needed:
#2569

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually not having the remote branch is a failure. It should fail loud and clear rather than falling back to master.

So yeah some build might fail due to a race but its easy to get out of the race.

Copy link
Member

Choose a reason for hiding this comment

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

For example when branch v1.4 in st2 is created and changes are pushed,
CI here will try to fetch v1.4 branch of st2-packages which is not yet created.

It means that first build for new major release will be always RED.

Also interesting coincidence that you was mentioned there: #2569 (comment) before to clarify existing release machinery :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RED is better than building against the wrong branch. I can live with that one.

Expand Down