-
Notifications
You must be signed in to change notification settings - Fork 0
GCP Integration Tests Catch Failures #580
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
WalkthroughThe pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant S as Script
S->>S: Run check_dataproc_job_state
S->>S: Execute grep then awk extraction for JOB_STATE
alt JOB_STATE empty or "ERROR"
S->>S: Print error message & exit
else
S->>S: Continue execution
end
Suggested reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 🪧 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
CodeRabbit Configuration File (
|
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)
scripts/distribution/run_gcp_quickstart.sh (1)
60-64
: Improve error detection.
The updated condition now fails the script if JOB_STATE is empty or "ERROR". Consider removing the now-obsolete TODO comment on line 60.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (1)
scripts/distribution/run_gcp_quickstart.sh
(1 hunks)
🔇 Additional comments (1)
scripts/distribution/run_gcp_quickstart.sh (1)
58-59
: Extract JOB_STATE correctly.
Usingawk '{print $NF}'
ensures only the state value is captured.
## Summary Right now, the gcp integration tests do not recognize failures from dataproc and continue running the commands. This has led to the group_by_upload job hanging indefinitely. This change ensures that if the dataproc job state is "ERROR" we fail immediately. ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced job status checking by ensuring that both empty and explicitly error-indicating states trigger consistent failure responses, resulting in more robust job evaluation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary Right now, the gcp integration tests do not recognize failures from dataproc and continue running the commands. This has led to the group_by_upload job hanging indefinitely. This change ensures that if the dataproc job state is "ERROR" we fail immediately. ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced job status checking by ensuring that both empty and explicitly error-indicating states trigger consistent failure responses, resulting in more robust job evaluation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Right now, the gcp integration tests do not recognize failures from dataproc and continue running the commands. This has led to the group_by_upload job hanging indefinitely. This change ensures that if the dataproc job state is "ERROR" we fail immediately.
Checklist
Summary by CodeRabbit