Commit Graph

124 Commits

Author SHA1 Message Date
Mishal Shah
69f1f06712 Add support for rebranch in update-checkout script 2020-12-17 13:40:17 -08:00
Mishal Shah
91034bcd92 Update the update-checkout config to support Swift 5.4 branches 2020-12-14 19:46:42 -08:00
Mishal Shah
1d4fd87ee6 [update-checkout] Add scheme to test a branch 2020-10-14 17:48:43 -07:00
Nate Chandler
f6b9d144a2 [update_checkout] Improved validation failure diagnostic.
Previously, if an alias were defined for multiple schemes, the produced
diagnostic would only say that there was a collision, but did not
specify where that collision was.  Here, the diagnostic is improved to
read

    RuntimeError: Configuration file defines the alias ALIAS in both the
                  SCHEME_NAME_1 scheme and the SCHEME_NAME_2 scheme?!
2020-09-29 18:08:57 -07:00
Mishal Shah
956b7a931c Merge pull request #34041 from apple/shahmishal/update-branch-doc
Update doc and links to support new main branch
2020-09-23 22:48:03 -07:00
Mishal Shah
2d1cb7df80 Remove old scheme from update-checkout 2020-09-23 12:20:26 -07:00
Mishal Shah
769034b938 Update the llvm-project branches to swift/main and swift/next 2020-09-23 12:19:34 -07:00
Mishal Shah
41fc2efcf9 Update the swift branch to use next 2020-09-23 01:10:44 -07:00
Mishal Shah
a44a84aee1 Update the default branch scheme to main 2020-09-23 00:14:06 -07:00
Mishal Shah
9af806e8fd Update the swift branch to main 2020-09-23 00:01:26 -07:00
Mishal Shah
40024718ac Update doc and links to support new main branch 2020-09-22 23:53:29 -07:00
Mishal Shah
f46a8abcc5 Update the swift-format branch to main 2020-09-22 23:03:56 -07:00
Mishal Shah
c58457d0af Update sourcekit-lsp branch to main 2020-09-22 21:36:37 -07:00
Mishal Shah
2544806bba Update indexstore-db branch to main 2020-09-22 20:59:25 -07:00
Mishal Shah
159fb22e0b Update swift-xcode-playground-support branch to main 2020-09-22 19:20:36 -07:00
Mishal Shah
e2d8d29aae Update swift-integration-tests branch to main 2020-09-22 19:03:19 -07:00
Mishal Shah
333f6f1896 Update swift-corelibs-libdispatch branch to main 2020-09-22 18:57:28 -07:00
Mishal Shah
0d18048ae9 Update swift-corelibs-foundation branch to main 2020-09-22 18:13:13 -07:00
Mishal Shah
6d600b48b8 Update swift-corelibs-xctest to main branch 2020-09-22 17:53:56 -07:00
Mishal Shah
38926bdab7 Update swift-stress-tester to use main 2020-09-22 17:39:34 -07:00
Mishal Shah
5dcc7640fc Update swift-syntax branch to main 2020-09-22 16:41:26 -07:00
Mishal Shah
5921a4b6c4 Update swift-driver branch to main 2020-09-22 16:29:04 -07:00
Mishal Shah
f523bdacc0 Update the aliases for main branch 2020-09-22 15:42:20 -07:00
Mishal Shah
0b9793ebf1 Update swiftpm branch to main 2020-09-22 13:45:12 -07:00
Mishal Shah
e7d7847609 Update the branch to main for swift-tools-support-core 2020-09-22 13:23:42 -07:00
Mishal Shah
65764c68fa Update the branch to main for swift-llbuild 2020-09-22 11:55:19 -07:00
Mishal Shah
20be565f66 Update CMark branch to main 2020-09-22 11:28:21 -07:00
Owen Voorhees
5c88421cea Update swift-argument-parser checkout to 0.3.0 2020-08-24 19:27:36 -07:00
Mishal Shah
7c5bb7d819 Update the master-rebranch scheme to include:
* swift-argument-parser
* swift-driver
* yams
2020-08-24 12:02:32 -07:00
tbkka
6187697a6c [Python3] Fix test failures in update_checkout (#33141)
Use correct relative import for Python 2&3

Remove unused variable

Fix import ordering per python_lint
2020-07-28 11:47:55 -07:00
Saleem Abdulrasool
2bf0ee413f build: remove tensorflow-swift-apis from the master branch
Remove the ability to build this dependency.
2020-07-28 08:27:24 -07:00
nate-chandler
d634042216 Merge pull request #33075 from nate-chandler/update-checkout/fallback-to-checkout-revision
[Update Checkout] Fall back to revision if branch checkout fails.
2020-07-25 07:08:46 -07:00
tbkka
3459fe8d3f [Python3] Make update-checkout work with Python 2 & 3 (#33081)
* Python3 compatibility for Benchmarks

Three issues addressed here:

1. Dependency on dictionary iteration order

 CharacterProperties.swift.gyb iterated a dictionary to produce its output.
 Changed this to a list of tuples to ensure the order is predictable.

2. Python3 `map` returns an iterator, not a list

 Changed a bunch of `map` calls to `list(map(...))` to ensure the result is a list

3. Python3 `int()` expects a string, won't accept a list of characters

 Added a concatenation step that is effectively a no-op on Python2

* Make update-checkout work with Python3

Python3 doesn't like to pickle local functions, so make the multiprocessing
initialization function be global.

Python3 multiprocessing also seems to require conditional execution of the
top-level code.  TBH, I'm not entirely sure why Python 2 didn't need this.

* Adjust whitespace per python-lint
2020-07-24 09:22:57 -07:00
Nate Chandler
2ef8f1b90e [Update Checkout] Fall back to revision if branch checkout fails.
In workflows featuring git worktrees, it is common for the same branch
to be in use by multiple multiple checkouts.  For example, at the
moment, the "master" branches of swift-format, swift-tensorflow-apis,
and pythonkit (and the "release" branch of ninja) are indicated, in
update-checkout-config.json, by both "master" and "release/5.3".  If one
has a workflow featuring git worktrees, that means that when one runs
<<update_checkout --scheme master>> in one's mainline directory and
<<update_checkout --scheme release/5.3>> in one's release/5.3 directory,
the latter will encounter failures for each of those four projects
because the branch "master" will already be checked out in the mainline
directory's worktrees and so it cannot be checked out in the
release/5.3's directory's worktrees.  The error looks something like:

    /path/to/swift-container/release53/swift-format failed
    (ret=128): ['git', 'checkout', u'master']
    fatal: 'master' is already checked out at
    '/path/to/swift-container/mainline/swift-format'

    /path/to/swift-container/release53/tensorflow-swift-apis failed
    (ret=128): ['git', 'checkout', u'master']
    fatal: 'master' is already checked out at
    '/path/to/swift-container/mainline/tensorflow-swift-apis'

    /path/to/swift-container/release53/pythonkit failed (ret=128):
    ['git', 'checkout', u'master']
    fatal: 'master' is already checked out at
    '/path/to/swift-container/mainline/pythonkit'

    /path/to/swift-container/release53/ninja failed (ret=128):
    ['git', 'checkout', u'release']
    fatal: 'release' is already checked out at
    '/path/to/swift-container/mainline/ninja'

Here, that workflow is enabled.  If <<git checkout branch_name>> fails,
for one of the projects, update_checkout falls back to getting the SHA
for the indicated branch via <<git rev-parse branch_name>> and then
checking out the SHA directly.
2020-07-23 23:45:18 -07:00
Saleem Abdulrasool
9f0e0a6e2e build: remove PythonKit integration 2020-07-23 13:38:54 -07:00
tbkka
3181dd1e4c Fix a bunch of python lint errors (#32951)
* Fix a bunch of python lint errors

* adjust indentation
2020-07-17 14:30:21 -07:00
tbkka
6a255ec829 [Python3] Adjust relative import statements to use relative syntax so they work with Py2 and Py3 (#32937)
* Rework a couple of benchmarks to work with both Python2 and Python3

* Adjust relative import statements to use relative syntax

Importing files from "the same directory as this file" was
implicitly supported in Python2.7 but not Python3.  The
syntax here works for both.
2020-07-17 09:06:16 -07:00
Mishal Shah
b255a2fbc2 [update-checkout] Add alias for swift/master-next branch 2020-05-18 18:21:21 -07:00
Owen Voorhees
76282b1167 [update-checkout] swift-argument-parser 0.0.5 -> 0.06 2020-05-14 11:52:12 -07:00
Doug Gregor
fb7dc3bc91 [Update checker] Add swift-argument-parser 2020-05-11 10:04:36 -07:00
Doug Gregor
1748f0777e Fix Yams version reference 2020-05-11 10:03:43 -07:00
Doug Gregor
42503be7ac [Update checkout] Use latest release of Yams 2020-05-11 10:03:43 -07:00
Doug Gregor
26582a1a7a [update-checkout] Add swift-driver and Yams to the list of repositories 2020-05-11 10:03:43 -07:00
Mishal Shah
b29558d4d3 [Update Checkout] Update scheme for release/5.3 2020-04-20 18:26:26 -07:00
Mishal Shah
e4aa8a90a4 [Checkout] Update checkout scheme for release/5.3 2020-04-08 16:50:55 -07:00
Dario Rexin
964de289a7 Update cmake version to 3.16.5
3.15.1 contains a bug that causes libraries that use the CMake Swift module to be built with -Onone, even in release mode.
2020-03-31 18:42:53 -07:00
Ron Olson
629fc8d944 Modification to allow checking out subprojects with Python 2 and 3. 2020-03-26 15:36:54 -05:00
Valeriy Van
f3655ad27a Fixes usage description of update_checkout.py 2020-03-16 17:35:46 +01:00
Mishal Shah
928f8292c0 [update-checkout] Fix missing config for pythonkit and tensorflow-swift-apis on master-next scheme 2020-03-06 12:10:45 -08:00
Saleem Abdulrasool
9b332a3a35 build: add an option to optionally build tensorflow-swift-apis
Now that the autodifferentiation support is being upstreamed, add an
option to enable building the TensorFlow swift-apis package optionally.
This enables easier development cycles for the engineers working on it.
2020-02-13 13:21:30 -08:00