-
Notifications
You must be signed in to change notification settings - Fork 7
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
Operation output to S3 based on env var config #103
Operation output to S3 based on env var config #103
Conversation
RFileOp and PythonFileOp log stdout and stderr output to stdout so it appears in system logs, catch non zero return/exit code in exception, no logging of output to file in S3 COS if env var ELYRA_GENERIC_NODES_ENABLE_SCRIPT_OUTPUT_TO_S3 is set to false Signed-off-by: shalberd <21118431+shalberd@users.noreply.github.com>
Signed-off-by: shalberd <21118431+shalberd@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #103 +/- ##
==========================================
- Coverage 80.60% 80.52% -0.09%
==========================================
Files 151 151
Lines 19401 19424 +23
Branches 477 482 +5
==========================================
+ Hits 15639 15641 +2
- Misses 3584 3601 +17
- Partials 178 182 +4 ☔ View full report in Codecov by Sentry. |
Yeah, what I did in our organization: I set this env var to false when building the runtime container image, in the Dockerfile / Containerfile |
/lgtm Tested on cluster as well: Let's mark the following, so we can note this in some documentation when we upgrade our notebooks with these upgrade, :
as previously, we included this, Additionally, the env vars: ELYRA_GENERIC_NODES_ENABLE_SCRIPT_OUTPUT_TO_S3 , we can keep it as upstream, and explicitly mark them as false in notebook images. |
886d92d
to
f2f16b3
Compare
Thanks for the review @harshad16! I removed the last commit that set the env var to false. Please take a final look. EDIT: Tracking here https://issues.redhat.com/browse/RHOAIENG-18582 |
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.
/lgtm
thanks 💯
Move towards a more similar codebase between this fork and upstream.
Discarding these changes made on ODH only:
In favor of these changes made on upstream:
Please note that the upstream version does not include log boundaries like
Validation
Run a pipeline with the following Python script:
The pipeline will fail and the "divide by zero" error will be logged on the pod logs:
On the other hand, if you run a pipeline with the following Python script:
The pipeline will succeed and the catch message will be logged on the pod logs: