Skip to content

Lots of 'warning: uncommitted changes' in offline mode #713

@wk9874

Description

@wk9874
with Run(mode='offline') as myrun:
    myrun.init(name="test_artifact_retrieval", folder="/my/test/2", tags=["my_tag_1"], metadata={"my_1": 1})
    myrun.save_file("upload.py", category="code", metadata={"my_test": True})
    myrun.save_file("test.py", category="input", metadata={"my_test": True})
    myrun.update_tags(["my_tag_2"])
    myrun.update_tags(["my_tag_3"])
    myrun.update_metadata({"my_2": 1})
    myrun.update_metadata({"my_2": 2, "my_3": 3})
    myrun.create_metric_threshold_alert(
        name="my_test_alert_2",
        metric="test_metric",
        threshold = 20.0,
        rule = "is above",
        description = "dddh"
    )
    print(myrun._sv_obj.alerts)

Gives...

WARNING:simvue.Run:Uncommitted change found for attribute 'status'
WARNING:simvue.Run:Uncommitted change found for attribute 'tags'
WARNING:simvue.Run:Uncommitted change found for attribute 'tags'
WARNING:simvue.Run:Uncommitted change found for attribute 'alerts'
WARNING:simvue.Run:Uncommitted change found for attribute 'alerts'

Why do I see these? Changes seem to be being committed to offline cache as expected...

Metadata

Metadata

Assignees

Labels

ready for testingThis issue has been fixed and is ready for testing

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions