Skip to content
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

Bugfix in ExperimentData's handling of metadata save #1229

Merged
merged 10 commits into from
Jul 20, 2023

Conversation

gadial
Copy link
Contributor

@gadial gadial commented Jul 19, 2023

Summary

This PR fixes a bug resulting in experiment data saving fails due to large payloads.

Details and comments

Since the metadata field of ExperimentData can grow tremendously large, resulting in a save failure due to the large payload. we have added has the ability to save the metadata as an artifact file. However, a small bug prevented this from triggering. This PR fixes the bug and adds a relevant test.

@gadial gadial requested a review from coruscating July 19, 2023 10:56
@coruscating coruscating added backport stable potential The issue or PR might be minimal and/or import enough to backport to stable Changelog: Bugfix Include in the "Fixed" section of the changelog labels Jul 19, 2023
Copy link
Collaborator

@coruscating coruscating left a comment

Choose a reason for hiding this comment

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

Can you also add a line to the Discussion section of cloud_service.rst that when experiment metadata is large, it will be saved as metadata.json but saving and loading will still be automatically handled?

gadial and others added 2 commits July 20, 2023 19:01
Co-authored-by: Helena Zhang <Helena.Zhang@ibm.com>
Copy link
Collaborator

@coruscating coruscating left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@gadial gadial added this pull request to the merge queue Jul 20, 2023
Merged via the queue into qiskit-community:main with commit 970b376 Jul 20, 2023
mergify bot pushed a commit that referenced this pull request Jul 20, 2023
### Summary

This PR fixes a bug resulting in experiment data saving fails due to
large payloads.

### Details and comments

Since the `metadata` field of `ExperimentData` can grow tremendously
large, resulting in a save failure due to the large payload. we have
added has the ability to save the metadata as an artifact file. However,
a small bug prevented this from triggering. This PR fixes the bug and
adds a relevant test.

---------

Co-authored-by: Helena Zhang <Helena.Zhang@ibm.com>
(cherry picked from commit 970b376)

# Conflicts:
#	requirements.txt
@gadial gadial deleted the experiment_metadata_save_fix branch July 20, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable potential The issue or PR might be minimal and/or import enough to backport to stable Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants