-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[bug] v1 Metrics not working in KFP 2.2.0 #10988
Comments
I was able to test and confirm this issue on a clean system and a fresh install of Kubeflow 1.9.0-rc.2. I am confident that this is indeed a regression. @rimolive I think this is relevant for the Kubeflow 1.9 release. To elaborate on this: I would expect the metrics to show up in the UI as before What I am seeing instead is "no metrics found for this run": In addition, the metrics returned by the SDK should not be run = client.create_run_from_pipeline_func(my_pipeline, namespace="kubeflow-user-example-com", experiment_name="metrics", run_name="metrics", arguments={})
run_completed = client.wait_for_run_completion(run.run_id, timeout=500)
run_completed.run.metrics ## should not be None but contain the metric |
v1 visualisations (tables, html, ...) are still working fine and displayed in the UI. This seems to be specific to metrics. |
As mentioned on Slack by @juliusvonkohout, KFP 2.0.5 already changed how (v1?) metrics are displayed in the UI. They used to be shown on the Experiments tab similar to this older screenshot. This is no longer the case since KFP 2.0.5. I'm not sure whether this was an intentional change. In any case, in KFP 2.0.5 they were still visible as a run output and accessible through the SDK as shown above. This seems to be broken in KFP 2.2.0 now and metrics are no longer working at all. |
@rimolive can you pick this up? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/lifecycle frozen |
Environment
Steps to reproduce
I ran into a regression with v1 metrics while testing Kubeflow 1.9.0-rc.2 (KFP 2.2.0). When defining v1 metrics they are no longer picked up. The UI does not show the metric as a run output and the metrics field in the run object returned by the SDK is
None
:The same example is working fine when downgrading to KFP 2.1.0.
Take one of the (older) Kubeflow metrics samples from the website:
Expected result
The metric should be picked up and shown in the UI. The
run.metrics
field returned from the SDK should not beNone
but contain the metric.Materials and reference
The metrics json is sucessfully written to s3 and shown as an output artifact in the UI. But it's not recognised as a metric.
Sidenote: The UI also shows the run as being cached even though the component is executed as expected. I'm not sure whether this is related though. Issue #10966 also mentions caching issues in KFP 2.2.0.
Labels
/area backend
Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: