Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Don't build tag pushes #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Don't build tag pushes #270

wants to merge 1 commit into from

Conversation

drogus
Copy link
Contributor

@drogus drogus commented Oct 22, 2013

Recently after changes on how we parse payload on pushes form github, we
started building tag pushes. Ultimately it's something we could do,
but right now tags are interpreted as branches, which is wrong anyway.
I'm disabling building tag pushes for now, until we can handle it
properly.

Recently after changes on how we parse payload on pushes form github, we
started building tag pushes. Ultimately it's something we could do,
but right now tags are interpreted as branches, which is wrong anyway.
I'm disabling building tag pushes for now, until we can handle it
properly.
@joshk
Copy link
Contributor

joshk commented Oct 22, 2013

can't we check if the commit has been built and if not build it?

@drogus
Copy link
Contributor Author

drogus commented Oct 22, 2013

@joshk we can, but this does not really matter. The problem is that we don't have a notion of a tag in DB nor in UI and additionally, when you push tags you need to push commit to some branch anyway. So in the end, when I disable that, the effect will be almost the same as in what you wrote, but in your version tag push could trigger a build instead of a branch push (which will be confusing).

@joshk
Copy link
Contributor

joshk commented Oct 22, 2013

Sorry, I don't fully follow.

I know it doesn't show in the UI correctly (showing as a branch and not a tag) but building tags seems like a fair thing to do.

If I push a tag for a commit which hasn't been tested yet, it would be great for Travis to test it. I have had feedback from users that building tags is great, so turning it off just because we display it as a branch and not a tag seems a bit odd to me.

@drogus
Copy link
Contributor Author

drogus commented Oct 22, 2013

If I push a tag for a commit which hasn't been tested yet, it would be great for Travis to test it.

As far as I know you can't push a tag without a commit, so the commit will be built for one of the branches anyway.

That said, I understand that some people may want to build tags, so I'll prepare another patch tomorrow - to add a tag to a commit and build, so we at least save it in the DB in a right way (I will still return it as a branch in API, to be able to deploy it quickly)

@drogus
Copy link
Contributor Author

drogus commented Oct 22, 2013

If I push a tag for a commit which hasn't been tested yet, it would be great for Travis to test it.

As far as I know you can't push a tag without a commit, so the commit will be built for one of the branches anyway.

Just to clarify, an example: you have a development branch and you have a commit abc123 there. You tag it with foo tag. When you do push --tags, you will push abc123 commit to a development branch and foo tag. As a result we will build both development branch and foo tag. As far as I know there is no way you could have a tag build without a branch build.

@fredwu
Copy link

fredwu commented Nov 25, 2013

Hi, any updates on this?

Our continuous deployment process automatically tags our repos, and now it's becoming increasingly overwhelming for us as our tag builds (which are completely duplicated, as discussed above) take up our build queue. We have to manually cancel them in order for our "real builds" to go through quickly.

cc @joshk @locochris @locomote/mos

@roidrage
Copy link
Contributor

@fredwu we'll look into it this week!

@fredwu
Copy link

fredwu commented Nov 25, 2013

Thanks @roidrage 👍

@tbosch
Copy link

tbosch commented Feb 4, 2014

Hi,
I am from the AngularJS team, and we would like travis to execute our release script when we add a new tag for a previous build and tested commit. This is working right now, please keep that feature (maybe behind a configuration flag in .travis.yml?).

By this, we can continue to add commits to master and then decide which of the already tested commits should become a release. So we don't need a code freeze.

Btw, git does allow to push a tag without a commit using git push origin <tagname>.

@roidrage
Copy link
Contributor

Could we turn this into a setting as well, disable tag builds by default and let people enable them for their projects?

@GrahamCampbell
Copy link

I'd prefer them on by default.

@drogus
Copy link
Contributor Author

drogus commented Apr 18, 2014

@roidrage yup, I can look into that, in the spirit of pushing more smaller
changes more often :) Full refactoring will most likely take some more time.

On Fri, Apr 18, 2014 at 10:47 AM, Graham Campbell
[email protected]:

I'd prefer them on by default.


Reply to this email directly or view it on GitHubhttps://github.com//pull/270#issuecomment-40795771
.

Piotr Sarnacki
http://piotrsarnacki.com

@joshk
Copy link
Contributor

joshk commented Apr 19, 2014

+1 one to adding it as a setting, but I would vote for it to be turned on by default as deployments can be enabled by tag builds only, meaning you would need to switch on tag builds to get deployment to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants