simvue-io / simvue-io/python-api

Fetching config in file artifact snapshot breaks offline mode

Aperta
#885 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@wk9874 ci sta già lavorando.

Dal 20/10/2025.

bug
Lingua principale
Python
Stelle
4
Fork
1
Merge medio
5g 8h
PR unite (30g)
4

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.