Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container prepare 2026/11/22 09:47:46 Entrypoint initialization Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container place-scripts 2026/11/22 09:47:46 Decoded script /tekton/scripts/script-0-t4wth 2026/11/22 09:47:46 Decoded script /tekton/scripts/script-1-8t6dm 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-2-zp7k5 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-3-mj6hq 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-4-m2778 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-5-tvgmj 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-7-xfmlw 2026/11/22 09:47:47 Decoded script /tekton/scripts/script-8-mxf6v Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/heimdallr.git version refs/pull/197/head:PR-197@4354a27658eeb2bdd6fd93657af20658669b315f to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/heimdallr * [new ref] refs/pull/197/head -> PR-197 Switched to branch 'PR-197' HEAD is now at 4354a27 fix: consume partner credentials at the auth proxy checked out revision: refs/pull/197/head:PR-197@4354a27658eeb2bdd6fd93657af20658669b315f to dir: source Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:36c947739746e201b13f0a67b9b8b5c39f9178e4,197:4354a27658eeb2bdd6fd93657af20658669b315f:refs/pull/197/head using base branch main and base sha 36c947739746e201b13f0a67b9b8b5c39f9178e4 merging sha: 4354a27658eeb2bdd6fd93657af20658669b315f Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-jx-variables WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-1089084643 in dir /tmp Cloning into '/tmp/jx-git-1089084643'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-1089084643 about to run: git checkout in dir /tmp/jx-git-1089084643 Your branch is up to date with 'origin/main'. export APP_NAME='heimdallr' export BRANCH_NAME='PR-197' export BUILD_NUMBER='7' export DOCKERFILE_PATH='Dockerfile' export DOCKER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export DOCKER_REGISTRY_ORG='greencapitaltrade' export DOMAIN='gc-t.in' about to run: git rev-parse --abbrev-ref HEAD in dir . main export GIT_BRANCH='main' export JENKINS_X_URL='https://dashboard-jx.gc-t.in/greencapitaltrade/heimdallr/PR-197/7' export JX_CHART_REPOSITORY='http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080' export KANIKO_FLAGS='--skip-unused-stages --snapshotMode=redo' export MINK_AS='tekton-bot' version file VERSION does not exist export MINK_IMAGE='417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-197-7-SNAPSHOT' export NAMESPACE_SUB_DOMAIN='-jx.' export PIPELINE_KIND='pullrequest' export PUSH_CONTAINER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export REPO_NAME='heimdallr' export REPO_OWNER='greencapitaltrade' version file VERSION does not exist export VERSION='0.0.0-PR-197-7-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-build-make-linux go: downloading gorm.io/driver/postgres v1.6.0 go: downloading gorm.io/gorm v1.31.1 go: downloading github.com/oschwald/geoip2-golang v1.11.0 go: downloading github.com/alicebob/miniredis/v2 v2.33.0 go: downloading github.com/redis/go-redis/v9 v9.7.0 go: downloading github.com/golang-jwt/jwt/v5 v5.2.0 go: downloading github.com/valyala/fasthttp v1.69.0 go: downloading github.com/jackc/pgx/v5 v5.6.0 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 go: downloading github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 go: downloading github.com/yuin/gopher-lua v1.1.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/andybalholm/brotli v1.2.0 go: downloading github.com/klauspost/compress v1.18.2 go: downloading github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 go: downloading golang.org/x/crypto v0.46.0 go: downloading golang.org/x/text v0.32.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading golang.org/x/sys v0.39.0 go: downloading github.com/jackc/puddle/v2 v2.2.2 go: downloading golang.org/x/sync v0.19.0 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -ldflags '' -o bin/heimdallr . Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-build-make-test go: downloading gorm.io/gorm v1.31.1 go: downloading gorm.io/driver/postgres v1.6.0 go: downloading github.com/oschwald/geoip2-golang v1.11.0 go: downloading github.com/alicebob/miniredis/v2 v2.33.0 go: downloading github.com/redis/go-redis/v9 v9.7.0 go: downloading github.com/stretchr/testify v1.11.1 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/golang-jwt/jwt/v5 v5.2.0 go: downloading github.com/valyala/fasthttp v1.69.0 go: downloading github.com/jackc/pgx/v5 v5.6.0 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 go: downloading github.com/yuin/gopher-lua v1.1.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/davecgh/go-spew v1.1.1 go: downloading github.com/pmezard/go-difflib v1.0.0 go: downloading github.com/klauspost/compress v1.18.2 go: downloading github.com/andybalholm/brotli v1.2.0 go: downloading github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 go: downloading golang.org/x/crypto v0.46.0 go: downloading golang.org/x/text v0.32.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading golang.org/x/sys v0.39.0 go: downloading github.com/jackc/puddle/v2 v2.2.2 go: downloading golang.org/x/sync v0.19.0 === RUN Test_requestHandler Starting POST /v1/generate DEBUG: /v1/generate handler started DEBUG: Device is empty in request body, returning 400 Starting POST /v1/generate DEBUG: Received POST body, length: 46 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 547 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 86.844721ms Starting GET /fury/pe/jaa/raha/hun GET 200 /fury/pe/jaa/raha/hun 404.668µs Starting GET /fury/pe/jaa/raha/hun Invalid token reason token is unverifiable: error while executing keyfunc: unexpected method: HS256 GET 401 /fury/pe/jaa/raha/hun 61.952µs Starting GET /fury/pe/jaa/raha/hun GET 200 /fury/pe/jaa/raha/hun 2.950967ms Starting GET /fury/pe/jaa/raha/hun GET 200 /fury/pe/jaa/raha/hun 2.957818ms Starting POST /v1/generate DEBUG: Received POST body, length: 49 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 555 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 2.869046ms Starting PUT /v1/session PUT 200 /v1/session 88.222µs Starting GET /fury/pe/jaa/raha/hun GET 200 /fury/pe/jaa/raha/hun 4.421615ms Starting GET /fury/pe/jaa/raha/hun GET 200 /fury/pe/jaa/raha/hun 3.441376ms Starting POST /v1/generate DEBUG: Received POST body, length: 54 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 575 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 3.200422ms Starting GET /fury/pe/jaa/raha/hun Expected status code 200 but got 404 GET 200 /fury/pe/jaa/raha/hun 747.825µs --- PASS: Test_requestHandler (0.20s) === RUN TestTokenValidation --- PASS: TestTokenValidation (0.00s) === RUN TestInvalidToken --- PASS: TestInvalidToken (0.00s) === RUN TestStripGctHeaders Stripped 4 spoofed x-gct-* headers: [x-gct-user-id x-gct-org-id x-gct-admin x-gct-malicious] --- PASS: TestStripGctHeaders (0.00s) === RUN TestAuthResponseUsesSignedOrganization Starting POST /v1/generate DEBUG: Received POST body, length: 121 DEBUG: Successfully parsed POST body, keys: 6 DEBUG: /v1/generate handler started DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 651 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 83.65317ms Stripped 4 spoofed x-gct-* headers: [x-gct-user-id x-gct-admin x-gct-org-id x-gct-future-claim] Starting GET /any/protected/route GET 200 /any/protected/route 322.156µs --- PASS: TestAuthResponseUsesSignedOrganization (0.08s) === RUN TestUpstreamRemovalsFollowPublishedHeaders --- PASS: TestUpstreamRemovalsFollowPublishedHeaders (0.00s) === RUN TestLegacyProviderPublishesExistingClaimHeaders --- PASS: TestLegacyProviderPublishesExistingClaimHeaders (0.00s) === RUN TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup Stripped 1 spoofed x-gct-* headers: [x-gct-org-id] Starting GET /protected GET 200 /protected 900.677µs main_test.go:568: Error Trace: /workspace/source/main_test.go:568 Error: Not equal: expected: "x-gct-org-id" actual : "api-secret,x-gct-org-id" Diff: --- Expected +++ Actual @@ -1 +1 @@ -x-gct-org-id +api-secret,x-gct-org-id Test: TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup --- FAIL: TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup (0.01s) === RUN TestHeaderFormatFunction --- PASS: TestHeaderFormatFunction (0.00s) === RUN TestSetNewTokenSetsUpstreamHeaders --- PASS: TestSetNewTokenSetsUpstreamHeaders (0.00s) === RUN TestTokenRefreshSetsUpstreamCookieNotSetCookie Starting GET /any/route GET 200 /any/route 91.749506ms --- PASS: TestTokenRefreshSetsUpstreamCookieNotSetCookie (0.10s) === RUN TestClearAuthorizationCookie --- PASS: TestClearAuthorizationCookie (0.00s) === RUN TestUnauthorizedResponseClearsCookieWhenFromCookie Starting GET /some/protected/route Invalid token reason token is malformed: could not JSON decode header: invalid character '\u008a' looking for beginning of value GET 401 /some/protected/route 44.761µs --- PASS: TestUnauthorizedResponseClearsCookieWhenFromCookie (0.00s) === RUN TestRequestWithOnlyAuthHeaderPassesThrough Starting GET /some/protected/route No Authorization token - passing through to upstream GET 200 /some/protected/route 15.97µs --- PASS: TestRequestWithOnlyAuthHeaderPassesThrough (0.00s) === RUN TestAnonymousAuthResponseRemovesUpstreamIdentityHeaders Stripped 5 spoofed x-gct-* headers: [x-gct-org-id x-gct-name x-gct-future x-gct-future x-gct-app] Starting POST /v2/graphql No Authorization token - passing through to upstream POST 200 /v2/graphql 4.86µs --- PASS: TestAnonymousAuthResponseRemovesUpstreamIdentityHeaders (0.00s) === RUN TestLegacyAuthProviderDoesNotRequestUpstreamRemoval Stripped 2 spoofed x-gct-* headers: [x-gct-org-id x-gct-signature] Starting GET / No Authorization token - passing through to upstream GET 200 / 5.31µs --- PASS: TestLegacyAuthProviderDoesNotRequestUpstreamRemoval (0.00s) === RUN TestDeviceMismatchClearsCookie Starting POST /v1/generate DEBUG: Received POST body, length: 53 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 560 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 4.063959ms Starting GET /some/protected/route Device didn't match GET 401 /some/protected/route 369.327µs --- PASS: TestDeviceMismatchClearsCookie (0.00s) === RUN TestExpiredTokenPastRefreshWindowClearsCookie Starting GET /some/protected/route Token is expired and past refresh window GET 401 /some/protected/route 303.566µs --- PASS: TestExpiredTokenPastRefreshWindowClearsCookie (0.00s) === RUN TestGeoIPHeadersNotSetWhenGPSPresent Starting GET /some/path No Authorization token - passing through to upstream GET 200 /some/path 8.491µs --- PASS: TestGeoIPHeadersNotSetWhenGPSPresent (0.00s) === RUN TestGeoIPHeadersAttemptedWhenNoGPS Starting GET /some/path No Authorization token - passing through to upstream GET 200 /some/path 8.26µs --- PASS: TestGeoIPHeadersAttemptedWhenNoGPS (0.00s) === RUN TestGeoIPNotTriggeredWithoutIP Starting GET /some/path No Authorization token - passing through to upstream GET 200 /some/path 7.761µs --- PASS: TestGeoIPNotTriggeredWithoutIP (0.00s) === RUN TestHMACAPISecret --- PASS: TestHMACAPISecret (0.00s) === RUN TestIPAllowed === RUN TestIPAllowed/exact_match === RUN TestIPAllowed/no_match === RUN TestIPAllowed/empty_allowlist_never_matches === RUN TestIPAllowed/cidr_match === RUN TestIPAllowed/cidr_miss === RUN TestIPAllowed/malformed_entry_ignored,_not_widened === RUN TestIPAllowed/malformed_entry_does_not_hide_a_valid_one === RUN TestIPAllowed/blank_entries_skipped === RUN TestIPAllowed/whitespace_around_entry_tolerated === RUN TestIPAllowed/unparseable_request_ip_denied === RUN TestIPAllowed/ipv6_exact_match === RUN TestIPAllowed/ipv6_cidr_match === RUN TestIPAllowed/v4_not_matched_by_v6_range --- PASS: TestIPAllowed (0.00s) --- PASS: TestIPAllowed/exact_match (0.00s) --- PASS: TestIPAllowed/no_match (0.00s) --- PASS: TestIPAllowed/empty_allowlist_never_matches (0.00s) --- PASS: TestIPAllowed/cidr_match (0.00s) --- PASS: TestIPAllowed/cidr_miss (0.00s) --- PASS: TestIPAllowed/malformed_entry_ignored,_not_widened (0.00s) --- PASS: TestIPAllowed/malformed_entry_does_not_hide_a_valid_one (0.00s) --- PASS: TestIPAllowed/blank_entries_skipped (0.00s) --- PASS: TestIPAllowed/whitespace_around_entry_tolerated (0.00s) --- PASS: TestIPAllowed/unparseable_request_ip_denied (0.00s) --- PASS: TestIPAllowed/ipv6_exact_match (0.00s) --- PASS: TestIPAllowed/ipv6_cidr_match (0.00s) --- PASS: TestIPAllowed/v4_not_matched_by_v6_range (0.00s) === RUN TestPartnerSourceIP === RUN TestPartnerSourceIP/reads_x-envoy-external-address === RUN TestPartnerSourceIP/ignores_caller-supplied_x-forwarded-for === RUN TestPartnerSourceIP/strips_port === RUN TestPartnerSourceIP/strips_ipv6_zone === RUN TestPartnerSourceIP/missing_header === RUN TestPartnerSourceIP/garbage_header --- PASS: TestPartnerSourceIP (0.00s) --- PASS: TestPartnerSourceIP/reads_x-envoy-external-address (0.00s) --- PASS: TestPartnerSourceIP/ignores_caller-supplied_x-forwarded-for (0.00s) --- PASS: TestPartnerSourceIP/strips_port (0.00s) --- PASS: TestPartnerSourceIP/strips_ipv6_zone (0.00s) --- PASS: TestPartnerSourceIP/missing_header (0.00s) --- PASS: TestPartnerSourceIP/garbage_header (0.00s) === RUN TestApiSecretUsesExplicitOrganizationMapping partner_auth_test.go:151: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretUsesExplicitOrganizationMapping (0.00s) === RUN TestPackageClientsCanShareAnOrganization partner_auth_test.go:170: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestPackageClientsCanShareAnOrganization (0.00s) === RUN TestApiSecretAuthentication partner_auth_test.go:212: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretAuthentication (0.00s) === RUN TestAuthorizationCookieTakesPrecedenceOverAPISecret partner_auth_test.go:247: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestAuthorizationCookieTakesPrecedenceOverAPISecret (0.00s) === RUN TestApiSecretIPAllowlistEnforcement partner_auth_test.go:290: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretIPAllowlistEnforcement (0.00s) === RUN TestPepperedSecretLookup partner_auth_test.go:359: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestPepperedSecretLookup (0.00s) === RUN TestSecretHashingMigrationIsIdempotent partner_auth_test.go:396: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestSecretHashingMigrationIsIdempotent (0.00s) === RUN TestRequestStartLogOmitsHeaderValues --- PASS: TestRequestStartLogOmitsHeaderValues (0.00s) FAIL FAIL github.com/galaxycard/heimdallr 0.493s === RUN TestGeoIPDownloadResources --- PASS: TestGeoIPDownloadResources (0.00s) === RUN TestGeoIPDownloadUsesConfigurableResources --- PASS: TestGeoIPDownloadUsesConfigurableResources (0.00s) === RUN TestPreviewPromotionMemoryBound --- PASS: TestPreviewPromotionMemoryBound (0.00s) PASS ok github.com/galaxycard/heimdallr/charts/heimdallr 0.094s ? github.com/galaxycard/heimdallr/database [no test files] ? github.com/galaxycard/heimdallr/database/migrations [no test files] ? github.com/galaxycard/heimdallr/database/models [no test files] === RUN TestLookupWithoutInit --- PASS: TestLookupWithoutInit (0.00s) === RUN TestLookupInvalidIP --- PASS: TestLookupInvalidIP (0.00s) === RUN TestLookupEmptyIP --- PASS: TestLookupEmptyIP (0.00s) === RUN TestLookupPrivateIP --- PASS: TestLookupPrivateIP (0.00s) PASS ok github.com/galaxycard/heimdallr/geoip 0.005s ? github.com/galaxycard/heimdallr/redis [no test files] FAIL Showing logs for build greencapitaltrade/heimdallr/pr-197 #7 stage from-build-pack and container step-build-post-test-results commented on pull request #197 on repository greencapitaltrade/heimdallr  Pipeline failed on stage 'from-build-pack' : container 'step-build-post-test-results'. The execution of the pipeline has stopped.