Skip to content

Commit 80ddc78

Browse files
committed
New data collected at 2026-05-18_00-18-31
1 parent 4f6e253 commit 80ddc78

43 files changed

Lines changed: 644 additions & 279 deletions

Some content is hidden

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

github-actions/callr/test-coverage.yaml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7+
branches: [main, master]
8+
workflow_dispatch:
79

8-
name: test-coverage.yaml
10+
name: test-coverage
911

1012
permissions: read-all
1113

@@ -16,47 +18,23 @@ jobs:
1618
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1719

1820
steps:
19-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2022

2123
- uses: r-lib/actions/setup-r@v2
22-
with:
23-
use-public-rspm: true
24-
2524
- uses: r-lib/actions/setup-r-dependencies@v2
2625
with:
27-
extra-packages: any::covr, any::xml2
26+
extra-packages: gaborcsardi/uncovr
2827
needs: coverage
2928

3029
- name: Test coverage
3130
run: |
32-
cov <- covr::package_coverage(
33-
quiet = FALSE,
34-
clean = FALSE,
35-
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
36-
)
37-
print(cov)
38-
covr::to_cobertura(cov)
31+
uncovr::test()
32+
if (nzchar(Sys.getenv("CODECOV_TOKEN")) || Sys.getenv("GITHUB_EVENT_NAME") != "pull_request") {
33+
uncovr::codecov()
34+
} else {
35+
message("Skipping uncovr::codecov(): no CODECOV_TOKEN available for PR run.")
36+
}
3937
shell: Rscript {0}
40-
41-
- uses: codecov/codecov-action@v5
42-
with:
43-
# Fail if error if not on PR, or if on PR and token is given
44-
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
45-
files: ./cobertura.xml
46-
plugins: noop
47-
disable_search: true
48-
token: ${{ secrets.CODECOV_TOKEN }}
49-
50-
- name: Show testthat output
51-
if: always()
52-
run: |
53-
## --------------------------------------------------------------------
54-
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
55-
shell: bash
56-
57-
- name: Upload test results
58-
if: failure()
59-
uses: actions/upload-artifact@v4
60-
with:
61-
name: coverage-test-failures
62-
path: ${{ runner.temp }}/package
38+
env:
39+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
GITHUB_EVENT_NAME: ${{ github.event_name }}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ jobs:
180180
- uses: ./.github/workflows/pkgdown-build
181181
if: github.event_name != 'push'
182182

183+
# Deliberately deploy only on push
184+
# Deployment on schedule adds too much noise.
185+
# Deployment on pull_request is not possible because it requires a token with write permissions, which is not available in pull_request workflows for security reasons.
186+
# Deployment on workflow_dispatch is available via the pkgdown workflow
183187
- uses: ./.github/workflows/pkgdown-deploy
184188
if: github.event_name == 'push'
185189

@@ -333,6 +337,8 @@ jobs:
333337

334338
- uses: ./.github/workflows/update-snapshots
335339
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
340+
with:
341+
base: ${{ github.head_ref }}
336342

337343
- uses: ./.github/workflows/check
338344
if: ${{ ! matrix.covr }}

github-actions/formattable/commit-suggest.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ jobs:
7070
gh run download ${{ github.event.workflow_run.id }} --repo ${{ github.repository }} --name changes-patch && patch -p1 < changes.patch && rm changes.patch
7171
```
7272
73+
Repo owners can also apply the patch automatically. Click the button to jump to the comment box, then post:
74+
75+
```
76+
/apply-patch
77+
```
78+
79+
[![Apply patch](https://img.shields.io/badge/Apply%20patch-%2Fapply--patch-2ea44f?style=for-the-badge&logo=github)](https://github.com/${{ github.repository }}/pull/${{ steps.find-pr.outputs.pr_number }}#new_comment_field)
80+
7381
### Method 2: View the patch
7482
7583
<details>

github-actions/formattable/fledge.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ jobs:
9898

9999
- uses: ./.github/workflows/install
100100
with:
101-
pak-version: devel
102-
packages: cynkra/fledge
101+
token: ${{ secrets.GITHUB_TOKEN }}
102+
packages: ${{ github.repository == 'cynkra/fledge' && 'local::.' || 'cynkra/fledge' }}
103103
cache-version: fledge-1
104104

105105
- name: Count rulesets

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ jobs:
180180
- uses: ./.github/workflows/pkgdown-build
181181
if: github.event_name != 'push'
182182

183+
# Deliberately deploy only on push
184+
# Deployment on schedule adds too much noise.
185+
# Deployment on pull_request is not possible because it requires a token with write permissions, which is not available in pull_request workflows for security reasons.
186+
# Deployment on workflow_dispatch is available via the pkgdown workflow
183187
- uses: ./.github/workflows/pkgdown-deploy
184188
if: github.event_name == 'push'
185189

@@ -333,6 +337,8 @@ jobs:
333337

334338
- uses: ./.github/workflows/update-snapshots
335339
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
340+
with:
341+
base: ${{ github.head_ref }}
336342

337343
- uses: ./.github/workflows/check
338344
if: ${{ ! matrix.covr }}

github-actions/here/commit-suggest.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ jobs:
7070
gh run download ${{ github.event.workflow_run.id }} --repo ${{ github.repository }} --name changes-patch && patch -p1 < changes.patch && rm changes.patch
7171
```
7272
73+
Repo owners can also apply the patch automatically. Click the button to jump to the comment box, then post:
74+
75+
```
76+
/apply-patch
77+
```
78+
79+
[![Apply patch](https://img.shields.io/badge/Apply%20patch-%2Fapply--patch-2ea44f?style=for-the-badge&logo=github)](https://github.com/${{ github.repository }}/pull/${{ steps.find-pr.outputs.pr_number }}#new_comment_field)
80+
7381
### Method 2: View the patch
7482
7583
<details>

github-actions/here/fledge.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ jobs:
9898

9999
- uses: ./.github/workflows/install
100100
with:
101-
pak-version: devel
102-
packages: cynkra/fledge
101+
token: ${{ secrets.GITHUB_TOKEN }}
102+
packages: ${{ github.repository == 'cynkra/fledge' && 'local::.' || 'cynkra/fledge' }}
103103
cache-version: fledge-1
104104

105105
- name: Count rulesets

github-actions/mlflow/cross-version-test-runner.yml

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,41 @@ jobs:
1111
run:
1212
runs-on: ubuntu-slim
1313
timeout-minutes: 10
14-
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/cvt')
14+
if: >
15+
github.event.issue.pull_request &&
16+
startsWith(github.event.comment.body, '/cvt') &&
17+
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association) &&
18+
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
1519
permissions:
1620
pull-requests: write
1721
actions: write
1822
steps:
19-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20-
with:
21-
persist-credentials: false
22-
sparse-checkout: |
23-
.github
24-
- uses: ./.github/actions/validate-author
25-
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
26-
id: get-ref
27-
with:
28-
retries: 3
29-
result-encoding: string
30-
script: |
31-
const runner = require('./.github/workflows/cross-version-test-runner.js');
32-
await runner.main({ context, github });
23+
- name: Dispatch cross-version tests
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
GH_REPO: ${{ github.repository }}
27+
PR_NUMBER: ${{ github.event.issue.number }}
28+
COMMENT_BODY: ${{ github.event.comment.body }}
29+
run: |
30+
flavors=$(printf '%s' "$COMMENT_BODY" | sed -nE '1 s|^/cvt[[:space:]]+(.+)$|\1|p')
31+
if [ -z "$flavors" ]; then
32+
echo "No flavors specified; skipping."
33+
exit 0
34+
fi
35+
36+
pr_json=$(gh api "repos/$GH_REPO/pulls/$PR_NUMBER")
37+
base_ref=$(jq -r .base.ref <<< "$pr_json")
38+
merge_sha=$(jq -r .merge_commit_sha <<< "$pr_json")
39+
40+
payload=$(jq -n \
41+
--arg ref "$base_ref" \
42+
--arg merge_sha "$merge_sha" \
43+
--arg flavors "$flavors" \
44+
--arg repo_full "$GH_REPO" \
45+
'{ref: $ref, return_run_details: true, inputs: {repository: $repo_full, ref: $merge_sha, flavors: $flavors}}')
46+
47+
run_url=$(printf '%s' "$payload" | gh api -X POST \
48+
"repos/$GH_REPO/actions/workflows/cross-version-tests.yml/dispatches" \
49+
--input - --jq .html_url)
50+
51+
gh pr comment "$PR_NUMBER" --body "Cross-version test run started: $run_url"

github-actions/mlflow/cross-version-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
- uses: ./.github/actions/setup-python
7878
with:
7979
pin-micro-version: false
80-
enable-uv-cache: false
8180
- name: Install dependencies
8281
run: |
8382
uv pip install --system -r dev/requirements.txt

github-actions/mlflow/helm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
permissions:
4848
contents: read
4949
strategy:
50+
fail-fast: false
5051
matrix:
5152
tls: [false, true]
5253
name: e2e (tls=${{ matrix.tls }})

0 commit comments

Comments
 (0)