Skip to content

FIX make CloudBatchSubmitJobOperator fail when job fails - #44425

Merged
potiuk merged 3 commits into
apache:mainfrom
SuccessMoses:fix-gcbatch-operator
Nov 30, 2024
Merged

FIX make CloudBatchSubmitJobOperator fail when job fails#44425
potiuk merged 3 commits into
apache:mainfrom
SuccessMoses:fix-gcbatch-operator

Conversation

@SuccessMoses

Copy link
Copy Markdown
Contributor

Fixes : #43744

TODO:

  • Improve unit test for CloudBatchSunbmitJobOperator

@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Nov 27, 2024

@MaksYermak MaksYermak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@potiuk

potiuk commented Nov 28, 2024

Copy link
Copy Markdown
Member

Yeah - as already planned - can you please add a unit test and get a better description in commit message @SuccessMoses ?

@SuccessMoses

Copy link
Copy Markdown
Contributor Author

@potiuk I made a minor change to the test. Do you think more test is needed?

Comment thread providers/tests/google/cloud/hooks/test_cloud_batch.py Outdated

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@potiuk

potiuk commented Nov 30, 2024

Copy link
Copy Markdown
Member

Yep. Nice work - the failing tests are also failing in main and we need to fix them separately, so this one is goood to go.

@potiuk
potiuk merged commit 4d90f14 into apache:main Nov 30, 2024
@SuccessMoses
SuccessMoses deleted the fix-gcbatch-operator branch November 30, 2024 19:24
@SuccessMoses

Copy link
Copy Markdown
Contributor Author

@potiuk Thanks for merging. The failing test on main, is it something that is fixable? I won't like to give it a try too

@potiuk

potiuk commented Nov 30, 2024

Copy link
Copy Markdown
Member

Workarounded already - and waits for a permanent fix here #44513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CloudBatchSubmitJobOperator incorrectly reports success when defer mode is off

4 participants