These tests execute against a live Union tenant (the demo tenant) and are
intentionally excluded from CI and the default pytest run. They are meant for
Union employees to run by hand against an actual tenant, to validate that the
Flyte 2 usage in this repo works end-to-end remotely.
config.yaml targets the demo tenant with
device-flow auth:
admin:
endpoint: dns:///demo.hosted.unionai.cloud
authType: DeviceFlow
image:
builder: remote
task:
org: demo
project: flytesnacks
domain: developmentBecause authType: DeviceFlow is set, there is no separate login command —
flyte.init_from_config() triggers the OAuth2 device flow on the first
authenticated call and prints a URL + code to open in your browser. Subsequent
runs reuse the cached token.
RUN_INTEGRATION=1 pytest tests/integration -m integration -sWithout RUN_INTEGRATION=1 the tests skip, so a plain pytest tests/integration
is safe. (You can pre-authenticate out of band with any authenticated CLI call,
e.g. flyte --config tests/integration/config.yaml get project.)
test_remote_smoke.py— runsremote_tasks.memory_roundtripon the cluster, which writes to and rehydrates aflyte.ai.agents.MemoryStorethrough object storage (the same durable-memory path the production pipelines use). It uses a standalone task env so it does not require thegithub-token/anthropic-api-keysecrets to exist on the cluster.