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

CI solution #203

Closed
vohmar opened this issue Oct 10, 2016 · 35 comments
Closed

CI solution #203

vohmar opened this issue Oct 10, 2016 · 35 comments
Assignees
Milestone

Comments

@vohmar
Copy link
Contributor

vohmar commented Oct 10, 2016

we need to set up Continuous Integration solution. GitHub integration is something to keep in mind so that autotest are run on merge/commit to staging for example.

https://github.com/integrations/feature/continuous-integration

deployment guide must also be updated with install and config instructions.

Solutions:

artur-intech pushed a commit that referenced this issue Oct 10, 2016
artur-intech pushed a commit that referenced this issue Oct 10, 2016
artur-intech pushed a commit that referenced this issue Oct 11, 2016
artur-intech pushed a commit that referenced this issue Oct 11, 2016
artur-intech pushed a commit that referenced this issue Oct 11, 2016
@artur-intech
Copy link
Contributor

artur-intech commented Oct 11, 2016

Travis build is set up.

@artur-intech
Copy link
Contributor

artur-intech commented Oct 11, 2016

Travis:

Advantages:

  • Cloud solution

Disadvantages:

  • Builds start with random delay, depending on some Travis' resource manager. Probably can be solved by changing a plan to paid one

Jenkins:

Disadvantages:

  • Needs maintaining

@artur-intech
Copy link
Contributor

Let's see how Travis free plan works.

@vohmar
Copy link
Contributor Author

vohmar commented Oct 12, 2016

@artur-beljajev how does this function at the moment? all commits to staging initiate autotests? Why are there so many commits in staging with red cross marking the travis CI build failure - if commit does not pass autotests can it be configured so that commit fails and broken code does not get merged into staging.

@vohmar vohmar reopened this Oct 12, 2016
@vohmar vohmar added this to the Sprint 161016 milestone Oct 12, 2016
@artur-intech
Copy link
Contributor

artur-intech commented Oct 12, 2016

Yes, commits to staging initiate all specs to run. Build fails since tests are broken, see linked ticket.

@vohmar
Copy link
Contributor Author

vohmar commented Oct 13, 2016

@artur-beljajev I cannot find any commits on master branch

@artur-intech
Copy link
Contributor

See staging.

@vohmar
Copy link
Contributor Author

vohmar commented Oct 14, 2016

@artur-beljajev how can i commit this to master?

@artur-intech
Copy link
Contributor

It is in staging branch

@vohmar
Copy link
Contributor Author

vohmar commented Oct 14, 2016

@artur-beljajev that is no use to me - cannot close/accept ticket until it is in master

@artur-intech
Copy link
Contributor

What I am supposed to do with it then?

@vohmar
Copy link
Contributor Author

vohmar commented Oct 14, 2016

cherry-pick the code to separate branch for example

@artur-intech
Copy link
Contributor

What's the benefit of this additional effort?

@vohmar
Copy link
Contributor Author

vohmar commented Oct 14, 2016

finishing the job and closing the ticket

@artur-intech
Copy link
Contributor

artur-intech commented Oct 14, 2016

The change is present in staging branch, and I see no reason introducing new feature branch only for 1 file change that does not depend on anything, besides Travis, which is totally external to us.

Please either check it briefly, say, that you see build info in Travis and close it, or please be so kind, explain, what is the reason why you want to extract it to separate branch.

artur-intech pushed a commit that referenced this issue Oct 19, 2016
@artur-intech
Copy link
Contributor

Notifications are sent to developers@tld.ee

artur-intech pushed a commit that referenced this issue Oct 20, 2016
@artur-intech
Copy link
Contributor

artur-intech commented Oct 20, 2016

Notification email is removed from Travis config. By default it gets sent to committer.

Merged with master and staging.

@teadur FYI developers@tld.ee is not used by Travis anymore.

@vohmar
Copy link
Contributor Author

vohmar commented Oct 20, 2016

@artur-beljajev please update this: https://github.com/internetee/registry/blob/master/doc/testing.md
add references to Travis as the default CI solutions and point to the applications setup guide if nothing is needed to do just to make it work with the deployment from master.

@artur-intech
Copy link
Contributor

I don't think it should be under test guide. Travis is CI solution, and new registry may or may not use it.
Can you please also explain, who this guide is aimed for? If it is for technical stuff, they probably know that is Travis and it's enough just to mentioned that we support it out of the box.

@artur-intech
Copy link
Contributor

artur-intech commented Oct 20, 2016

I am also thinking of removing branch spec from config at all (i.e. what branch to run the specs against). It should be specified per Travis instance config, not in repo config, imho.

artur-intech pushed a commit that referenced this issue Oct 20, 2016
artur-intech pushed a commit that referenced this issue Oct 20, 2016
@vohmar
Copy link
Contributor Author

vohmar commented Oct 21, 2016

@artur-beljajev please update changelog on changes related to this ticket

@artur-intech
Copy link
Contributor

Done

@artur-intech
Copy link
Contributor

Merged to staging

@teadur
Copy link
Contributor

teadur commented Oct 26, 2016

@artur-beljajev are there any other methods for me to get the travis buildreports automatically ?
I would prefer to receive them.

@artur-intech
Copy link
Contributor

According to https://docs.travis-ci.com/user/notifications I don't see any way of neither having dedicated config file for each registry nor configure it in Travis UI.

@vohmar vohmar assigned artur-intech and unassigned vohmar Oct 31, 2016
@vohmar
Copy link
Contributor Author

vohmar commented Nov 1, 2016

@artur-beljajev There is a documented way to configure what @teadur asked -

Email notifications #

Specify recipients that will be notified about build results:

notifications:
  email:
    - one@example.com
    - other@example.com

Please add reference to the documentation oh how to set this in deployment file.

@artur-intech
Copy link
Contributor

We had this solution initially, but then removed it since we cannot just hard-code those emails. We also can't git ignore this file, since Travis expects it to exist.

P.S. Actually, there are defaults which will be used in case of absence of travis.yml, but this file has some project-dependent config.

@vohmar
Copy link
Contributor Author

vohmar commented Nov 1, 2016

@artur-beljajev document this option in our installation/deployment guide so if someone will deploy the system they will know that if they want travis notifications on some specific email they will have to configure it in yaml file before deploying it.

@artur-intech
Copy link
Contributor

This file is tracked by Git. If another registry makes changes in this file, it is out of luck.

@vohmar
Copy link
Contributor Author

vohmar commented Nov 1, 2016

@artur-beljajev branch https://github.com/internetee/registry/tree/registry-203 has merge conflicts with master. Please resolve the issues.

artur-intech pushed a commit that referenced this issue Nov 1, 2016
artur-intech pushed a commit that referenced this issue Nov 1, 2016
artur-intech pushed a commit that referenced this issue Nov 1, 2016
@artur-intech
Copy link
Contributor

Done

@artur-intech artur-intech assigned vohmar and unassigned artur-intech Nov 9, 2016
@vohmar
Copy link
Contributor Author

vohmar commented Nov 16, 2016

closed, branch deleted

@vohmar vohmar closed this as completed Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants