Skip to content

Improve support for latest API in MLEngineStartTrainingJobOperator#7812

Merged
potiuk merged 1 commit intoapache:masterfrom
PolideaInternal:mlengine-backport-2
Mar 23, 2020
Merged

Improve support for latest API in MLEngineStartTrainingJobOperator#7812
potiuk merged 1 commit intoapache:masterfrom
PolideaInternal:mlengine-backport-2

Conversation

@mik-laj
Copy link
Member

@mik-laj mik-laj commented Mar 23, 2020


Issue link: WILL BE INSERTED BY boring-cyborg

Make sure to mark the boxes below before creating PR: [x]


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@boring-cyborg boring-cyborg bot added the provider:google Google (including GCP) related issues label Mar 23, 2020
existing_training_input = existing_job.get('trainingInput', None)
requested_training_input = training_request['trainingInput']
if 'scaleTier' not in existing_training_input:
existing_training_input['scaleTier'] = None
Copy link
Member Author

Choose a reason for hiding this comment

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

The API has stopped returning fields that are empty.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a change in the remote API, so it cannot be detected by unit testing.

@codecov-io
Copy link

codecov-io commented Mar 23, 2020

Codecov Report

Merging #7812 into master will decrease coverage by 0.32%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7812      +/-   ##
==========================================
- Coverage   86.91%   86.59%   -0.33%     
==========================================
  Files         925      925              
  Lines       44873    44879       +6     
==========================================
- Hits        39003    38862     -141     
- Misses       5870     6017     +147     
Impacted Files Coverage Δ
...rflow/providers/google/cloud/operators/mlengine.py 88.47% <0.00%> (-1.69%) ⬇️
airflow/kubernetes/volume_mount.py 44.44% <0.00%> (-55.56%) ⬇️
airflow/kubernetes/volume.py 52.94% <0.00%> (-47.06%) ⬇️
airflow/security/kerberos.py 30.43% <0.00%> (-45.66%) ⬇️
airflow/kubernetes/pod_launcher.py 47.18% <0.00%> (-45.08%) ⬇️
...viders/cncf/kubernetes/operators/kubernetes_pod.py 69.69% <0.00%> (-25.26%) ⬇️
airflow/kubernetes/refresh_config.py 50.98% <0.00%> (-23.53%) ⬇️
airflow/jobs/scheduler_job.py 90.73% <0.00%> (-0.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d372f23...1b7a796. Read the comment docs.

@kaxil kaxil changed the title Imrrove support for latest API in MLEngineStartTrainingJobOperator Improve support for latest API in MLEngineStartTrainingJobOperator Mar 23, 2020
@potiuk potiuk merged commit 426a798 into apache:master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants