Skip to content

Commit 8021e16

Browse files
committed
New data collected at 2025-12-08_00-03-17
1 parent e4f7491 commit 8021e16

22 files changed

Lines changed: 188 additions & 74 deletions

github-actions/blogdown/bookdown.yaml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ on:
66
paths:
77
- 'docs/**'
88
- '.github/workflows/bookdown.yaml'
9+
pull_request:
10+
branches: [main, master]
11+
paths:
12+
- 'docs/**'
13+
- '.github/workflows/bookdown.yaml'
14+
workflow_dispatch:
15+
inputs:
16+
publish:
17+
description: 'publish the book to github pages for connect cloud deployment'
18+
required: false
19+
default: false
20+
type: boolean
921

1022
name: Build and deploy book
1123

@@ -50,28 +62,18 @@ jobs:
5062
key: bookdown-1-${{ hashFiles('docs/*Rmd') }}
5163
restore-keys: bookdown-1-
5264

53-
- name: Build and Deploy all book
54-
if: github.event_name == 'push'
55-
env:
56-
CONNECT_API_KEY: ${{ secrets.RSC_BOOKDOWN_ORG_TOKEN }}
57-
CONTENT_ID: 463
65+
- name: Build all book
5866
run: make -C docs all
5967

60-
- uses: actions/github-script@v3
61-
env:
62-
URL: https://bookdown.org/yihui/blogdown
68+
- name: Deploy Gitbook to gh-pages
69+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
70+
uses: JamesIves/github-pages-deploy-action@v4
6371
with:
64-
github-token: ${{secrets.GITHUB_TOKEN}}
65-
script: |
66-
github.repos.createCommitStatus({
67-
owner: context.repo.owner,
68-
repo: context.repo.repo,
69-
sha: context.sha,
70-
state: "success",
71-
target_url: "${{ env.URL}}",
72-
description: "Book deployed!",
73-
context: "bookdown.org"
74-
})
72+
branch: gh-pages
73+
folder: docs/_book
74+
clean: true
75+
single-commit: true
76+
dry-run: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.publish == 'false' || github.event.inputs.publish == false)) || false }}
7577

7678
- name: Upload book folder for debug
7779
if: failure()

github-actions/bookdown/Book.yaml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ on:
2121
- '.github/workflows/Book.yaml'
2222
workflow_dispatch:
2323
inputs:
24-
ghpages:
25-
description: 'Build gitbook with pandoc devel and deploy gitbook to gh-page for checking differences'
24+
publish:
25+
description: 'publish the book to github pages for connect cloud deployment'
2626
required: false
27-
default: true
27+
default: false
28+
type: boolean
2829

2930
name: Build and deploy book
3031

@@ -45,17 +46,15 @@ jobs:
4546

4647
steps:
4748
- name: Checkout Repo
48-
uses: actions/checkout@v4
49+
uses: actions/checkout@v6
4950

5051
- name: Install R
5152
uses: r-lib/actions/setup-r@v2
5253

5354
- name: Install Pandoc
5455
uses: r-lib/actions/setup-pandoc@v2
5556
with:
56-
# install nightly when checking on gh-pages
57-
pandoc-version: ${{ github.event.inputs.ghpages && 'nightly' || '3.8' }}
58-
token: ${{ secrets.GITHUB_TOKEN }}
57+
pandoc-version: latest
5958

6059
- name: Install TinyTeX
6160
uses: r-lib/actions/setup-tinytex@v2
@@ -86,29 +85,18 @@ jobs:
8685
key: bookdown-${{ hashFiles('inst/examples/*Rmd') }}
8786
restore-keys: bookdown-
8887

89-
- name: Test build of HTML books
90-
if: github.event_name == 'pull_request'
91-
run: make -C inst/examples gitbook bs4_book
92-
93-
- name: Build and Deploy all book
94-
if: github.event_name == 'push'
95-
env:
96-
CONNECT_API_KEY: ${{ secrets.RSC_BOOKDOWN_ORG_TOKEN }}
97-
CONTENT_ID: 3
88+
- name: Build all book formats
9889
run: make -C inst/examples all
9990

100-
- name: Build Gitbook only
101-
env:
102-
DEPLOY_GH_PAGES: ${{ github.event.inputs.ghpages }}
103-
if: github.event_name == 'workflow_dispatch'
104-
run: make -C inst/examples gitbook
105-
10691
- name: Deploy Gitbook to gh-pages
107-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.ghpages
92+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
10893
uses: JamesIves/github-pages-deploy-action@v4
10994
with:
11095
branch: gh-pages
11196
folder: inst/examples/_book
97+
clean: true
98+
single-commit: true
99+
dry-run: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.publish == 'false' || github.event.inputs.publish == false)) || false }}
112100

113101
- name: Upload book folder for debug
114102
if: failure()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242

4343
env:
4444
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
45+
RUN_ALL_DATATABLE_TESTS: yes
4546

4647
steps:
4748
- name: Set locale

github-actions/future/revdepcheck-top.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- { r: "release", pkg: "furrr", not_cran: false }
2525
- { r: "release", pkg: "future.tests" }
2626
- { r: "release", pkg: "promises" , force_suggests: false }
27-
- { r: "release", pkg: "shiny", not_cran: false }
27+
- { r: "release", pkg: "shiny" , force_suggests: false , not_cran: false }
2828
- { r: "release", pkg: "plumber" }
2929
- { r: "release", pkg: "future.batchtools" , globals: develop, label: 'globals develop' }
3030
- { r: "release", pkg: "future.callr" , globals: develop, label: 'globals develop' }

github-actions/ggstatsplot/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v6
1616

17-
- uses: actions/setup-python@v6.0.0
17+
- uses: actions/setup-python@v6.1.0
1818
with:
1919
python-version: "3.13"
2020

github-actions/httr2/R-CMD-check.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ jobs:
5555

5656
- uses: r-lib/actions/setup-r-dependencies@v2
5757
with:
58-
extra-packages: any::rcmdcheck
58+
extra-packages: |
59+
any::rcmdcheck
60+
otelsdk=?ignore-before-r=4.3.0
61+
paws.common=?ignore-before-r=4.3.0
5962
needs: check
6063

6164
- uses: r-lib/actions/check-r-package@v2
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Auto-assign maintainer
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
pull_request_review_comment:
8+
types:
9+
- created
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
assign:
17+
# Only run on open PR comments from maintainers who are not already assigned and not the PR owner
18+
if: >
19+
(
20+
github.event_name == 'issue_comment' &&
21+
github.event.issue.pull_request &&
22+
github.event.issue.state == 'open' &&
23+
contains(fromJSON('["B-Step62", "BenWilson2", "daniellok-db", "harupy", "serena-ruan", "TomeHirata", "WeichenXu123"]'), github.event.comment.user.login) &&
24+
!contains(github.event.issue.assignees.*.login, github.event.comment.user.login) &&
25+
github.event.comment.user.login != github.event.issue.user.login
26+
) || (
27+
github.event_name == 'pull_request_review_comment' &&
28+
github.event.pull_request.state == 'open' &&
29+
contains(fromJSON('["B-Step62", "BenWilson2", "daniellok-db", "harupy", "serena-ruan", "TomeHirata", "WeichenXu123"]'), github.event.comment.user.login) &&
30+
!contains(github.event.pull_request.assignees.*.login, github.event.comment.user.login) &&
31+
github.event.comment.user.login != github.event.pull_request.user.login
32+
)
33+
runs-on: ubuntu-slim
34+
timeout-minutes: 5
35+
permissions:
36+
pull-requests: write
37+
steps:
38+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
39+
with:
40+
script: |
41+
const { owner, repo } = context.repo;
42+
const issue_number = context.payload.issue?.number || context.payload.pull_request?.number;
43+
const commenter = context.payload.comment.user.login;
44+
45+
console.log(`Adding ${commenter} as assignee`);
46+
await github.rest.issues.addAssignees({
47+
owner,
48+
repo,
49+
issue_number,
50+
assignees: [commenter],
51+
});
52+
console.log(`Successfully added ${commenter} as assignee`);
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Autoformat Label Notification
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- labeled
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
notify:
14+
runs-on: ubuntu-slim
15+
if: ${{ github.event.label.name == 'autoformat' }}
16+
timeout-minutes: 5
17+
permissions:
18+
pull-requests: write # to post a comment on the PR
19+
steps:
20+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
21+
with:
22+
script: |
23+
const { owner, repo } = context.repo;
24+
const pull_number = context.payload.pull_request.number;
25+
26+
await github.rest.issues.createComment({
27+
owner,
28+
repo,
29+
issue_number: pull_number,
30+
body: 'Please use `/autoformat` command instead of labels.'
31+
});
32+
33+
await github.rest.issues.removeLabel({
34+
owner,
35+
repo,
36+
issue_number: pull_number,
37+
name: 'autoformat'
38+
});

github-actions/mlflow/autoformat.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ jobs:
8383
docs=$([[ -z $(echo "$changed_files" | grep '^docs/') ]] && echo "false" || echo "true")
8484
r=$([[ -z $(echo "$changed_files" | grep '^mlflow/R/mlflow') ]] && echo "false" || echo "true")
8585
db=$([[ -z $(echo "$changed_files" | grep '^mlflow/store/db_migrations/') ]] && echo "false" || echo "true")
86+
api=$([[ -z $(echo "$changed_files" | grep -E '(^mlflow/.*\.py$|^docs/api_reference/.*\.rst$)') ]] && echo "false" || echo "true")
8687
echo "protos=$protos" >> $GITHUB_OUTPUT
8788
echo "js=$js" >> $GITHUB_OUTPUT
8889
echo "docs=$docs" >> $GITHUB_OUTPUT
8990
echo "r=$r" >> $GITHUB_OUTPUT
9091
echo "db=$db" >> $GITHUB_OUTPUT
92+
echo "api=$api" >> $GITHUB_OUTPUT
9193
# Merge the base branch (which is usually master) to apply formatting using the latest configurations.
9294
- name: Merge base branch
9395
run: |
@@ -156,6 +158,12 @@ jobs:
156158
run: |
157159
./build-rdoc.sh
158160
# ************************************************************************
161+
# API Reference
162+
# ************************************************************************
163+
- if: steps.diff.outputs.api == 'true'
164+
run: |
165+
uv run --group docs --extra gateway --directory docs/api_reference make dummy
166+
# ************************************************************************
159167
# Upload patch
160168
# ************************************************************************
161169
- name: Create patch

github-actions/mlflow/docs.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- pyproject.toml
7+
- uv.lock
78
- mlflow/**
89
- docs/**
910
- .github/workflows/docs.yml
@@ -17,6 +18,7 @@ on:
1718
- ready_for_review
1819
paths:
1920
- pyproject.toml
21+
- uv.lock
2022
- mlflow/**
2123
- docs/**
2224
- .github/workflows/docs.yml
@@ -61,17 +63,33 @@ jobs:
6163
- uses: ./.github/actions/setup-java
6264
- uses: ./.github/actions/setup-node
6365
- uses: ./.github/actions/setup-python
64-
- run: |
65-
uv pip install --system -r ../requirements/doc-requirements.txt '..[gateway]' pytest
66+
- name: Install dependencies
67+
working-directory: .
68+
run: |
69+
uv sync --group docs --extra gateway
6670
- run: |
6771
npm ci
6872
- uses: ./.github/actions/show-versions
6973
- run: |
7074
npm run convert-notebooks
75+
- name: Set alias
76+
id: alias
77+
env:
78+
EVENT_NAME: ${{ github.event_name }}
79+
PR_NUMBER: ${{ github.event.pull_request.number }}
80+
run: |
81+
if [ "$EVENT_NAME" = "push" ]; then
82+
ALIAS="dev"
83+
else
84+
ALIAS="pr-$PR_NUMBER"
85+
fi
86+
echo "value=$ALIAS" >> $GITHUB_OUTPUT
87+
echo "$ALIAS" > /tmp/alias.txt
88+
cat /tmp/alias.txt
7189
- name: Build docs
7290
env:
7391
GTM_ID: "GTM-TEST"
74-
API_REFERENCE_PREFIX: https://pr-${{ github.event.pull_request.number }}--mlflow-docs-preview.netlify.app/docs/
92+
API_REFERENCE_PREFIX: https://${{ steps.alias.outputs.value }}--mlflow-docs-preview.netlify.app/docs/
7593
run: |
7694
npm run build-all -- --no-r --use-npm
7795
- name: Check API inventory
@@ -105,17 +123,6 @@ jobs:
105123

106124
# `github.event.workflow_run.pull_requests` is empty when a PR is created from a fork:
107125
# https://github.com/orgs/community/discussions/25220#discussioncomment-11001085
108-
- name: Save alias
109-
env:
110-
EVENT_NAME: ${{ github.event_name }}
111-
PR_NUMBER: ${{ github.event.pull_request.number }}
112-
run: |
113-
if [ "$EVENT_NAME" = "push" ]; then
114-
echo "dev" > /tmp/alias.txt
115-
else
116-
echo "pr-$PR_NUMBER" > /tmp/alias.txt
117-
fi
118-
cat /tmp/alias.txt
119126
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
120127
with:
121128
name: alias
@@ -136,14 +143,15 @@ jobs:
136143
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
137144
- uses: ./.github/actions/setup-python
138145
- name: Install dependencies
146+
working-directory: .
139147
run: |
140-
uv pip install --system -r ../../requirements/doc-requirements.txt '../..[gateway]' pytest
148+
uv sync --group docs --extra gateway
141149
- name: Extract examples
142150
run: |
143-
python source/testcode_block.py
151+
uv run source/testcode_block.py
144152
- name: Run tests
145153
run: |
146-
pytest .examples
154+
uv run pytest .examples
147155
148156
r:
149157
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false

0 commit comments

Comments
 (0)