Skip to content

Commit 3210938

Browse files
chore(syncweaver): update tracked sources from CCBR/MOSuite@v0.4.1 (#7)
Co-authored-by: ccbr-bot[bot] <258092125+ccbr-bot[bot]@users.noreply.github.com>
1 parent 16c524f commit 3210938

172 files changed

Lines changed: 7912 additions & 31337 deletions

File tree

Some content is hidden

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

‎.syncweaver-lock.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"sources": {
66
"code/MOSuite": {
77
"repo_url": "https://github.com/CCBR/MOSuite",
8-
"ref": "v0.3.2",
9-
"git_sha": "f4465c58a7d04f5feb41d4455a019ca4946a4ca8"
8+
"ref": "v0.4.1",
9+
"git_sha": "4e85d49ab155618d9f6beafd327b6fb87dfa8609"
1010
}
1111
}
1212
}

‎code/MOSuite/.Rbuildignore‎

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
^renv$
2-
^renv\.lock$
31
^_pkgdown\.yml$
2+
^[.]?air[.]toml$
43
^\.github$
54
^\.lintr$
5+
^\.posit$
66
^\.pre-commit-config\.yaml$
77
^\.prettierignore$
88
^\.prettierrc$
99
^\.Rproj\.user$
10+
^\.vscode$
1011
^CITATION\.cff$
1112
^codemeta\.json$
1213
^data-raw$
1314
^doc$
14-
^Dockerfile$
1515
^docker$
16+
^Dockerfile$
1617
^docs$
1718
^figures$
19+
^inst/quarto/report_files$
1820
^LICENSE\.md$
1921
^Meta$
22+
^moo_input\.rds$
2023
^MOSuite\.Rproj$
2124
^pkgdown$
22-
^README\.Rmd$
23-
^README\.html$
24-
^README_files$
25-
^Rplots\.pdf$
26-
^moo_input\.rds$
2725
^plot-volc-enh\.json$
28-
^volc-sum-params\.json$
29-
^report_files$
30-
^inst/quarto/report_files$
26+
^README.*$
27+
^renv\.lock$
28+
^renv$
29+
^report
30+
^Rplots\.pdf$
31+
^SECURITY\.md$
3132
^tests/figures$
33+
^vignettes/cli\.Rmd$
3234
^vignettes/figures/$
3335
^vignettes/memory\.Rmd$
34-
^vignettes/cli\.Rmd$
36+
^volc-sum-params\.json$
3537
VennDiagram.*\.log
36-
^[.]?air[.]toml$
37-
^\.vscode$
38+
^\.posit/assistant$
39+
^AGENTS\.md$

‎code/MOSuite/.github/CODEOWNERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @kelly-sovacool

‎code/MOSuite/.github/workflows/R-CMD-check.yaml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [main, master]
88
pull_request:
9-
branches: [main, master]
109
workflow_dispatch:
1110

1211
concurrency:
@@ -23,8 +22,8 @@ jobs:
2322
fail-fast: false
2423
matrix:
2524
config:
26-
- { os: ubuntu-latest, r: 'release' }
27-
- { os: ubuntu-latest, r: 'oldrel-1' }
25+
- { os: ubuntu-latest, r: "release" }
26+
- { os: ubuntu-latest, r: "oldrel-1" }
2827
runs-on: ${{ matrix.config.os }}
2928
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
3029
env:
@@ -51,7 +50,7 @@ jobs:
5150
- uses: actions/checkout@v6
5251
- uses: r-lib/actions/setup-r@v2
5352
with:
54-
r-version: '4.5'
53+
r-version: "4.5"
5554
use-public-rspm: true
5655
- uses: r-lib/actions/setup-r-dependencies@v2
5756
with:

‎code/MOSuite/.github/workflows/auto-format.yml‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: auto-format
33
on:
44
workflow_dispatch:
55
pull_request:
6-
branches: [ main, master ]
76

87
permissions:
98
contents: write
@@ -26,7 +25,7 @@ jobs:
2625
private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }}
2726
owner: ${{ github.repository_owner }}
2827

29-
- uses: actions/checkout@v6
28+
- uses: actions/checkout@v7
3029
with:
3130
token: ${{ steps.generate-token.outputs.token }}
3231
fetch-depth: 0
@@ -40,20 +39,14 @@ jobs:
4039
4140
- uses: r-lib/actions/setup-r@v2
4241
with:
43-
r-version: '4.5'
42+
r-version: "4.5"
4443
use-public-rspm: true
4544

4645
- uses: r-lib/actions/setup-r-dependencies@v2
4746
with:
4847
extra-packages: local::.
4948
needs: dev
5049

51-
- name: update Galaxy blueprints
52-
shell: Rscript {0}
53-
run: |
54-
source('inst/extdata/galaxy/galaxy.R')
55-
write_package_json_blueprints()
56-
5750
- name: render README.Rmd & docs
5851
shell: Rscript {0}
5952
run: |
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: syncweaver-source-dispatch
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
source_ref:
9+
description: Optional source ref to dispatch (defaults to release tag for release events, or current ref for manual runs).
10+
required: false
11+
type: string
12+
source_repo:
13+
description: Optional source repository override in OWNER/REPO format (defaults to current repository).
14+
required: false
15+
type: string
16+
orchestrator-repo:
17+
description: Optional orchestrator repository override in OWNER/REPO format.
18+
required: false
19+
default: NIDAP-Community/syncweaver-orchestrator
20+
type: string
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
notify-syncweaver:
27+
runs-on: ubuntu-latest
28+
env:
29+
SOURCE_REPOSITORY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_repo || github.repository }}
30+
SOURCE_REF: ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.source_ref || github.ref_name }}
31+
ORCHESTRATOR_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs['orchestrator-repo'] || vars['orchestrator-repo'] || 'NIDAP-Community/syncweaver-orchestrator' }}
32+
steps:
33+
- name: Validate dispatch payload
34+
shell: bash
35+
run: |
36+
set -euo pipefail
37+
if [[ -z "${SOURCE_REPOSITORY//[[:space:]]/}" ]]; then
38+
echo "Error: source repository cannot be empty." >&2
39+
exit 1
40+
fi
41+
if [[ -z "${SOURCE_REF//[[:space:]]/}" ]]; then
42+
echo "Error: source ref cannot be empty." >&2
43+
exit 1
44+
fi
45+
if [[ -z "${ORCHESTRATOR_REPO//[[:space:]]/}" ]]; then
46+
echo "Error: orchestrator repository cannot be empty." >&2
47+
exit 1
48+
fi
49+
if [[ "${ORCHESTRATOR_REPO}" != */* ]]; then
50+
echo "Error: orchestrator repository must be in OWNER/REPO format." >&2
51+
exit 1
52+
fi
53+
if [[ -z "${{ vars.CCBR_BOT_APP_ID }}" ]]; then
54+
echo "Error: vars.CCBR_BOT_APP_ID is required to generate a dispatch token." >&2
55+
exit 1
56+
fi
57+
if [[ -z "${{ secrets.CCBR_BOT_PRIVATE_KEY }}" ]]; then
58+
echo "Error: secrets.CCBR_BOT_PRIVATE_KEY is required to generate a dispatch token." >&2
59+
exit 1
60+
fi
61+
62+
- name: Resolve orchestrator repository owner and name
63+
id: orchestrator_repo
64+
shell: bash
65+
run: |
66+
set -euo pipefail
67+
owner="${ORCHESTRATOR_REPO%%/*}"
68+
repo="${ORCHESTRATOR_REPO#*/}"
69+
if [[ -z "${owner}" || -z "${repo}" ]]; then
70+
echo "Error: failed to parse orchestrator repository '${ORCHESTRATOR_REPO}'." >&2
71+
exit 1
72+
fi
73+
echo "owner=${owner}" >> "$GITHUB_OUTPUT"
74+
echo "repository=${repo}" >> "$GITHUB_OUTPUT"
75+
76+
- name: Generate CCBR-bot token
77+
id: ccbr_bot
78+
uses: actions/create-github-app-token@v3
79+
with:
80+
client-id: ${{ vars.CCBR_BOT_APP_ID }}
81+
private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }}
82+
owner: ${{ steps.orchestrator_repo.outputs.owner }}
83+
repositories: ${{ steps.orchestrator_repo.outputs.repository }}
84+
85+
- name: Dispatch syncweaver-update-hosts workflow in orchestrator repo
86+
uses: peter-evans/repository-dispatch@v4
87+
with:
88+
token: ${{ steps.ccbr_bot.outputs.token }}
89+
repository: ${{ env.ORCHESTRATOR_REPO }}
90+
event-type: syncweaver-update-hosts
91+
client-payload: >-
92+
{"source_repository": ${{ toJson(env.SOURCE_REPOSITORY) }}, "ref": ${{ toJson(env.SOURCE_REF) }}}

‎code/MOSuite/.gitignore‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
.Rproj.user
2-
.Rhistory
3-
.Rdata
4-
.httr-oauth
51
.DS_Store
6-
.quarto
7-
docs
8-
inst/doc
2+
*_files/
3+
**/figures/
4+
/.github/plans/
5+
/.httr-oauth
6+
/.posit/
7+
/.quarto
8+
/.Rdata
9+
/.Rhistory
10+
/.Rproj.user
11+
/.vscode/
912
/doc/
13+
/docs
14+
/inst/doc
1015
/Meta/
1116
/README.html
12-
**/figures/
13-
VennDiagram.*.log
14-
*_files/
15-
tests/testthat/Rplots.pdf
17+
/tests/testthat/Rplots.pdf
1618
/tmp
17-
vignettes/args*.json
18-
Rplots.pdf
19+
/vignettes/args*.json
1920
moo_input.rds
2021
plot-volc-enh.json
22+
Rplots.pdf
23+
VennDiagram.*.log
2124
volc-sum-params.json

‎code/MOSuite/.lintr‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ linters: linters_with_defaults(
33
commented_code_linter = NULL,
44
object_name_linter = NULL,
55
object_length_linter = object_length_linter(60L),
6+
object_usage_linter = NULL,
67
return_linter = return_linter(
78
return_style = "explicit"
89
),

‎code/MOSuite/.pre-commit-config.yaml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,19 @@ repos:
2020
- id: trailing-whitespace
2121
# spell check
2222
- repo: https://github.com/codespell-project/codespell
23-
rev: v2.4.2
23+
rev: v2.4.3
2424
hooks:
2525
- id: codespell
2626
args: ["-I=.github/WORDLIST.txt"]
2727
# R formatting
2828
- repo: https://github.com/posit-dev/air-pre-commit
29-
rev: 0.9.0
29+
rev: 0.11.0
3030
hooks:
3131
- id: air-format
3232
- repo: https://github.com/lorenzwalthert/precommit
33-
rev: v0.4.3.9025
33+
rev: v0.4.3.9029
3434
hooks:
3535
- id: parsable-R
36-
- id: readme-rmd-rendered
3736
- id: use-tidy-description
3837
- id: lintr
3938
args: [--warn_only]

‎code/MOSuite/.vscode/extensions.json‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)