[BE] Fix bug experiment data not showing on Windows
See original GitHub issueDescription
Internal user Sanjay, reported a bug on Windows where his experiment data is being tracked properly, can be shown in the pipeline view, but doesn’t appear in the experiment tracking view.
Context
Can’t view experiment data.
Steps to Reproduce
- Setup experiment tracking session store + datasets
kedro run
kedro viz
Expected Result
The logged experiment data should appear in the experiment tracking view.
Actual Result
Only the data from the session store is shown with the names of the tracked datasets, but not the actual content.
2022-02-10 16:27:39,359 - kedro_viz.api.graphql - WARNING - `C:\Users\s_hariharan\...\evaluation.json` could not be found
Your Environment
Include as many relevant details as possible about the environment you experienced the bug in:
- Web browser system and version: N/A
- Operating system and version: Windows
- NodeJS version used (if relevant): N/A
- Kedro version used (if relevant): N/A
- Python version used (if relevant): N/A
Notes
@studioswong and I already had a stab at finding out what the issue is. It looks like the issue is in https://github.com/kedro-org/kedro-viz/blob/main/package/kedro_viz/api/graphql.py#L212, specifically the logic to check if the file exists: https://github.com/kedro-org/kedro-viz/blob/main/package/kedro_viz/api/graphql.py#L244.
We haven’t fully verified this, but my guess is that for some reason this check doesn’t pass on Windows and therefore no data is returned. The data was logged properly and the REST API does return it.
Checklist
- Include labels so that we can categorise your issue
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top GitHub Comments
@AntonyMilneQB – hey, I got Kedro-viz to run on my personal Windows Machine and nothing is committing to the session_store.db on every kedro run. For me, it shows no experiment tracking data on Kedro-viz. I can bring my laptop next week so we can debug in person.
Same issue reported here: https://github.com/kedro-org/kedro/discussions/1359