Skip to content

Commit e887408

Browse files
committed
Merge branch 'master' into release
2 parents 1975d04 + 729dd31 commit e887408

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+556
-424
lines changed

.github/workflows/cargo-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, macos-latest]
21-
toolchain: [1.85.1]
21+
toolchain: [1.88.0]
2222
include:
2323
- os: windows-latest
24-
toolchain: 1.85.1-x86_64-pc-windows-gnu
24+
toolchain: 1.88.0-x86_64-pc-windows-gnu
2525
runs-on: ${{ matrix.os }}
2626
steps:
2727
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
toolchain: ${{ matrix.toolchain }}
3333
- uses: msys2/setup-msys2@v2
3434
with:
35-
release: false
35+
release: true
3636
update: false
3737
msystem: MINGW64
3838
install: >-

.github/workflows/rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
fail-fast: false
77
matrix:
88
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
9-
toolchain: [1.85.1]
9+
toolchain: [1.88.0]
1010
include:
1111
- os: windows-latest
12-
toolchain: 1.85.1-x86_64-pc-windows-gnu
12+
toolchain: 1.88.0-x86_64-pc-windows-gnu
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
2828
components: clippy
2929
- uses: msys2/setup-msys2@v2
3030
with:
31-
release: false
31+
release: true
3232
update: false
3333
msystem: MINGW64
3434
install: >-
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: dtolnay/rust-toolchain@master
6161
with:
62-
toolchain: 1.85.1
62+
toolchain: 1.88.0
6363
components: rustfmt
6464
- run: cargo fmt -- --check
6565

@@ -68,10 +68,10 @@ jobs:
6868
fail-fast: false
6969
matrix:
7070
os: [ubuntu-latest, macos-latest]
71-
toolchain: [1.85.1, 1.75.0]
71+
toolchain: [1.88.0, 1.75.0]
7272
include:
7373
- os: windows-latest
74-
toolchain: 1.85.1-x86_64-pc-windows-gnu
74+
toolchain: 1.88.0-x86_64-pc-windows-gnu
7575
- os: windows-latest
7676
toolchain: 1.75.0-x86_64-pc-windows-gnu
7777
runs-on: ${{ matrix.os }}
@@ -91,7 +91,7 @@ jobs:
9191
toolchain: ${{ matrix.toolchain }}
9292
- uses: msys2/setup-msys2@v2
9393
with:
94-
release: false
94+
release: true
9595
update: false
9696
msystem: MINGW64
9797
install: >-

.taskcluster.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ tasks:
55
$let:
66
e:
77
repo_name: ${event.repository.name}
8-
repo_url: ${event.repository.url}
9-
base_repo_url: ${event.repository.url}
8+
repo_url: ${event.repository.html_url}
9+
base_repo_url: ${event.repository.html_url}
1010
login: ${event.pusher.name}
1111
commit: ${event.after}
1212
branch:
@@ -94,7 +94,7 @@ tasks:
9494
git -C repo remote add head ${e.repo_url} &&
9595
git -C repo remote update head &&
9696
git -c advice.detachedHead=false -C repo checkout ${e.commit} &&
97-
python3 repo/CI/get_artifact.py --run-id $(cat run_id) index.project.git-cinnabar.build.${e.commit}.${variant}
97+
python3 repo/CI/get_artifact.py --run-id $(cat run_id) index.project.git-cinnabar.build.${variant}.${e.commit}
9898
artifacts:
9999
$if: '"windows" in variant'
100100
then:

CI/docker.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def sources_list(snapshot, sections):
3232
LLVM_REPO = (
3333
"echo"
3434
" deb [signed-by=/usr/share/keyrings/llvm.gpg]"
35-
" https://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-19 main"
35+
" https://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-20 main"
3636
" > /etc/apt/sources.list.d/llvm.list"
3737
)
3838

@@ -96,9 +96,9 @@ def sources_list(snapshot, sections):
9696
"apt-get install -y --no-install-recommends {}".format(
9797
" ".join(
9898
[
99-
"clang-19",
100-
"lld-19",
101-
"llvm-19",
99+
"clang-20",
100+
"lld-20",
101+
"llvm-20",
102102
"git",
103103
"make",
104104
"patch",
@@ -179,14 +179,14 @@ def sources_list(snapshot, sections):
179179
"apt-get install -y --no-install-recommends {}".format(
180180
" ".join(
181181
[
182-
"llvm-19",
182+
"llvm-20",
183183
"make",
184184
]
185185
)
186186
),
187187
"apt-get clean",
188188
"pip3 install cram==0.7",
189-
"ln -s llvm-symbolizer-19 /usr/bin/llvm-symbolizer",
189+
"ln -s llvm-symbolizer-20 /usr/bin/llvm-symbolizer",
190190
],
191191
},
192192
}

CI/test_download.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
"0.7.0beta2": "0.7.0-beta.2",
3636
"0.7.0": "0.7.0",
3737
"0.7.1": "0.7.1",
38+
"0.7.2": "0.7.2",
3839
# Newer versions below. We're bound to what older versions were doing to find the
3940
# right download on self-update. I don't know what went through my head when I
4041
# made that code strip dashes from tag names...
41-
"0.7.2": "0.7.2",
42+
"0.7.3": "0.7.3",
4243
# Here's a trick to make things happy-ish in the future: older versions don't
4344
# handle tags prefixed with "v", but will still do a self-update to the first
4445
# one it finds.
@@ -55,6 +56,20 @@
5556
VERSIONS_ORDER = {v: n for n, v in enumerate(VERSIONS)}
5657

5758

59+
def removesuffix(self, suffix):
60+
if suffix and self.endswith(suffix):
61+
return self[: -len(suffix)]
62+
else:
63+
return self[:]
64+
65+
66+
def removeprefix(self, prefix):
67+
if self.startswith(prefix):
68+
return self[len(prefix) :]
69+
else:
70+
return self[:]
71+
72+
5873
def version_for_tag(tag):
5974
if tag.startswith("v"):
6075
return tag[1:]
@@ -111,7 +126,7 @@ def get_pkg():
111126
worktree_head = env.check_output(["git", "-C", worktree, "rev-parse", "HEAD"])
112127
head_version = env.get_version([git_cinnabar, "-V"])
113128
head_full_version = env.get_version([git_cinnabar, "--version"])
114-
_, _, head = head_full_version.removesuffix("-modified").rpartition("-")
129+
_, _, head = removesuffix(head_full_version, "-modified").rpartition("-")
115130
head_branch = "release"
116131
if head_version.endswith(".0-a"):
117132
head_branch = "next"
@@ -472,7 +487,7 @@ def __init__(self, cwd, environ=os.environ):
472487
class CalledProcessError(subprocess.CalledProcessError):
473488
def __repr__(self):
474489
return (
475-
super().__repr__().removesuffix(")")
490+
removesuffix(super().__repr__(), ")")
476491
+ f", stdout={self.stdout!r}, stderr={self.stderr!r})"
477492
)
478493

@@ -497,7 +512,7 @@ def subprocess_func(self, func, x, **kwargs):
497512
return result
498513

499514
def get_version(self, x, **kwargs):
500-
return self.check_output(x, **kwargs).removeprefix("git-cinnabar ")
515+
return removeprefix(self.check_output(x, **kwargs), "git-cinnabar ")
501516

502517
def derive_with(self, cwd=None, **kwargs):
503518
env = self.env.copy()

CI/tools.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from util import build_commit
1717

1818
MERCURIAL_VERSION = "6.9.1"
19-
GIT_VERSION = "2.49.0"
19+
GIT_VERSION = "2.50.1"
2020

2121
ALL_MERCURIAL_VERSIONS = (
2222
"1.9.3",
@@ -110,7 +110,7 @@ def __init__(self, os_and_version):
110110
self,
111111
task_env=build_image,
112112
description=description,
113-
index="{}.git.v{}".format(h.hexdigest(), version),
113+
index="git.v{}.{}".format(version, h.hexdigest()),
114114
command=Task.checkout(
115115
"git://git.kernel.org/pub/scm/git/git.git",
116116
"v{}".format(version),
@@ -150,7 +150,7 @@ def __init__(self, os_and_version):
150150
self,
151151
task_env=build_image,
152152
description="git v{} {} {}".format(version, env.os, env.cpu),
153-
index="{}.git.v{}".format(h.hexdigest(), raw_version),
153+
index="git.v{}.{}".format(raw_version, h.hexdigest()),
154154
command=[
155155
"curl -L https://github.com/git-for-windows/git/releases/"
156156
"download/v{}/MinGit-{}-{}-bit.zip"
@@ -315,7 +315,7 @@ def __init__(self, os_and_version):
315315
self,
316316
task_env=env,
317317
description=desc,
318-
index="{}.hg.{}".format(h.hexdigest(), pretty_version),
318+
index="hg.{}.{}".format(pretty_version, h.hexdigest()),
319319
command=pre_command
320320
+ [f"{python} -m pip wheel -v -w $ARTIFACTS ./mercurial-{version}"],
321321
artifact=artifact.format(artifact_version),
@@ -334,7 +334,7 @@ def install(self):
334334
return ["{} -m pip install --force-reinstall {}".format(python, filename)]
335335

336336

337-
def install_rust(version="1.85.1", target="x86_64-unknown-linux-gnu"):
337+
def install_rust(version="1.88.0", target="x86_64-unknown-linux-gnu"):
338338
rustup_opts = "-y --default-toolchain none"
339339
cargo_dir = "$HOME/.cargo/bin/"
340340
rustup = cargo_dir + "rustup"
@@ -424,7 +424,7 @@ def prefix(p, s):
424424
elif variant:
425425
raise Exception("Unknown variant: {}".format(variant))
426426

427-
environ["CC"] = "clang-19"
427+
environ["CC"] = "clang-20"
428428

429429
if os.startswith("mingw"):
430430
cpu = msys.msys_cpu(env.cpu)
@@ -458,7 +458,7 @@ def prefix(p, s):
458458
environ[f"CARGO_TARGET_{TARGET}_RUSTFLAGS"] = " ".join(
459459
f"-C link-arg={arg}" for arg in link_args
460460
)
461-
environ["AR"] = "llvm-ar-19"
461+
environ["AR"] = "llvm-ar-20"
462462
rustflags = environ.pop("RUSTFLAGS", None)
463463
if rustflags:
464464
environ[f"CARGO_TARGET_{TARGET}_RUSTFLAGS"] += f" {rustflags}"
@@ -510,7 +510,7 @@ def prefix(p, s):
510510
self,
511511
task_env=build_env,
512512
description="build {} {}{}".format(env.os, cpu, prefix(" ", desc_variant)),
513-
index="build.{}.{}.{}{}".format(hash, env.os, cpu, prefix(".", variant)),
513+
index="build.{}.{}{}.{}".format(env.os, cpu, prefix(".", variant), hash),
514514
command=Task.checkout(commit=head)
515515
+ sdk_install
516516
+ rust_install

0 commit comments

Comments
 (0)