2595 Commits

Author SHA1 Message Date
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
Mike McQuaid
12da7d740d test-bot: tweak readall behaviour. (#300)
Check the syntax for Homebrew/brew and don't bother for taps.
2016-05-30 17:01:11 +01:00
Mike McQuaid
d20c1ed146 test-bot: move to dev-cmd. (#298)
This is not a command designed for end-users.
2016-05-30 11:17:52 +01:00
Mike McQuaid
0123e04fae mirror: add command to mirror to Bintray. (#263)
Used for uploading imagemagick 6.9.4-3.
2016-05-20 11:00:51 +01:00
Xu Cheng
612f70fba1 linkage: fix Ruby syntax warning
Library/Homebrew/dev-cmd/linkage.rb:113: warning: shadowing outer local variable - label
2016-04-19 15:08:38 +08:00
Xu Cheng
684c44f356 linkage: load formula from rack
This is to avoid TapFormulaAmbiguityError.
We should load formula based on what we installed,
rather than just name.
2016-04-19 13:55:47 +08:00
Andrew Janke
da34fba151 test-bot: check all dependents for broken dylibs
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-18 13:37:34 -04:00
Andrew Janke
acc9a7ca85 brew test, install, update-test: add --keep-tmp option
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-18 12:23:08 -04:00
Xu Cheng
a47ea61f0b update-test: fix git fork bomb 2016-04-02 21:51:36 +08:00
Christian Moritz
a87eb23a3b bump-formula-pr: fix typo in spec existence check
Closes Homebrew/homebrew#50472.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-28 18:22:47 +08:00
Mike McQuaid
ca2abb2be6 bump-formula-pr: add new command.
Add a new developer command (i.e. requires `HOMEBREW_DEVELOPER` set in
your environment) to bump the version of a formula and create a new pull
request with the new version.

Closes Homebrew/homebrew#49848.
2016-03-28 18:22:47 +08:00
Xu Cheng
203000cee6 update-test: allow setting start commit
To use origin/master as start commit
  brew update-test

To use <sha1> as start commit
  brew update-test --commit=<sha1>

To use commit at <date> as start commit
  brew update-test --before=<date>

Also print start/end commit for debug purpose
2015-12-19 22:05:30 +08:00
Xu Cheng
a25fc67813 update-test: use git clone --local instead of copy
The .git directory in BrewTestBot is huge(1GB) which results to poor
performance of `brew update-test`. Therefore, let's use `git clone
--local` here which will create hard symlink to boost performance.

Closes Homebrew/homebrew#44005.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 14:24:54 +08:00
Xu Cheng
6792847fc1 fix update-test
Previously, `brew update-test` is run against master branch of local
repo. However, we test PR using a detached branch in `brew test-bot`.
The result is `brew update-test` will always be up-to-date in `test-bot`.

To fix it, we create two local copies of git repo, and set master branch
to start and end sha1 correspondingly. After that, `brew update` will be
run to simulate the change between start and end sha1.

Closes Homebrew/homebrew#43902.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-14 21:07:37 +08:00
Mike McQuaid
deca462d9e update_test: run update verbosely. 2015-09-14 08:00:50 +01:00
Xu Cheng
2c4eb4b503 update-test: better output 2015-09-13 13:08:41 +08:00
Xu Cheng
e6f260de27 aspell-dictionaries: move to dev-cmd 2015-09-13 01:03:38 +08:00
Xu Cheng
ce390b9bd9 add dev-cmd folder 2015-09-12 19:15:45 +08:00