817 Commits

Author SHA1 Message Date
Mike McQuaid
f6dad377b6 test-bot: start running generic tests. (#505)
* test-bot: start running generic tests.

Start running the test suite in the "generic" mode i.e. a base layer for
non-OS X platforms to be able to use to ensure we don't break the generic code
for the parts of the code we've got running.

Currently this just runs the integration tests as that's the only useful suite
that's entirely passing but eventually this will be changed to run the full test
suite in generic mode.

* test_integration_cmds: fix tests on Linux.
2016-07-14 14:37:50 +01:00
Mike McQuaid
9aa4362eb4 test-bot: fix --no-pull flag. 2016-07-14 10:57:12 +01:00
Mike McQuaid
84c12f9eb1 test-bot: add --no-pull flag. 2016-07-14 10:55:23 +01:00
Mike McQuaid
849ec0f411 test-bot: don't pull if unnecessary (take two). 2016-07-14 10:53:35 +01:00
Mike McQuaid
0e90549104 test-bot: don't pull if unnecessary. 2016-07-14 10:51:22 +01:00
Mike McQuaid
355fae78b1 test-bot: fix typo. 2016-07-14 10:43:58 +01:00
Mike McQuaid
4f02fb8ce7 test-bot: don't run doctor when outside /usr/local. 2016-07-14 10:43:09 +01:00
Mike McQuaid
f1f775b9aa test-bot: remove .git from Jenkins GIT_URLs. 2016-07-14 10:18:39 +01:00
Mike McQuaid
2a61c84be3 test-bot: handle inconsistent Jenkins GIT_URLs. 2016-07-14 10:16:35 +01:00
Mike McQuaid
b3ed00b791 test-bot: use another method to find Jenkins PR. 2016-07-14 10:10:34 +01:00
Xu Cheng
13730a9dad
move LinkageChecker to standalone file 2016-07-14 15:23:33 +08:00
Xu Cheng
de1049f1f1
various: proper escape dot in regex 2016-07-13 19:11:46 +08:00
Mike McQuaid
23306ab434 github: produce better curl error messages. (#441)
* global: add RUBY_TWO global variable.

* test-bot: use RUBY_TWO global variable.

* github: produce better curl error messages.

If we don't know why curl has failed then ensure that the error messages
that it produced are included as part of the user output.
2016-07-12 19:46:29 +01:00
ilovezfs
454645263d Revert "linkage: check undeclared dependencies for --test"
This reverts commit 080ddd8804be14f4b18f9558b58270456ff313c2.
2016-07-07 13:00:40 -07:00
ilovezfs
b35da247af Revert "linkage: update --test documentation"
This reverts commit 310d7067e01952cdcefe8b2c877bc4c792654de2.
2016-07-07 12:59:45 -07:00
Andrew Janke
61ffa47fd9 test-bot: fix ruby_has_encoding call regression 2016-07-05 10:50:35 -04:00
Andrew Janke
f518f57bd8 gist-logs: truncate log files to be gist-friendly (#279)
Truncates each log file to about 1 MB. This avoids upload and
download errors with the gists, and respects GitHub's suggested
size limits.
2016-07-05 08:45:17 -04:00
Mike McQuaid
a1b0ef1300 Remove unnecessary official command tapping. 2016-07-04 18:26:47 +01:00
Mike McQuaid
8bb315620e test-bot: don't test official commands on ruby 1.8. 2016-07-04 17:24:02 +01:00
Mike McQuaid
245441e1e8 test-bot: fix args, tap before official-cmd-taps. 2016-07-04 17:08:17 +01:00
Mike McQuaid
bf42959609 Revert "Revert "Test officially supported cmd taps. (#390)""
This reverts commit dba1958bd79c1c9d18f215dfc2b806ea62edd1c8.
2016-07-04 17:05:37 +01:00
Martin Afanasjew
dba1958bd7 Revert "Test officially supported cmd taps. (#390)"
This reverts commit 252c701c59227c385ef6178fe99523cca8c843bb.

Taps installed prior to running the test suite are not visible to the
test suite as most Homebrew paths are redefined as to not mess up the
local installation.
2016-07-04 17:41:14 +02:00
Mike McQuaid
252c701c59 Test officially supported cmd taps. (#390)
All of these taps use Homebrew internal APIs (or will shortly) and we
autoinstall them all from `brew $CMD`. We should adjust our CI to ensure
that we never accidentally break these taps when making changes to core
code so that these taps can rely more on this core code rather than
having to e.g. vendor equivalent code that never changes on our end.
2016-07-04 16:08:53 +01:00
Martin Afanasjew
310d7067e0 linkage: update --test documentation
Adjust the wording to be in sync with the changes made in #424.
2016-07-04 08:16:23 +02:00
Xu Cheng
a97661a548
linkage: document --reverse 2016-07-03 16:50:55 +08:00
Xu Cheng
9167fbf876
linkage: fix edge cases for undeclared_deps
* take requirements into account.
* handle full qualified formula name.
* filter out build time or unused optional deps/requirements.

Closes #424.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-03 16:45:30 +08:00
Xu Cheng
080ddd8804
linkage: check undeclared dependencies for --test
Also allowing access results for LinkageChecker
2016-07-03 16:45:29 +08:00
Tim D. Smith
abca5936f2 Add --reverse to brew linkage
For each dylib the keg references, print the dylib followed by the
binaries which link to it.

Closes #431.
2016-07-02 23:58:07 -07:00
Xu Cheng
91a225eef1
test-bot: add --skip-relocation flag
Closes #410.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-06-30 15:26:04 +08:00
Tim D. Smith
4e927d9ce8 Remove unused variable Step#@time
Shadowed by Step#time method.
2016-06-29 21:16:50 -07:00
Tim D. Smith
452fbda9af Document Step 2016-06-29 21:16:50 -07:00
Tim D. Smith
db76a0f4cc Begin documenting environment variables
Closes #405.
2016-06-29 09:03:51 -07:00
Xu Cheng
1668e47d1e
test-bot: always use Tap.fetch 2016-06-27 20:03:37 +08:00
Mike McQuaid
fc85a6fab6 test-bot: handle no-tap upload case. 2016-06-25 22:14:49 +01:00
Mike McQuaid
37eaf3b4d2 test-bot: fix testing job bottle upload. 2016-06-25 22:10:49 +01:00
Xu Cheng
66cda616d1
test-bot: fix diff_formulae
* Fix regression caused by 05649cee60e5349afc328070a0c0e4f6835f97f0
* Use `Tap#formula_file?` to filter formula.
2016-06-23 17:56:10 +08:00
Dominique
05649cee60 test-bot: do not diff tree recursively (#394) 2016-06-23 13:00:29 +08:00
Martin Afanasjew
6dc72f2679 boneyard-formula-pr: relax hub requirement
Don't force installation of the `hub` formula if it can be found in the
search path. (Avoids unnecessary installation when switching between
multiple Homebrew installations for different tasks.)

Closes #384.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-21 15:26:54 +02:00
Martin Afanasjew
3b3da02cf3 boneyard-formula-pr: fix local branch creation
In local-only mode, the created branches end up tracking `origin/master`
which isn't desirable.
2016-06-21 15:26:54 +02:00
Martin Afanasjew
69401bfe91 boneyard-formula-pr: add local-only mode
Allow boneyarding a formula locally, i.e. make all the necessary changes
in the local repositories but don't push them to a remote and don't open
a pull request automatically.
2016-06-21 15:26:54 +02:00
William Woodruff
29bfc4caa3 test-bot: Toggle HOMEBREW_RUBY_MACHO.
Closes #378.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-20 23:36:18 +02:00
Steven Peters
f693774323 test-bot: check for conflicts in dependencies (#379) 2016-06-20 08:53:56 +01:00
Martin Afanasjew
806cfeee18 linkage: simplify display logic
Move check for emptiness into the display method, avoiding repetitive
checks on the call site.

Closes #381.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-19 23:53:25 +02:00
Martin Afanasjew
e65d8e17e7 linkage: fix code style issues 2016-06-19 23:53:25 +02:00
Martin Afanasjew
7812b500b8 linkage: avoid checking symlinks/directories
Prevent raising an error when `HOMEBREW_RUBY_MACHO=1` is set. Skipping
symlinks and directories while iterating over a directory structure to
find Mach-O binaries makes sense and similar logic is applied elsewhere.
2016-06-19 23:53:25 +02:00
ilovezfs
96cbce015e bump-formula-pr: remove formula revision
If we're bumping the formula's stable version, then we also must reset
the formula revision to zero.

Note that if and only if a revision is being removed, this commit will
enforce the convention that there should be a blank line before a simple
head spec if and only if there is a formula revision. Any preexisting
violation of the convention (in particular, a blank line before a simple
head spec in the absence of a formula revision) won't be proactively
corrected since we'd not be removing a formula revision in that case.

Closes #369.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-17 08:55:13 -07:00
ilovezfs
cc0ca73183 bump-formula-pr: reflect new version in dry-run
- simulate version change for dry-run
- make sure we're using :devel version if called with --devel

Closes #318.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-16 14:25:53 -07:00
Andrew Janke
e9cdfb989e test-bot: strip additional invalid XML chars under Ruby 1.8.7 (#341) 2016-06-13 08:01:08 -04:00
ilovezfs
11d47e8325 boneyard-formula-pr: add new command.
Add a new developer command (i.e., requires `HOMEBREW_DEVELOPER` set in
your environment) to "boneyard" a formula, by creating one pull request
removing the formula from its current tap and updating (or creating)
tap_migrations.json, and another pull request importing the formula into
homebrew/boneyard with any bottle block removed.

Closes #53.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-08 13:19:30 -07:00
Mike McQuaid
9085e67e80 test-bot: set --local HOMEBREW_CACHE correctly.
It defaults to being in $HOME but we override this meaning that we would
destroy the cache every time.
2016-06-01 11:25:58 +01:00