-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: Exit the script if server artifact placer is not available #36569
chore: Exit the script if server artifact placer is not available #36569
Conversation
WalkthroughThe changes involve enhancements to the GitHub Actions workflows, specifically in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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
🧹 Outside diff range and nitpick comments (1)
.github/workflows/github-release.yml (1)
250-257
: Well done, class! Let's review these changes together.I'm pleased to see the improvements in error handling and the use of the nightly tag for PostgreSQL. These changes will make our workflow more robust and reliable. However, let's consider making the error message a bit more informative for our future selves.
Consider updating the error message to be more specific:
- echo "No script found to prepare server artifacts" + echo "Error: The script 'scripts/prepare_server_artifacts.sh' was not found. Please ensure it exists and is in the correct location."This will help us quickly identify and resolve the issue if it ever occurs. Remember, clear communication is key in both code and error messages!
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (2)
- .github/workflows/github-release.yml (1 hunks)
- .github/workflows/test-build-docker-image.yml (2 hunks)
🔇 Additional comments (2)
.github/workflows/test-build-docker-image.yml (2)
359-364
: Very good, class! This change deserves a gold star!Now, let's review what we've learned from this modification:
- We're checking if the script exists before trying to run it. This is like making sure you have all your school supplies before starting your homework.
- If the script is missing, we're telling the computer to stop and let us know. It's similar to raising your hand in class when you need help.
- The
exit 1
command is like telling the computer "Oops, we can't continue". This helps us avoid bigger problems later.This change is excellent because it helps us catch problems early, just like how checking your work helps you avoid mistakes on a test.
446-448
: Excellent work! You've shown great consistency, just like always using your best handwriting!Let's recap what we've observed in this change:
- We're using the same check we learned about earlier in the file. This is like using the same problem-solving method for similar math problems.
- By repeating this check, we're making sure our workflow is consistent. It's like following the same rules in every classroom.
- This consistency helps anyone reading our code understand it better, just like how using the same format for all your essays makes them easier to read.
Remember, class: consistency in coding is as important as consistency in your study habits!
Description
PR to fail fast at the build step only if the script to place the server artifacts for pg and mongo is not available. This PR also replaces pg tag with nightly tag for placing the server artifacts for pg to improve the stability of the image shipped to customers.
Fixes: #36478
/test Sanity
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/11050797504
Commit: 40c5621
Cypress dashboard.
Tags:
@tag.Sanity
Spec:
Thu, 26 Sep 2024 11:23:28 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Bug Fixes
Chores