update onsite#40
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
More reviews will be available in 51 minutes and 50 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughUpdate ONSITE to pyonsite 0.0.3 and migrate module IO from idXML to idparquet: environment and container refs updated, Nextflow process outputs and per-algorithm -out targets changed, meta.yml I/O patterns adjusted, tests/test-data and CI download step switched to idparquet. ChangesONSITE Module v0.0.3 Update
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@modules/bigbio/onsite/meta.yml`:
- Around line 38-39: Update the meta.yml entry so the description matches the
pattern value: change the description field (currently "Protein/peptide
identifications file in idXML format") to refer to idparquet (e.g.,
"Protein/peptide identifications file in idparquet format") so the 'description'
and 'pattern' keys are consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3a1bc770-27dc-43e8-b09a-dfec8cae2506
📒 Files selected for processing (5)
modules/bigbio/onsite/environment.ymlmodules/bigbio/onsite/main.nfmodules/bigbio/onsite/meta.ymlmodules/bigbio/onsite/tests/main.nf.testtests/config/test_data.config
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/ci.yml:
- Around line 176-179: The download loop using curl in the for loop (iterating
over psms.parquet proteins.parquet protein_groups.parquet search_params.parquet
and using $DIR/$f and $BASE_URL/$f) can silently succeed on HTTP errors and hang
without timeouts; update the curl invocation to fail-fast and bounded by adding
-f (to treat HTTP errors as failures), -S for error output, explicit timeouts
(e.g. --connect-timeout and --max-time), and retry limits (e.g. --retry and
--retry-delay or --retry-connrefused), and ensure the loop exits on any curl
failure (e.g. by checking curl's exit code or enabling set -euo pipefail in the
script) so a bad download fails the CI immediately.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 91af71ba-05ff-4468-95c0-c355c185d90b
📒 Files selected for processing (2)
.github/workflows/ci.ymltests/config/test_data.config
🚧 Files skipped from review as they are similar to previous changes (1)
- tests/config/test_data.config
| for f in psms.parquet proteins.parquet protein_groups.parquet search_params.parquet; do | ||
| echo "Downloading $f ..." | ||
| curl -sL -o "$DIR/$f" "$BASE_URL/$f" | ||
| done |
There was a problem hiding this comment.
Make the onsite fixture download fail-fast and bounded.
At Line 178, curl -sL can silently succeed on HTTP errors and has no timeout/retry controls. That can produce opaque nf-test failures later or flaky CI hangs.
Suggested hardening
- name: Download onsite test data directory
if: matrix.module == 'bigbio/onsite'
run: |
+ set -euo pipefail
DIR="tests/data/onsite/Phospho_redissolve_final_01_clean_perc.idparquet"
mkdir -p "$DIR"
BASE_URL="https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-ci-github/onsite/Phospho_redissolve_final_01_clean_perc.idparquet"
for f in psms.parquet proteins.parquet protein_groups.parquet search_params.parquet; do
echo "Downloading $f ..."
- curl -sL -o "$DIR/$f" "$BASE_URL/$f"
+ curl --fail --show-error --location \
+ --retry 3 --retry-all-errors --retry-delay 2 \
+ --connect-timeout 15 --max-time 120 \
+ -o "$DIR/$f" "$BASE_URL/$f"
+ test -s "$DIR/$f"
done
ls -lh "$DIR"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/ci.yml around lines 176 - 179, The download loop using
curl in the for loop (iterating over psms.parquet proteins.parquet
protein_groups.parquet search_params.parquet and using $DIR/$f and $BASE_URL/$f)
can silently succeed on HTTP errors and hang without timeouts; update the curl
invocation to fail-fast and bounded by adding -f (to treat HTTP errors as
failures), -S for error output, explicit timeouts (e.g. --connect-timeout and
--max-time), and retry limits (e.g. --retry and --retry-delay or
--retry-connrefused), and ensure the loop exits on any curl failure (e.g. by
checking curl's exit code or enabling set -euo pipefail in the script) so a bad
download fails the CI immediately.
Pull Request
Description
Checklist
main.nfincludes process definitionmeta.ymlincludes complete documentationenvironment.ymlspecifies dependenciesModule Type
Related Issues
Closes #
Summary by CodeRabbit
Chores
Changes