I have a pipeline that after calling many functions reaches the point below. I find that the first terminal is not the same as the second one through --interactive when integration tests fail:
test_container = (frontend_with_env
.with_service_binding('proxy', proxy_service)
.with_service_binding('backend', backend_service)
).terminal()
return await test_container.with_exec(["pnpm", "test:integration"]).stderr()
I can not curl proxy or backend in the second one. The host names and working directory are also different. In the latter terminal, the hostname is invariably "dagger".