-
Notifications
You must be signed in to change notification settings - Fork 15
fix: add apptainer source, yml formatting #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughUpdated action inputs' quote style, added task validation that errors on invalid values, and added a conditional "Install Apptainer" step (adds Apptainer PPA then installs) plus workflow adjustments to call the action with install-apptainer when containerizing. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant GH as GitHub Action
participant V as Validator
participant A as Apptainer Installer
participant S as Snakemake Workflow
User->>GH: dispatch with inputs (task, install-apptainer, ...)
GH->>V: validate `task` input
alt invalid task
V-->>User: print error message
GH-->>GH: exit non-zero
else valid task
V-->>GH: validation ok
alt install-apptainer == true
GH->>A: add Apptainer PPA && apt install apptainer
A-->>GH: install result
alt install failed
GH-->>User: install error and exit
end
else install-apptainer == false
GH-->>GH: skip apptainer install
end
GH->>S: run requested task (e.g., containerize)
S-->>User: task completes
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
action.yml (1)
20-20: Improve YAML consistency with normalized quote styles.The quote style normalization from single to double quotes across default values improves readability and YAML consistency. These are stylistic changes with no functional impact.
Also applies to: 24-24, 28-28, 36-36, 43-43
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
action.yml(2 hunks)
🔇 Additional comments (2)
action.yml (2)
45-50: Input validation with clear error messaging.The new validation step is well-implemented. The conditional logic correctly identifies invalid
taskvalues and exits with explicit error messaging, improving user experience by providing actionable feedback early in the workflow. The condition! (inputs.task == 'containerize' || inputs.task == 'run')properly triggers only when the task is neither of the two allowed values.
52-62: Apptainer installation step with proper safeguards.The conditional Apptainer installation is well-structured:
- Runs only when
install-apptaineris explicitly enabled- Checks for
apt-getavailability before attempting installation, with clear error messaging for unsupported runners- Adds the PPA, updates the package cache, and installs Apptainer using standard Ubuntu commands
- Proper use of
-yflags for non-interactive operation in CIPlease verify that
ppa:apptainer/ppais the correct and currently active PPA for Apptainer on Ubuntu runners. If you'd like, I can search for the latest Apptainer installation documentation to confirm this is the recommended source.
|
note to revs: the file diff looks more complicated then it is -- the only line that was added and that is important is |
|
Thanks a lot! |
closes #44
Summary by CodeRabbit
New Features
Bug Fixes