aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/test-bot.rb
AgeCommit message (Collapse)Author
2016-05-30test-bot: move to dev-cmd. (#298)Mike McQuaid
This is not a command designed for end-users.
2016-05-28test-bot: don't `brew tests` for formula PRs. (#294)Mike McQuaid
This adds >1m to every build on every node and it can't actually be affected/fixed by formula PRs.
2016-05-28bottle/test-bot: deep merge bottle JSON hashes.Mike McQuaid
2016-05-28test-bot: only test --no-compat for Homebrew/brew. (#286)Mike McQuaid
This job takes almost a minute and it's not useful for all core taps to run this.
2016-05-28test-bot: remove support for legacy Homebrew repo. (#287)Mike McQuaid
We're not really getting any more PRs here and this code makes this file harder to follow and refactor.
2016-05-28test-bot: fix tag reference.Mike McQuaid
2016-05-28Use JSON files for bottle upload data. (#166)Mike McQuaid
This means that we do not need to read formulae or evaluate Ruby at upload time.
2016-05-10Move more methods to DevelopmentTools.Mike McQuaid
Closes #1028.
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-05-06test-bot: only push once when uploading.Mike McQuaid
2016-05-02Update Homebrew/homebrew references in codeMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-05-02Update Homebrew/homebrew references in commentsMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-04-19test-bot: simplify the logicXu Cheng
Closes #115. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-19test-bot: prevent infinite loop caused by unavailable formula.Xu Cheng
Noted, `brew tap foo` will not fail if the tap is already installed.
2016-04-18test-bot: check all dependents for broken dylibsAndrew Janke
Pulls 'brew linkage' in to main brew repo as a dev-cmd, and has test-bot use it to detect dylib breakage, which usually means a revision bump is needed. Checks all dependents, not just those with a 'test do' block defined, since we can do this without formula support. Closes #107. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18test-bot: don't untap during cleanup_beforeDominyk Tiller
2016-04-18test-bot: purge non-core taps at start/end of job (#109)Dominyk Tiller
https://github.com/Homebrew/brew/commit/e70a3552d3faddd0afd2535a03c31b8c50be901a seems to have exacerbated the problem where taps stick around and then `brew uses` gets executed on a whole host of taps, which is currently breaking almost every PR for formulae that would be used cross-tap, as well as causing lengthier CI builds. Examples from the last week or so include sqlite, V8, protobuf, and so on. Whilst it may be true that cross-tap formulae failing can show problems that need looking at, a lot of the time the failures are unrelated to the build in question and just leave contributors confused on what needs to be done, or why their PR is failing for something that seems entirely unrelated. You can see the taps failing to vanish locally by doing something like: ``` brew tap homebrew/fuse brew tap homebrew/versions cd $(brew --prefix) && git clean -ffdx --exclude=/Library/Taps/ brew tap ... homebrew/core homebrew/fuse homebrew/versions ``` This is a very simple proposal to handle the problem, but there's no real reason I couldn't write this functionality into untap itself and then we call that in test-bot. Just didn't necessarily want to jump immediately to expanding the untap command to solve what is more-or-less a CI problem.
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-16test-bot: update for new deps/uses optionsXu Cheng
Closes #92. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-06test-bot: add safety margin to output truncation sizeAndrew Janke
2016-04-06test-bot: stop using --recursive for `brew uses`Dominyk Tiller
We're not sure this is working as it was intended to, and the primary end product so far has been making every Ruby 1.8.7 build, which is the Ruby we use on Mavericks for compatibility, take 5-15 minutes longer per build than 2.x Rubies. Cumulatively this is responsible for the vast majority of CI slowness over the last couple months as Mavericks plays catch-up and everything else waits for it to do so. We may revisit this in future, but for now the harm is greater than the "risk". This technically reverts https://github.com/Homebrew/brew/commit/7b26c585c2a26ec0dad201852ca4934c77fcc493.
2016-04-06test-bot: fix access to relocated methodMartin Afanasjew
Fix bug introduced in a2c23dfec569c6e73d90cb20c7d4c26cced258d5. Moving this method apparently made it inaccessible from `Homebrew::Step`.
2016-04-06test-bot: fix undefined method errorMartin Afanasjew
The method `fix_encoding!` is private to `Homebrew::Step` but is also required by the `Homebrew.sanitize_output_for_xml` method for truncating overly long logs. Move `fix_encoding!` into the `Homebrew` module to make it accessible from both this method and the `Homebrew::Step` class. This amends commit 343091c828d1e572829b86253d79b326c1986bcd.
2016-04-05Merge pull request #27 from apjanke/test-bot-xml-filterAndrew Janke
test-bot: revise Step output transcoding and XML character filtering
2016-04-05Revert "test-bot: revise Step output transcoding and XML character filtering"Dominyk Tiller
This reverts commit ceed6636d6986bb2b993ba4680ae484deb76ae29. ``` ==> git clean -ffdx HEAD is now at ceed663 test-bot: revise Step output transcoding and XML character filtering Removing Library/Homebrew/test/.bundle/ Removing Library/Homebrew/test/fs_leak_log Removing Library/Homebrew/test/vendor/ Error: invalid regular expression: /[^ -uD7FFuE000-uFFFDu{10000}-u{10FFFF}]/ ``` Using Ruby 1.8.
2016-04-04test-bot: revise Step output transcoding and XML character filteringAndrew Janke
Closes #24. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-04Make new keep? superenv logic opt-inMisty De Meo
Closes #50425. Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-04-03test-bot: remove update-testXu Cheng
2016-04-03test-bot: exclude Taps dir from root cleanupAndrew Janke
2016-04-03test-bot: have --cleanup clean core repo as well as tested tapAndrew Janke
Fixes Homebrew/homebrew#50651
2016-04-03test-bot: fix path in cleanup_beforeXu Cheng
We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
2016-04-03Revert "test-bot: clean up on Jenkins before building PR"Martin Afanasjew
This reverts commit 51e4e6490bda0d981afd1787a6392ab588b0601c. This did not work as intended, as the `git` command is executed in the context of the tap the current job operates on, never for Homebrew/homebrew itself.
2016-04-03test-bot: clean up on Jenkins before building PRMartin Afanasjew
Wipe everything from the Homebrew prefix except for the `Library/Taps` directory to avoid having to refetch `homebrew/core` every time.
2016-04-03test-bot: ensure tap is full cloneXu Cheng
2016-04-03test-bot: fix CI upload for core tapXu Cheng
2016-04-03test-bot: handle legacy formulae PR from Homebrew/homebrewXu Cheng
Closes Homebrew/homebrew#50635. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-02audit/test-bot/pull: fix for core/formula separationXu Cheng
All formulae are in taps now.
2016-03-14Revert "test-bot: better xml character filtering"Xu Cheng
This reverts commit 7032591bd44a8f50aaa55574ac97cd5cb7261460 and commit 946c6deb4b5168ad2ec15e62aa6e81181e9e246c.
2016-03-14test-bot: fix encoding caused by UTF-8 regexXu Cheng
2016-03-14test-bot: better xml character filteringXu Cheng
Ref: - http://www.w3.org/TR/xml/#charsets - http://stackoverflow.com/a/14323524 Closes Homebrew/homebrew#50092. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-07test-bot: fix wrong tap argument checkXu Cheng
2016-03-07test-bot: check if current repo is a tapXu Cheng
If it's not a tap, we test formula on CoreTap. This can happen if we run test on a fork, e.g. Linuxbrew or future Homebrew/brew. Closes Homebrew/homebrew#49844. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-02-28test-bot: make bottle stats visible by defaultTim D. Smith
Closes Homebrew/homebrew#49620.
2016-01-17test-bot: change directory for git rev-parse --verifyXu Cheng
2016-01-17test-bot: prevent formula building from source multiple timesXu Cheng
After formula updates its bottle block, remove itself from changed formulae list. Therefore, if it's requested next time as dependency, it will be installed from bottle just created. Closes Homebrew/homebrew#48121. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17test-bot: all formula name are canonical nowXu Cheng
2016-01-17test-bot: always use canonical formula nameXu Cheng
Otherwise, we may get incorrect result when preforming set operations on list of formula names.
2016-01-17test-bot: simplify Test#gitXu Cheng
2016-01-17test-bot: remove dead codeXu Cheng