Commit Graph

396 Commits

Author SHA1 Message Date
Nate Chandler
77376b6cfc [update-checkout] Gracefully degrade time match.
Previously, when invoking the script with match-timestamp, if the
refspec was absent, the find_rev_by_timestamp function would throw an
exception and the script would hang forever.

Here, it is first checked via `git rev-parse --verify $REFSPEC` that the
refspec actually exists in the target repo.  If it does not, the refspec
is just omitted from the command, giving the latest commit before the
currently checked out one.
2025-05-20 15:56:10 -07:00
Max Desiatov
fa8f747c90 Add typing to update_checkout.py (#81160)
As Python 3.5 added support for type hints and we require Python 3.6 or later, let's try to add a type hint to a single function so that development experience is slightly improved and we can test this feature in our code before applying it more widely. Editors with support for Python LSP servers can pick it and stop flagging this function or its
invocations as type errors.
2025-05-09 11:06:30 +01:00
Saleem Abdulrasool
c2a10814e5 Merge pull request #80681 from compnerd/mimalloc
utils: remove mimalloc workaround
2025-05-06 13:12:27 -07:00
Mishal Shah
3a788a42fc Merge pull request #81252 from kateinoigakukun/yt/update-wasi-libc
[wasm] Update wasi-libc to 25
2025-05-05 09:26:28 -07:00
Evan Wilde
29416b1b3c Merge pull request #80898 from etcwilde/ewilde/isolate-mock-update-checkout-tests
Update-Checkout Tests: Disable commit singing
2025-05-04 14:07:24 -07:00
Yuta Saito
e7693fcc4a [wasm] Update wasi-libc to 25
This release includes fts support, which unblocks us to port some
Foundation APIs.
2025-05-02 10:43:26 +00:00
Mishal Shah
a93dc8fdb7 Merge branch 'main' into shahmishal-patch-2 2025-04-21 10:44:34 -07:00
Ben Barham
9bd31a6d05 Add the current stable branch to the list of rebranch aliases 2025-04-18 16:22:11 -07:00
Evan Wilde
ab4df1bb6e Update-Checkout Tests: Disable commit singing
Disabling commit signing on the local mock repo so that signing tools
don't cause the tests to fail when the signing identity doesn't match
the identity of the committer.

Also marking the config changes as local to ensure that they don't
affect the user's global config accidentally. Technically this isn't
required since local is the default, but this ensures that it is clear
and that we aren't making assumptions about the user's global git
config.
2025-04-17 14:48:22 -07:00
Max Desiatov
23138e541b Merge pull request #80837 from swiftlang/maxd/use-submodules
Add `--use-submodules` to `update_checkout`

Not all repositories in `update-checkout-config.json` are tagged. For contributors that would like to achieve reproducible builds, it's useful to track exact state of checkouts with submodules. This also enables bisection scripts running across multiple repositories locally.

New `--use-submodules` flag is added to `update-checkout`, which uses `git submodule add` instead of `git clone` when checking out new repositories. Contributors can then track changes to submodules in their own top-level repository if they wish to do so.

The flag is optional and is not enabled by default.
2025-04-17 17:42:41 +01:00
Anthony Latsis
e73e1f78a8 [update_checkout]: Update scheme for rebranch to use stable/20250402 2025-04-17 17:14:50 +01:00
Mishal Shah
e8f61732a9 Update update-checkout-config.json to include stable/20250402 2025-04-16 12:20:46 -07:00
Max Desiatov
32a7bd34e3 Add clarifying comment on parallelism to update_checkout.py 2025-04-15 21:48:50 +01:00
Max Desiatov
19026ba89e Add --use-submodules to update_checkout
Not all repositories in `update-checkout-config.json` are tagged. For contributors that would like to achieve reproducible builds, it's useful to be able to track exact state of checkouts with submodules. New `--use-submodules` flag is added to `update-checkout`, which uses `git submodule add` instead of `git clone` when checking out new repositories.
2025-04-15 21:41:49 +01:00
Saleem Abdulrasool
96ccca62d5 utils: remove mimalloc workaround
Remove a workaround for the ARM64 toolchain when built with mimalloc
which would previously have an erroneous reference to the x64
interceptor.
2025-04-09 09:53:43 -07:00
Mishal Shah
0a18603b6a [update-checkout] Add Swift 6.1.1 branch scheme to the config file 2025-04-07 23:09:10 -07:00
Mishal Shah
dbf648b172 [update-checkout] Swift 6.2 release branch support 2025-04-03 23:43:24 -07:00
Saleem Abdulrasool
db7b013bc6 Update update-checkout-config.json (#79117)
* Update update-checkout-config.json

Update swift-system requirement to 1.4.0. This is motivated by swift-build which requires swift-system 1.4.0. More importantly, the API surface between 1.3.0 and 1.4.0 changed including the API usage that is required by swift-build.

* Update update-checkout-config.json

Update to 1.4.1
2025-02-20 13:43:16 -08:00
Chris McGee
127493580a Add swift-build to the rebranch and next schemes 2025-02-03 07:03:14 -05:00
Chris McGee
d9c6befc72 Add swift-build to update-checkout 2025-02-02 08:09:20 -05:00
Saleem Abdulrasool
35da98d1dc utils: remove icu checkout on rebranch
The ICU repository is no longer used, supplanted by
swift-foundation-icu. Remove the unnecessary clone to save some time.
2025-01-27 14:25:33 -08:00
Saleem Abdulrasool
5543a2d845 utils: remove some repositories from the default checkout
Only code xcode-playground-support on Darwin, mimalloc on Windows.
2025-01-27 14:25:24 -08:00
Saleem Abdulrasool
db80c7a984 update_checkout: add mimalloc
Add mimalloc to the checkout set. This is to allow us to build the
project for the Windows toolchain.
2025-01-27 10:55:39 -08:00
Saleem Abdulrasool
6793914870 utils: remove Yams from the checkout set
The Yams dependency has been removed, remove it from the checkout set.
This should have a minimal speed up on the checkout stage in CI.
2025-01-22 14:10:17 -08:00
Yuta Saito
63cabda2db Bump wasi-libc to wasi-sdk-24 in update-checkout-config.json 2024-11-28 06:50:43 +00:00
Jake Petroules
5671688cce Update Yams tag to match SwiftDriver (#77713) 2024-11-21 00:46:37 -08:00
Mishal Shah
067bb257e9 Update update-checkout-config.json to support release/6.1 and remove old configs 2024-11-18 17:25:12 -08:00
Mishal Shah
54296a32b4 Bump the CMake version to v3.30.2 2024-11-07 14:02:52 -08:00
Ben Barham
0cd3aa4614 [Utils] Update swift main to use llvm stable/20240723 2024-10-24 15:13:34 -07:00
Mishal Shah
c43c0ccd61 Update update-checkout-config.json to use swiftlang org for newly moved repo 2024-10-22 15:32:05 -07:00
Max Desiatov
72615fe5fe Bump WasmKit to 0.1.2 in update-checkout-config.json (#77142)
This should make WebAssembly job significantly faster.
2024-10-22 04:47:22 -07:00
Mishal Shah
1299d2234a [update-checkout] Replace release/6.0.1 with release/6.0.2 2024-09-19 22:52:35 -07:00
Mishal Shah
3dfac5f15c [update-checkout] Add scheme for release/6.0.1
(cherry picked from commit 9a955ae22a)
2024-08-31 11:50:50 -07:00
Jake Petroules
74088ffb92 Update swift-toolchain-sqlite to 1.0.1 (#76070) 2024-08-29 21:28:51 -07:00
Yuta Saito
78ecc95bcf Update swift-collections to 1.1.3
This updates the swift-collections dependency to 1.1.3, which includes
a CMake fix for the WebAssembly target. "main", "next", and "rebranch"
schemes are all updated.
2024-08-27 08:33:31 +00:00
Rintaro Ishizaki
593dc19f8b [update-checkout] Add swift-testing to release/6.0.0 scheme
Add swift-testing:release/6.0.0
2024-08-23 08:49:10 -07:00
Mishal Shah
7075c05d62 Merge pull request #76004 from swiftlang/shahmishal/update-checkout-6.0.0
[update-checkout] Add release/6.0.0 branch support
2024-08-22 23:09:58 -07:00
Rintaro Ishizaki
7d97a4a403 [update-checkout] Add swift-testing to release/6.0 scheme
Add swift-testing:release/6.0
2024-08-21 12:49:49 -07:00
Mishal Shah
28a820c564 [update-checkout] Add release/6.0.0 branch support 2024-08-20 23:52:37 -07:00
Mishal Shah
4229a917cb [update-checkout] Update the swift-driver branch for rebranch 2024-08-19 21:48:12 -07:00
Saleem Abdulrasool
36af934932 Merge pull request #75868 from compnerd/curl
utils: bump next and rebranch to curl 8.9.1
2024-08-13 20:13:54 -07:00
Saleem Abdulrasool
406e7e91a8 utils: bump next and rebranch to curl 8.9.1
Update the next and rebranch configuration to match main.
2024-08-13 14:19:37 -07:00
Mishal Shah
5fb180c012 Merge pull request #75618 from swiftlang/maxd/wasi-sdk-22
Bump `wasi-libc` to `wasi-sdk-22` in `update-checkout-config.json`
2024-08-13 14:12:07 -07:00
Saleem Abdulrasool
482b004a69 Merge pull request #75717 from compnerd/curl 2024-08-13 07:32:26 -07:00
Stuart Montgomery
19910c6c22 Add swift-testing to update-checkout 2024-08-08 13:13:42 -07:00
Jake Petroules
5482b47c83 [update-checkout] Add swift-toolchain-sqlite to the list of repos (#75743)
This is for swiftlang/swift-llbuild#930, which adds swift-toolchain-sqlite as a new dependency to SwiftPM to better support Windows and other platforms.
2024-08-07 16:36:54 -07:00
Saleem Abdulrasool
78c957edc6 utils: update curl to 8.9.1 from 8.5.0
Update the embedded curl version for Windows. Adjust the flags
accordingly.
2024-08-06 11:08:08 -07:00
Max Desiatov
e8b180ea9b Bump wasi-libc to wasi-sdk-22 in update-checkout-config.json 2024-08-01 15:54:27 +01:00
Mishal Shah
396869e33b [SCM] Update the scheme for rebranch to use stable/20240723 2024-07-28 22:35:53 -07:00
Mishal Shah
be679ca8cb [SCM] Update the release/6.0 scheme for swift-foundation and swift-foundation-icu 2024-07-22 09:30:22 -07:00