.travis.yml: Disable IRC build status updates from non-master branches
RFC PATCH 1/1 .travis.yml: Disable IRC build status updates from non-master branches
Currently travis logs all builds from forks to the qemu IRC channel. There is no way to disable such updates in travis at present (see https://github.com/travis-ci/travis-ci/issues/1094). Until such feature is available, let us at-least limit the IRC update to the master branch.
Another alternative is to encrypt the "qemu/qemu" repository so that only the main repository updates are posted on
IRC. (ref. https://github.com/facebook/flow/pull/1822).
--- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+)
.travis.yml +4 -0
@@ -34,12 +34,16 @@ addons: - sparse - uuid-dev +branches: + only: + - master notifications: irc: channels: - "irc.oftc.net#qemu" on_success: change on_failure: always + env: global: - TEST_CMD="make check"
Signature · 1 line
2.9.0
Quoted 20 lines · Pranith Kumar
Currently travis logs all builds from forks to the qemu IRC channel. There is no way to disable such updates in travis at present (see https://github.com/travis-ci/travis-ci/issues/1094). Until such feature is available, let us at-least limit the IRC update to the master branch.
Another alternative is to encrypt the "qemu/qemu" repository so that only the main repository updates are posted on
IRC. (ref. https://github.com/facebook/flow/pull/1822).Signed-off-by Pranith Kumar <[email protected]>--- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+).travis.yml +0
-0
.travis.yml addons: · line 39
Quoted 6 lines
.travis.yml +3
-0@@ -34,12 +34,16 @@ addons: - sparse - uuid-dev +branches: + only: + - master
Does this mean "only main qemu repo master does notifications", or just "only the 'master' branch for any qemu repo does notifications" ?
thanks
-- PMM
Quoted 9 lines · Peter Maydell
.travis.yml addons: · line 39
Quoted 4 lines
.travis.yml +3
-0+branches: + only: + - masterDoes this mean "only main qemu repo master does notifications", or just "only the 'master' branch for any qemu repo does notifications" ?
This does the later. If we prefer the former, we need to encrypt the IRC channel as suggested in:
https://github.com/facebook/flow/pull/1822
Signature · 1 line
Pranith
Quoted 6 lines · Pranith Kumar
Quoted 5 lines · Peter Maydell
Quoted 4 lines
.travis.yml +3
-0+branches: + only: + - master
Quoted 8 lines
Quoted 4 lines
Does this mean "only main qemu repo master does notifications", or just "only the 'master' branch for any qemu repo does notifications" ?
This does the later. If we prefer the former, we need to encrypt the IRC channel as suggested in:
https://github.com/facebook/flow/pull/1822
I think we want the former, but I can't figure out what that link is suggesting actually needs to be done.
thanks
-- PMM
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Pranith Kumar
Quoted 9 lines · Peter Maydell
.travis.yml addons: · line 39
Quoted 4 lines
.travis.yml +3
-0+branches: + only: + - masterDoes this mean "only main qemu repo master does notifications", or just "only the 'master' branch for any qemu repo does notifications" ?
Quoted 7 lines
Quoted 3 lines
This does the later. If we prefer the former, we need to encrypt the IRC channel as suggested in:
https://github.com/facebook/flow/pull/1822I think we want the former, but I can't figure out what that link is suggesting actually needs to be done.
The idea is to encrypt "irc.oftc.net#qemu" against "qemu/qemu" to generate an ecrypted string like follows:
$ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
This creates a value which will be properly decrypted only for commits to branches on "qemu/qemu" repository and will be garbage for other forked repositories. So the travis bot will only log the desired notifications.
I will send in a patch which does this.
Thanks,
Signature · 1 line
Pranith
Quoted 9 lines · Pranith Kumar
The idea is to encrypt "irc.oftc.net#qemu" against "qemu/qemu" to generate an ecrypted string like follows:
$ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"This creates a value which will be properly decrypted only for commits to branches on "qemu/qemu" repository and will be garbage for other forked repositories. So the travis bot will only log the desired notifications.
OK, but why does it need to be an encrypted string? Doesn't travis just have a way to say "only for this repo"?
thanks
-- PMM
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Pranith Kumar
The idea is to encrypt "irc.oftc.net#qemu" against "qemu/qemu" to generate an ecrypted string like follows:
$ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
Quoted 7 lines
Quoted 4 lines
This creates a value which will be properly decrypted only for commits to branches on "qemu/qemu" repository and will be garbage for other forked repositories. So the travis bot will only log the desired notifications.
OK, but why does it need to be an encrypted string? Doesn't travis just have a way to say "only for this repo"?
Sadly there is no such way right now. They are working on adding such a feature. We can use that once it is available.
Signature · 1 line
Pranith