Skip to content

Commit a5439a3

Browse files
committed
New data collected at 2026-03-16_00-05-19
1 parent 5575d5f commit a5439a3

30 files changed

Lines changed: 284 additions & 119 deletions

github-actions/data.table/R-CMD-check.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
# jobs (mainly test-coverage) to run on every commit in PRs so as to not slow down dev.
2828
# GHA does run these jobs concurrently but even so reducing the load seems like a good idea.
2929
- {os: windows-latest, r: 'devel'}
30-
# - {os: macOS-latest, r: 'release'} # test-coverage.yaml uses macOS
30+
- {os: macos-15-intel, r: 'release'}
31+
- {os: macos-15, r: 'release'}
3132
# TODO(remotes>2.5.0): Use 24.04[noble?]
3233
- {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
3334
# - {os: ubuntu-22.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest", http-user-agent: "R/4.1.0 (ubuntu-22.04) R (4.1.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
@@ -58,8 +59,8 @@ jobs:
5859
uses: actions/cache@v5
5960
with:
6061
path: ${{ env.R_LIBS_USER }}
61-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
62-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
62+
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
63+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/R-version') }}-1-
6364

6465
- name: Install system dependencies
6566
if: runner.os == 'Linux'
@@ -69,6 +70,26 @@ jobs:
6970
eval sudo $cmd
7071
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "22.04"))')
7172
73+
- name: Install R Package Build Dependencies on MacOS, from https://github.com/stan-dev/cmdstanr/pull/1072/files
74+
if: runner.os == 'macOS'
75+
uses: r-hub/actions/setup-r-sysreqs@v1
76+
with:
77+
type: 'minimal'
78+
79+
- name: Install and configure OpenMP runtime
80+
if: runner.os == 'macOS'
81+
run: |
82+
if clang --version | grep 'clang version 17'; then
83+
openmp_tarball=openmp-19.1.5-darwin20-Release.tar.gz
84+
if curl --fail --location --retry 3 --retry-all-errors --connect-timeout 20 --max-time 180 \
85+
-O "https://mac.r-project.org/openmp/${openmp_tarball}"; then
86+
sudo tar fvxz "${openmp_tarball}" -C /
87+
rm -f "${openmp_tarball}"
88+
else
89+
echo "Warning: failed to fetch OpenMP runtime from https://mac.r-project.org/openmp/; continuing without it"
90+
fi
91+
fi # otherwise R-bundled runtime is fine
92+
7293
- name: Install dependencies
7394
run: |
7495
remotes::install_deps(dependencies = TRUE)

github-actions/data.table/code-quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0 # ensure diff against base is available for PRs
22-
- uses: dorny/paths-filter@v3
22+
- uses: dorny/paths-filter@v4
2323
id: filter
2424
with:
2525
filters: |
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Detect any attempts to call sudo during R CMD check.
2+
# pak's sysreqs feature probes for passwordless sudo, which CRAN flags.
3+
# This workflow confirms that we successfully suppress that probe.
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
9+
name: sudo-tripwire.yaml
10+
11+
permissions: read-all
12+
13+
jobs:
14+
sudo-tripwire:
15+
runs-on: ubuntu-latest
16+
17+
env:
18+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
19+
R_KEEP_PKG_SOURCE: yes
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: r-lib/actions/setup-pandoc@v2
25+
26+
- uses: r-lib/actions/setup-r@v2
27+
with:
28+
r-version: release
29+
use-public-rspm: true
30+
31+
- uses: r-lib/actions/setup-r-dependencies@v2
32+
with:
33+
extra-packages: any::rcmdcheck
34+
needs: check
35+
36+
- name: Install sudo tripwire
37+
run: |
38+
mkdir -p "$HOME/bin"
39+
cat > "$HOME/bin/sudo" << 'EOF'
40+
#!/bin/bash
41+
echo "SUDO CALLED with args: $*" >> /tmp/sudo-tripwire.log
42+
exit 1
43+
EOF
44+
chmod +x "$HOME/bin/sudo"
45+
echo "$HOME/bin" >> $GITHUB_PATH
46+
47+
- uses: r-lib/actions/check-r-package@v2
48+
with:
49+
upload-snapshots: true
50+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
51+
52+
- name: Check for sudo calls
53+
if: always()
54+
run: |
55+
if [ -f /tmp/sudo-tripwire.log ]; then
56+
echo "::error::sudo was called during R CMD check!"
57+
cat /tmp/sudo-tripwire.log
58+
exit 1
59+
else
60+
echo "No sudo calls detected."
61+
fi

github-actions/languageserver/coverage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ name: Coverage
1010

1111
permissions: read-all
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test-coverage:
1519
if: contains(github.event.head_commit.message, '[ci skip]') == false

github-actions/languageserver/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- master
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
lint:
1317
if: contains(github.event.head_commit.message, '[ci skip]') == false

github-actions/languageserver/rcmdcheck.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ on:
88
branches:
99
- master
1010

11-
jobs:
12-
cleanup:
13-
name: Cancel Previous Runs
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: styfle/cancel-workflow-action@0.13.0
17-
with:
18-
access_token: ${{ github.token }}
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
1914

15+
jobs:
2016
rcmdcheck:
2117
if: contains(github.event.head_commit.message, '[ci skip]') == false
2218
name: rcmdcheck ${{ matrix.os }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Auto Close PR
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
auto-close-pr:
14+
if: >-
15+
!contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association)
16+
&& github.event.pull_request.user.type != 'Bot'
17+
runs-on: ubuntu-slim
18+
timeout-minutes: 5
19+
permissions:
20+
pull-requests: write
21+
issues: read
22+
steps:
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
sparse-checkout: |
26+
.github
27+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
28+
with:
29+
retries: 3
30+
script: |
31+
const script = require(
32+
`${process.env.GITHUB_WORKSPACE}/.github/workflows/auto-close-pr.js`
33+
);
34+
await script({ context, github });

github-actions/mlflow/autoformat.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ jobs:
104104
# Merge the base branch (which is usually master) to apply formatting using the latest configurations.
105105
- name: Merge base branch
106106
run: |
107-
git config user.name 'mlflow-app[bot]'
108-
git config user.email 'mlflow-app[bot]@users.noreply.github.com'
107+
# This identity is only used for the temporary merge commit and is not pushed.
108+
git config user.name 'name'
109+
git config user.email 'email'
109110
git remote add base https://github.com/${{ needs.check-comment.outputs.base_repo }}.git
110111
git fetch base ${{ needs.check-comment.outputs.base_ref }}
111112
git merge base/${{ needs.check-comment.outputs.base_ref }}
@@ -186,7 +187,7 @@ jobs:
186187
echo "reformatted=$reformatted" >> $GITHUB_OUTPUT
187188
188189
- name: Upload patch
189-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
190+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
190191
with:
191192
name: ${{ github.run_id }}.diff
192193
path: ${{ github.run_id }}.diff
@@ -201,7 +202,7 @@ jobs:
201202
outputs:
202203
head_sha: ${{ steps.push.outputs.head_sha }}
203204
steps:
204-
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
205+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
205206
id: app-token
206207
with:
207208
app-id: ${{ secrets.APP_ID }}
@@ -229,19 +230,34 @@ jobs:
229230
exit 1
230231
fi
231232
233+
- name: Configure git
234+
env:
235+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
236+
PR_NUMBER: ${{ needs.check-comment.outputs.pull_number }}
237+
REPO: ${{ github.repository }}
238+
run: |
239+
AUTHOR=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json author --jq '.author')
240+
IS_BOT=$(echo "$AUTHOR" | jq -r '.is_bot')
241+
if [ "$IS_BOT" = "false" ]; then
242+
LOGIN=$(echo "$AUTHOR" | jq -r '.login')
243+
else
244+
LOGIN="mlflow-app[bot]"
245+
fi
246+
ID=$(gh api "users/$LOGIN" --jq '.id')
247+
git config user.name "$LOGIN"
248+
git config user.email "${ID}+${LOGIN}@users.noreply.github.com"
249+
232250
- name: Merge base branch
233251
env:
234252
BASE_REPO: ${{ needs.check-comment.outputs.base_repo }}
235253
BASE_REF: ${{ needs.check-comment.outputs.base_ref }}
236254
run: |
237-
git config user.name 'mlflow-app[bot]'
238-
git config user.email 'mlflow-app[bot]@users.noreply.github.com'
239255
git remote add base https://github.com/${BASE_REPO}.git
240256
git fetch base $BASE_REF
241257
git merge base/${BASE_REF}
242258
243259
- name: Download patch
244-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
260+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
245261
with:
246262
name: ${{ github.run_id }}.diff
247263
path: /tmp

github-actions/mlflow/build-wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
140140
# Anyone with read access can download the uploaded wheel on GitHub.
141141
- name: Upload wheel
142-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
142+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
143143
if: github.event_name == 'workflow_dispatch'
144144
id: upload-wheel
145145
with:

github-actions/mlflow/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
VERSION="$(uv version | cut -d' ' -f2)"
112112
echo "{\"versions\": [\"$VERSION\"]}" > /tmp/docs-build/docs/versions.json
113113
- name: Upload build artifacts
114-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
114+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
115115
with:
116116
name: docs-build-${{ github.run_id }}
117117
path: /tmp/docs-build

0 commit comments

Comments
 (0)