Skip to content

Commit 0f28502

Browse files
authored
Merge branch 'main' into redsun82/just2
2 parents 469d09c + 96f57b2 commit 0f28502

File tree

4,162 files changed

+280983
-113242
lines changed

Some content is hidden

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

4,162 files changed

+280983
-113242
lines changed

.bazelrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ common --@rules_dotnet//dotnet/settings:strict_deps=false
3333
# we only configure a nightly toolchain
3434
common --@rules_rust//rust/toolchain/channel=nightly
3535

36-
# rust does not like the gold linker, while bazel does by default, so let's avoid using it
37-
common:linux --linkopt=-fuse-ld=lld
38-
common:macos --linkopt=-fuse-ld=lld
39-
4036
# Reduce this eventually to empty, once we've fixed all our usages of java, and https://github.com/bazel-contrib/rules_go/issues/4193 is fixed
4137
common --incompatible_autoload_externally="+@rules_java,+@rules_shell"
4238

.github/copilot-instructions.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
applyTo: "**/*.expected"
3+
---
4+
Ignore these files. These are generated to be correct by running the tests, and should not be edited manually.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
applyTo: "**/*.ql,**/*.qll"
3+
---
4+
When reviewing these QL files, do not make any comment on the code itself. You don't understand the QL programming language well enough yet. You can only make comments about the following aspects:
5+
* comments (lines starting with `//` or block comments enclosed in `/* ... */`): you can suggest improvements to the clarity of comments, or point out spelling mistakes
6+
* typos in identifiers

.github/workflows/build-ripunzip.yml

Lines changed: 104 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,67 @@
1-
name: Build runzip
1+
name: Build ripunzip
22

33
on:
44
workflow_dispatch:
55
inputs:
66
ripunzip-version:
7-
description: "what reference to checktout from google/runzip"
7+
description: What reference to checkout from google/ripunzip. Latest by default
88
required: false
9-
default: v2.0.2
109
openssl-version:
11-
description: "what reference to checkout from openssl/openssl for Linux"
10+
description: What reference to checkout from openssl/openssl for Linux. Latest by default
1211
required: false
13-
default: openssl-3.5.0
12+
open-pr:
13+
description: Open a pull request updating the ripunzip versions committed to lfs
14+
required: false
15+
default: true # will be false on PRs
16+
pull_request:
17+
paths:
18+
- .github/workflows/build-ripunzip.yml
1419

20+
permissions: {}
21+
1522
jobs:
23+
versions:
24+
runs-on: ubuntu-slim
25+
outputs:
26+
ripunzip-version: ${{ inputs.ripunzip-version || steps.fetch-ripunzip-version.outputs.version }}
27+
openssl-version: ${{ inputs.openssl-version || steps.fetch-openssl-version.outputs.version }}
28+
steps:
29+
- name: Fetch latest ripunzip version
30+
id: fetch-ripunzip-version
31+
if: "!inputs.ripunzip-version"
32+
run: &fetch-version
33+
echo "version=$(gh release view --repo $REPO --json tagName --jq .tagName)" | tee -a $GITHUB_OUTPUT
34+
env:
35+
REPO: "google/ripunzip"
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Fetch latest openssl version
38+
id: fetch-openssl-version
39+
if: "!inputs.openssl-version"
40+
run: *fetch-version
41+
env:
42+
REPO: "openssl/openssl"
43+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1644
build:
45+
needs: versions
1746
strategy:
1847
fail-fast: false
1948
matrix:
20-
os: [ubuntu-22.04, macos-13, windows-2022]
49+
os: [ubuntu-24.04, macos-15, windows-2025]
2150
runs-on: ${{ matrix.os }}
2251
steps:
23-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v5
2453
with:
2554
repository: google/ripunzip
26-
ref: ${{ inputs.ripunzip-version }}
55+
ref: ${{ needs.versions.outputs.ripunzip-version }}
2756
# we need to avoid ripunzip dynamically linking into libssl
2857
# see https://github.com/sfackler/rust-openssl/issues/183
2958
- if: runner.os == 'Linux'
3059
name: checkout openssl
31-
uses: actions/checkout@v4
60+
uses: actions/checkout@v5
3261
with:
3362
repository: openssl/openssl
3463
path: openssl
35-
ref: ${{ inputs.openssl-version }}
64+
ref: ${{ needs.versions.outputs.openssl-version }}
3665
- if: runner.os == 'Linux'
3766
name: build and install openssl with fPIC
3867
shell: bash
@@ -64,11 +93,74 @@ jobs:
6493
lipo -create -output ripunzip-macos \
6594
-arch x86_64 target/x86_64-apple-darwin/release/ripunzip \
6695
-arch arm64 target/aarch64-apple-darwin/release/ripunzip
67-
- uses: actions/upload-artifact@v4
96+
- name: Archive
97+
shell: bash
98+
run: |
99+
tar acf ripunzip-$RUNNER_OS.tar.zst ripunzip-$(echo $RUNNER_OS | tr '[:upper:]' '[:lower:]')
100+
- name: Upload built binary
101+
uses: actions/upload-artifact@v4
68102
with:
69103
name: ripunzip-${{ runner.os }}
70-
path: ripunzip-*
104+
path: ripunzip-${{ runner.os }}.tar.zst
105+
retention-days: 5
106+
compression: 0
71107
- name: Check built binary
72108
shell: bash
73109
run: |
110+
rm -f ripunzip-*.tar.zst
74111
./ripunzip-* --version
112+
publish:
113+
needs: [versions, build]
114+
if: inputs.open-pr == 'true'
115+
permissions:
116+
contents: write
117+
pull-requests: write
118+
runs-on: ubuntu-slim
119+
steps:
120+
# workaround for git-lfs not being installed yet on ubuntu-slim runners
121+
- name: Ensure git-lfs is installed
122+
shell: bash
123+
run: |
124+
if which git-lfs &>/dev/null; then
125+
echo "git-lfs is already installed"
126+
exit 0
127+
fi
128+
cd $TMP
129+
gh release download --repo git-lfs/git-lfs --pattern "git-lfs-linux-amd64-*.tar.gz" --clobber
130+
tar xzf git-lfs-linux-amd64-*.tar.gz
131+
rm git-lfs-linux-amd64-*.tar.gz
132+
cd git-lfs-*
133+
pwd | tee -a $GITHUB_PATH
134+
env:
135+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
- uses: actions/checkout@v5
137+
with:
138+
sparse-checkout: |
139+
.github
140+
misc/ripunzip
141+
lfs: true
142+
- name: Download built binaries
143+
uses: actions/download-artifact@v4
144+
with:
145+
merge-multiple: true
146+
path: misc/ripunzip
147+
- name: Open PR
148+
shell: bash
149+
run: |
150+
git config --global user.name "github-actions[bot]"
151+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
152+
git switch -c update-ripunzip
153+
git add misc/ripunzip
154+
git commit -m "Update ripunzip binaries to version $VERSION"
155+
git push --set-upstream origin update-ripunzip --force
156+
TITLE="Update ripunzip binaries to version $VERSION"
157+
gh pr create \
158+
--draft \
159+
--title "$TITLE" \
160+
--body "Automated update of ripunzip binaries." \
161+
--assignee "$ACTOR" ||
162+
(gh pr edit --title "$TITLE" --add-assignee "$ACTOR" && gh pr ready --undo)
163+
env:
164+
ACTOR: ${{ github.actor }}
165+
VERSION: ${{ needs.versions.outputs.ripunzip-version }}
166+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/buildifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
- name: Check bazel formatting
2222
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2323
with:

.github/workflows/check-implicit-this.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
- name: Check that implicit this warnings is enabled for all packs
2121
shell: bash
2222
run: |

.github/workflows/check-overlay-annotations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
sync:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- name: Check overlay annotations
2222
run: python config/add-overlay-annotations.py --check java
2323

.github/workflows/check-qldoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 2
2424

.github/workflows/check-query-ids.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
name: Check query IDs
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
- name: Check for duplicate query IDs
2424
run: python3 misc/scripts/check-query-ids.py

0 commit comments

Comments
 (0)