simvue-io / simvue-io/python-api

Fetching config in file artifact snapshot breaks offline mode

Offen
#885 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@wk9874 arbeitet bereits daran.

Seit 20.10.2025.

bug
Vorherrschende Sprache
Python
Sterne
4
Forks
1
Ø Merge
5 T. 8 Std.
Gemergte PRs (30 T.)
4

Beschreibung

Description of Bug

Inside FileArtifact, if snapshot=True, the UserConfiguration is fetched. However since mode is not passed through, it does it in online mode, which breaks offline mode as it continually tries to ping the server

Maybe mode should be a required arg in fetch()?

Also we should have a CI job which runs offline mode tests fully offline, ie there is no server URL or token available

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create an offline mode run
  2. Remove internet connection
  3. Save a file artifact with snapshot = True

Expected behavior

File artifact should save locally with a copy of the file in cache

Actual Behaviour

Run breaks since it tries to obtain server version, as UserConfiguration thinks it is in online mode

Screenshots

If applicable, add screenshots to help explain your problem.

Setup

  • OS: Ubuntu
  • Python version: v3.10

Additional context

Add any other context about the problem here.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.