Skip to content

Update mlflow to address dependabot security alerts #5140

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

Draft
wants to merge 41 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
25f16ef
change: Allow telemetry only in supported regions
Jan 29, 2025
0ed85d6
change: Allow telemetry only in supported regions
Jan 29, 2025
b69ffcb
change: Allow telemetry only in supported regions
Jan 29, 2025
8d7f4a8
change: Allow telemetry only in supported regions
Jan 29, 2025
9321367
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Jan 29, 2025
f972222
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Jan 30, 2025
dadbb22
change: Allow telemetry only in supported regions
Jan 30, 2025
28b3fe8
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Feb 23, 2025
fe64f82
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Feb 24, 2025
7775c63
documentation: Removed a line about python version requirements of tr…
Feb 24, 2025
acc861a
Merge branch 'master' into rsareddy-dev
rsareddy0329 Feb 24, 2025
16dc02b
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 10, 2025
06597c6
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 11, 2025
249872d
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 12, 2025
58f8746
feature: Enabled update_endpoint through model_builder
Mar 12, 2025
c6bad70
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 12, 2025
0bf6404
fix: fix unit test, black-check, pylint errors
Mar 12, 2025
c67d7df
fix: fix black-check, pylint errors
Mar 12, 2025
1f84662
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 13, 2025
ea1810b
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 14, 2025
6079269
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 14, 2025
c9fcefb
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 17, 2025
16b6f0c
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 8, 2025
89e18a9
fix:Added handler for pipeline variable while creating process job
Apr 8, 2025
10d4c4f
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 9, 2025
7f15e19
fix: Added handler for pipeline variable while creating process job
Apr 9, 2025
7440f4d
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 14, 2025
de11c91
Revert the PR changes: #5122, due to issue https://t.corp.amazon.com/…
Apr 14, 2025
7acccdb
Fix: fix the issue, https://t.corp.amazon.com/P223568185/communication
Apr 14, 2025
89c2b27
Merge branch 'master' into rsareddy-dev
rsareddy0329 Apr 15, 2025
b24fe0c
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 17, 2025
e68a4b9
Revert PR 5122 changes, due to issues with other processor codeflows
Apr 17, 2025
10b0782
Merge branch 'master' into rsareddy-dev
zhaoqizqwang Apr 19, 2025
09353de
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 23, 2025
40be652
Update mlflow to address dependabot security alerts
Apr 23, 2025
4d7afd0
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 23, 2025
952e2c7
Merge branch 'master' into rsareddy-dev
rsareddy0329 Apr 24, 2025
aa7b5a9
resolve unit tests for mlflow
Apr 24, 2025
d20f42b
resolve unit tests for mlflow
Apr 24, 2025
dfcef9e
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 27, 2025
099f0af
resolve mlflow dependency conflicts
Apr 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/extras/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ nbformat>=5.9,<6
accelerate>=0.24.1,<=0.27.0
schema==0.7.5
tensorflow>=2.16.2,<=2.18.0
mlflow>=2.12.2,<2.13
mlflow>=2.19.0
huggingface_hub==0.26.2
uvicorn>=0.30.1
fastapi==0.115.4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mlflow==2.13.2
mlflow>=2.19.0
astunparse==1.6.3
cffi==1.16.0
cloudpickle==2.2.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mlflow==2.13.2
mlflow>=2.19.0
cloudpickle==2.2.1
numpy==1.26.4
tensorflow==2.16.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mlflow==2.13.2
mlflow>=2.19.0
lz4==4.3.2
numpy==1.26.4
pandas==2.0.3
Expand Down
11 changes: 9 additions & 2 deletions tests/unit/sagemaker/mlflow/test_forward_sagemaker_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def mock_mlflow_client():
def test_encode():
existing_names = set()
assert encode("test-name", existing_names) == "test-name"
assert encode("test:name", existing_names) == "test_3a_name"
assert encode("test:name", existing_names) == "test:name"
assert encode("test-name", existing_names) == "test-name_1"


Expand Down Expand Up @@ -188,6 +188,7 @@ def getenv_side_effect(arg, default=None):
Mock(spec=requests.Response),
Mock(spec=requests.Response),
],
"https://test.sagemaker.aws/api/2.0/mlflow/runs/update": Mock(spec=requests.Response),
"https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate": Mock(spec=requests.Response),
}

Expand Down Expand Up @@ -215,13 +216,19 @@ def getenv_side_effect(arg, default=None):
mock_response.status_code = 200
mock_response.text = json.dumps({})

mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"].status_code = 200
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"].text = json.dumps(
{"run_id": "test_run_id", "status": "FINISHED"}
)

mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate"].status_code = 200
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate"].text = json.dumps({})

mock_request.side_effect = [
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/experiments/get-by-name"],
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/create"],
*mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/log-batch"],
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"],
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate"],
]

Expand All @@ -231,7 +238,7 @@ def getenv_side_effect(arg, default=None):

log_to_mlflow(metrics, params, tags)

assert mock_request.call_count == 6 # Total number of API calls
assert mock_request.call_count == 7 # Total number of API calls


@patch("sagemaker.mlflow.forward_sagemaker_metrics.get_training_job_details")
Expand Down
Loading