Skip to content

Use git to find the repo root - #1157

Open
Tim Hockin (thockin) wants to merge 1 commit into
agent-substrate:mainfrom
thockin:shell_ROOT_detection
Open

Use git to find the repo root#1157
Tim Hockin (thockin) wants to merge 1 commit into
agent-substrate:mainfrom
thockin:shell_ROOT_detection

Conversation

@thockin

Copy link
Copy Markdown
Collaborator

Most scripts already do this.

Most scripts already do this.
@thockin Tim Hockin (thockin) added the kind/cleanup Small fixes that are not bugs, for example a typo in a code comment label Aug 24, 2026
@aojea

Copy link
Copy Markdown

/lgtm

code is unrelated to the test failure

=== RUN TestActorIdentity_AfterRestore_IsOwnID_NotGolden
identity_test.go:82: Running command with custom env: /home/runner/work/substrate/substrate/hack/run-tool.sh ko apply -f /tmp/TestActorIdentity_AfterRestore_IsOwnID_NotGolden3277868025/001/probe.yaml -- --context=kind-kind
2026/08/24 02:56:39 Using base gcr.io/distroless/static-debian13@sha256:f2ea2709ac8db56323cbd7d014277f32cb572d9ea124b0076f7aafe5980678fe for github.com/agent-substrate/substrate/internal/e2e/fixtures/probe
2026/08/24 02:56:39 Using base gcr.io/distroless/static-debian13@sha256:f2ea2709ac8db56323cbd7d014277f32cb572d9ea124b0076f7aafe5980678fe for github.com/agent-substrate/substrate/cmd/ateom-gvisor
2026/08/24 02:56:40 git doesn't contain any tags. Tag info will not be available
2026/08/24 02:56:40 Building github.com/agent-substrate/substrate/cmd/ateom-gvisor for linux/amd64
2026/08/24 02:56:41 git doesn't contain any tags. Tag info will not be available
2026/08/24 02:56:41 Building github.com/agent-substrate/substrate/cmd/ateom-gvisor for linux/arm64/v8
2026/08/24 02:56:41 git doesn't contain any tags. Tag info will not be available
2026/08/24 02:56:41 Building github.com/agent-substrate/substrate/internal/e2e/fixtures/probe for linux/arm64/v8
2026/08/24 02:56:41 git doesn't contain any tags. Tag info will not be available
2026/08/24 02:56:41 Building github.com/agent-substrate/substrate/internal/e2e/fixtures/probe for linux/amd64
2026/08/24 02:57:59 Publishing localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:latest
2026/08/24 02:57:59 pushed blob: sha256:42aac0c8151e10ab4b5c820418c9cf7e3526965981c7c263626d835f56a853d0
2026/08/24 02:57:59 pushed blob: sha256:ea37f5c15f6cae5f0a0b6c0116689dbf5f8d8ae6bc779b21dc197beb38235c78
2026/08/24 02:57:59 pushed blob: sha256:42777659fe8d8e56cc10378d19d2863f2bf68efd650c894c540d73b73b4fe10f
2026/08/24 02:57:59 pushed blob: sha256:d6a9c501acb8539d214f925ba168855b0b896e64025977e5caff2ad643750413
2026/08/24 02:57:59 pushed blob: sha256:42d4a1c656bf32acc9829e98f752536f46b9f07543ea3007411789f919c13975
2026/08/24 02:57:59 pushed blob: sha256:1a27f84e985d75e10ca690c464699ce9a7e672d02d0d494f31ef905f790ddd91
2026/08/24 02:57:59 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-3689e8c77bfecb3b01fb9c58332862bb5e6f23dc93bee6d0bf83c2305b01d41a.sbom: digest: sha256:a63125e148741fbd9346b6b6e8b491035eb4c659ab835619dc2d147c8a769649 size: 373
2026/08/24 02:57:59 Published SBOM localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-3689e8c77bfecb3b01fb9c58332862bb5e6f23dc93bee6d0bf83c2305b01d41a.sbom
2026/08/24 02:57:59 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-4cddf46cc03d418167102937cb23bf83826fcfdb0c574f6aec082775d905090d.sbom: digest: sha256:f126f827b7ea1b476a259b9520533c610c00adfc22a051820d9a97fa595f2dbb size: 373
2026/08/24 02:57:59 Published SBOM localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-4cddf46cc03d418167102937cb23bf83826fcfdb0c574f6aec082775d905090d.sbom
2026/08/24 02:57:59 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-73037552c78645374e4cd73704c2f2dcf438025fa54c6db9c6ded8d0598e46aa.sbom: digest: sha256:ebde1f409fe14863d42be33018b6e67c3fe40ac544a4c8a53436cbb923a3c202 size: 373
2026/08/24 02:57:59 Published SBOM localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:sha256-73037552c78645374e4cd73704c2f2dcf438025fa54c6db9c6ded8d0598e46aa.sbom
2026/08/24 02:57:59 pushed blob: sha256:7e92c448ce8a15b2a7ca2f4abe26bfc62bd92ec29916a52e28fbbe9a739f5c04
2026/08/24 02:57:59 pushed blob: sha256:99ba982a9142213c751a1709dcf088e63d8601f03b3f211bae037be698fef270
2026/08/24 02:57:59 pushed blob: sha256:c172f21841dff4c8cf45cde46589c1c2616cefe7e819965e92e6d3475c428aa0
2026/08/24 02:57:59 pushed blob: sha256:99515e7b4d35e0652d3b0fde571b6ec269222ecacc506f026e1758d6261e9109
2026/08/24 02:57:59 pushed blob: sha256:2780920e5dbfbe103d03a583ed75345306e572ec5a48cb10361f046767d9f29a
2026/08/24 02:57:59 pushed blob: sha256:1eed391ea893e6015bf4ce4ed366909975d2acdbe907670919236a8d18ea6b07
2026/08/24 02:57:59 pushed blob: sha256:7c12895b777bcaa8ccae0605b4de635b68fc32d60fa08f421dc3818bf55ee212
2026/08/24 02:57:59 pushed blob: sha256:d6b1b89eccacc15c2420b2776d72c1dae334a00805ed9af54bf2f71e4d536f28
2026/08/24 02:57:59 pushed blob: sha256:3214acf345c0cc6bbdb56b698a41ccdefc624a09d6beb0d38b5de0b2303ecaf4
2026/08/24 02:57:59 pushed blob: sha256:dd64bf2dd177757451a98fcdc999a339c35dee5d9872d8f4dc69c8f3c4dd0112
2026/08/24 02:57:59 pushed blob: sha256:b839dfae01f66e15c6a8b63520557ed315bdfe036342fa7a0c537259f10d7a9a
2026/08/24 02:57:59 pushed blob: sha256:52630fc75a18675c530ed9eba5f55eca09b03e91bd5bc15307918bbc1a7e7296
2026/08/24 02:57:59 pushed blob: sha256:250c06f7c38e52dc77e5c7586c3e40280dc7ff9bb9007c396e06d96736cf8542
2026/08/24 02:57:59 pushed blob: sha256:87cb5beac08bc7619d95f89717b27b361a8d98e3a8da0eb068a3841c5bd31fd0
2026/08/24 02:57:59 pushed blob: sha256:3b499d5706e8bf9b83eacd4fae5ac8116c045999110582434ee7c6549b79f1a4
2026/08/24 02:57:59 pushed blob: sha256:ebddc55facdc6b1f7e0f30816a5fc7cc62f38abdf76c0a8b0a0ce52085754795
2026/08/24 02:58:00 pushed blob: sha256:3ebe8fae5944985dd2129abcd6f229962c9701352b8b518034344c6c5ff99f5e
2026/08/24 02:58:00 pushed blob: sha256:c4bc6f35ff5e25aa1afe7a148a0b6f10a760f54e298f86a4a4d44b91f1afbfab
2026/08/24 02:58:00 pushed blob: sha256:6f5ad2d6f16b647344eab1041ae4faf07cd1dc9f8789d53716917ac8738bb46a
2026/08/24 02:58:00 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7@sha256:73037552c78645374e4cd73704c2f2dcf438025fa54c6db9c6ded8d0598e46aa: digest: sha256:73037552c78645374e4cd73704c2f2dcf438025fa54c6db9c6ded8d0598e46aa size: 2871
2026/08/24 02:58:00 pushed blob: sha256:6ed1ef0cb1159b9c93a24ceb88b987c6b3a8adff7160940c7c5e6bfc001f1766
2026/08/24 02:58:00 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7@sha256:3689e8c77bfecb3b01fb9c58332862bb5e6f23dc93bee6d0bf83c2305b01d41a: digest: sha256:3689e8c77bfecb3b01fb9c58332862bb5e6f23dc93bee6d0bf83c2305b01d41a size: 2871
2026/08/24 02:58:00 localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7:latest: digest: sha256:4cddf46cc03d418167102937cb23bf83826fcfdb0c574f6aec082775d905090d size: 833
2026/08/24 02:58:00 Published localhost:5001/probe-51fb98b65dc7d8d8d67946123a73dbb7@sha256:4cddf46cc03d418167102937cb23bf83826fcfdb0c574f6aec082775d905090d
2026/08/24 02:58:56 Publishing localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:latest
2026/08/24 02:58:56 existing blob: sha256:99ba982a9142213c751a1709dcf088e63d8601f03b3f211bae037be698fef270
2026/08/24 02:58:56 existing blob: sha256:c172f21841dff4c8cf45cde46589c1c2616cefe7e819965e92e6d3475c428aa0
2026/08/24 02:58:56 existing blob: sha256:99515e7b4d35e0652d3b0fde571b6ec269222ecacc506f026e1758d6261e9109
2026/08/24 02:58:56 existing blob: sha256:d6b1b89eccacc15c2420b2776d72c1dae334a00805ed9af54bf2f71e4d536f28
2026/08/24 02:58:56 existing blob: sha256:2780920e5dbfbe103d03a583ed75345306e572ec5a48cb10361f046767d9f29a
2026/08/24 02:58:56 existing blob: sha256:3214acf345c0cc6bbdb56b698a41ccdefc624a09d6beb0d38b5de0b2303ecaf4
2026/08/24 02:58:56 existing blob: sha256:7c12895b777bcaa8ccae0605b4de635b68fc32d60fa08f421dc3818bf55ee212
2026/08/24 02:58:56 existing blob: sha256:1eed391ea893e6015bf4ce4ed366909975d2acdbe907670919236a8d18ea6b07
2026/08/24 02:58:56 pushed blob: sha256:bb1fb26ea9f4a9267dc900a8e2dc7e36673e6319c9dcefbc739435c321fb8b6b
2026/08/24 02:58:56 pushed blob: sha256:c000eb0a0e7f5e8799cc559c22eb29ea405197884dc01e29283dd7fd3adfd60f
2026/08/24 02:58:56 existing blob: sha256:ebddc55facdc6b1f7e0f30816a5fc7cc62f38abdf76c0a8b0a0ce52085754795
2026/08/24 02:58:56 pushed blob: sha256:04e75f21932dd0a9c1406222ececedb4e3618bac570d7988d142eb9efbb68394
2026/08/24 02:58:56 pushed blob: sha256:01c593f6d21b030926d2fc349820960d50f619c0aa1a9492bdc86bc113e98da6
2026/08/24 02:58:56 existing blob: sha256:b839dfae01f66e15c6a8b63520557ed315bdfe036342fa7a0c537259f10d7a9a
2026/08/24 02:58:56 existing blob: sha256:52630fc75a18675c530ed9eba5f55eca09b03e91bd5bc15307918bbc1a7e7296
2026/08/24 02:58:56 existing blob: sha256:c4bc6f35ff5e25aa1afe7a148a0b6f10a760f54e298f86a4a4d44b91f1afbfab
2026/08/24 02:58:56 existing blob: sha256:dd64bf2dd177757451a98fcdc999a339c35dee5d9872d8f4dc69c8f3c4dd0112
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-f84b70a77aef7271b48f71f552df6526d8e8309d77a93493a2f4f93cfd2808b5.sbom: digest: sha256:d2b58b16ce247fcd8ca8f5d349fedb028b1cd72df721f7c4248186f1d7f10c3f size: 374
2026/08/24 02:58:56 Published SBOM localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-f84b70a77aef7271b48f71f552df6526d8e8309d77a93493a2f4f93cfd2808b5.sbom
2026/08/24 02:58:56 existing blob: sha256:250c06f7c38e52dc77e5c7586c3e40280dc7ff9bb9007c396e06d96736cf8542
2026/08/24 02:58:56 pushed blob: sha256:12e35a896ff09403c0f932710e56c9fdf8362890e77905e664e636a5c76c573c
2026/08/24 02:58:56 pushed blob: sha256:45a89f8f5a5dc3bf99a24d00979b10efd0a5a33d8515418b2574a17174585ef1
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-d9939cdb7b6891101ac040867e5d6f25a4b9efe68f1a37cf9c5eb4de96ada67d.sbom: digest: sha256:2e964ec44e1eee65f3956f9033edcedc7933ee3341e56cbe870768782238d917 size: 373
2026/08/24 02:58:56 Published SBOM localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-d9939cdb7b6891101ac040867e5d6f25a4b9efe68f1a37cf9c5eb4de96ada67d.sbom
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-6268103b481803e753fdb365875e4bb101220967b04d465304b58ff6290f02ca.sbom: digest: sha256:a1e9ef0142173d2831ffe0e83c17d351edf2ec88375e971c8df64b2ab49121e5 size: 374
2026/08/24 02:58:56 Published SBOM localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:sha256-6268103b481803e753fdb365875e4bb101220967b04d465304b58ff6290f02ca.sbom
2026/08/24 02:58:56 pushed blob: sha256:2e3087fc8b6d437ce2328b40be11f118339194c44dceed29d0b27899c3288970
2026/08/24 02:58:56 pushed blob: sha256:c13dd64fa176dff21b54d7401b3c2eb61164354b25dbad0b0d1953f00a5ba598
2026/08/24 02:58:56 pushed blob: sha256:dca59650eeccfa75b9eff3f4b99d4b38a1ccfe5c2ded36f7f2893934ec292732
2026/08/24 02:58:56 pushed blob: sha256:6ba8628175e356818ce3a9bd8035ec40dcf266d20a411f5bf87adacfd4fc76b4
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d@sha256:6268103b481803e753fdb365875e4bb101220967b04d465304b58ff6290f02ca: digest: sha256:6268103b481803e753fdb365875e4bb101220967b04d465304b58ff6290f02ca size: 2872
2026/08/24 02:58:56 pushed blob: sha256:6ed1ef0cb1159b9c93a24ceb88b987c6b3a8adff7160940c7c5e6bfc001f1766
2026/08/24 02:58:56 pushed blob: sha256:7e92c448ce8a15b2a7ca2f4abe26bfc62bd92ec29916a52e28fbbe9a739f5c04
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d@sha256:f84b70a77aef7271b48f71f552df6526d8e8309d77a93493a2f4f93cfd2808b5: digest: sha256:f84b70a77aef7271b48f71f552df6526d8e8309d77a93493a2f4f93cfd2808b5 size: 2872
2026/08/24 02:58:56 localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d:latest: digest: sha256:d9939cdb7b6891101ac040867e5d6f25a4b9efe68f1a37cf9c5eb4de96ada67d size: 833
2026/08/24 02:58:56 Published localhost:5001/ateom-gvisor-715889664656de67e44382a8d6ab981d@sha256:d9939cdb7b6891101ac040867e5d6f25a4b9efe68f1a37cf9c5eb4de96ada67d
namespace/ate-e2e-probe-identity created
workerpool.ate.dev/probe created
actortemplate.ate.dev/probe created
identity_test.go:83: probe ActorTemplate ready, golden=ad1a9065-11be-46c1-9a06-8ace7d76f257
identity_test.go:168: ResumeActor "probe-alpha" (after suspend): rpc error: code = Internal desc = while starting "probe" application container: while running runsc restore: exit status 128
identity_test.go:263: cleanup: DeleteActor "probe-alpha" failed, actor leaked (remove with: kubectl ate delete actor probe-alpha -a ate-e2e-probe-identity): rpc error: code = FailedPrecondition desc = Actor ate-e2e-probe-identity/probe-alpha is not in a deletable state (state: ACTOR_STATE_RESUMING)
probe.go:70: Running command: kubectl --context=kind-kind delete --ignore-not-found -f /tmp/TestActorIdentity_AfterRestore_IsOwnID_NotGolden3277868025/001/probe.yaml
namespace "ate-e2e-probe-identity" deleted
workerpool.ate.dev "probe" deleted from ate-e2e-probe-identity namespace
actortemplate.ate.dev "probe" deleted from ate-e2e-probe-identity namespace
--- FAIL: TestActorIdentity_AfterRestore_IsOwnID_NotGolden (193.52s)
FAIL
FAIL github.com/agent-substrate/substrate/internal/e2e/suites/identity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants