Diff of the two buildlogs: -- --- b1/build.log 2024-12-24 18:37:49.612560629 +0000 +++ b2/build.log 2024-12-24 18:39:36.007726756 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Dec 24 06:36:37 -12 2024 -I: pbuilder-time-stamp: 1735065397 +I: Current time: Tue Jan 27 15:00:51 +14 2026 +I: pbuilder-time-stamp: 1769475651 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -36,52 +36,84 @@ dpkg-source: info: applying 014-switch-webauthn-library.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3869908/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 27 01:01 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='743799f125ca4740967b1f768583c8e3' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3869908' - PS1='# ' - PS2='> ' + INVOCATION_ID=e74f9cecc3994bf2be541821c71ba2b4 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3546757 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Hpwg8cf5/pbuilderrc_a3A5 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Hpwg8cf5/b1 --logfile b1/build.log golang-github-canonical-candid_1.12.3-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Hpwg8cf5/pbuilderrc_GUR2 --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Hpwg8cf5/b2 --logfile b2/build.log golang-github-canonical-candid_1.12.3-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3869908/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -387,7 +419,7 @@ Get: 182 http://deb.debian.org/debian unstable/main arm64 golang-github-mwitkow-go-conntrack-dev all 0.0~git20190716.2f06839-3 [14.6 kB] Get: 183 http://deb.debian.org/debian unstable/main arm64 golang-gopkg-goose.v1-dev all 0.0~git20170406.3228e4f-4 [97.8 kB] Get: 184 http://deb.debian.org/debian unstable/main arm64 golang-gopkg-natefinch-lumberjack.v2-dev all 2.1-2 [13.1 kB] -Fetched 143 MB in 1s (129 MB/s) +Fetched 143 MB in 1s (149 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20096 files and directories currently installed.) @@ -1138,7 +1170,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-canonical-candid-1.12.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-canonical-candid_1.12.3-1_source.changes +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-canonical-candid-1.12.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-canonical-candid_1.12.3-1_source.changes dpkg-buildpackage: info: source package golang-github-canonical-candid dpkg-buildpackage: info: source version 1.12.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1171,27 +1207,27 @@ --- PASS: TestServer/TestNewServerWithVersions (0.01s) --- PASS: TestServer/TestVersions (0.00s) PASS -ok github.com/canonical/candid 0.060s +ok github.com/canonical/candid 0.072s === RUN TestIdentityClient --- PASS: TestIdentityClient (0.03s) === RUN TestIdentityClientWithDomainStrip --- PASS: TestIdentityClientWithDomainStrip (0.02s) === RUN TestIdentityClientWithDomainStripNoDomains ---- PASS: TestIdentityClientWithDomainStripNoDomains (0.02s) +--- PASS: TestIdentityClientWithDomainStripNoDomains (0.03s) === RUN TestPermChecker ---- PASS: TestPermChecker (0.03s) +--- PASS: TestPermChecker (0.04s) === RUN TestGroupCache ---- PASS: TestGroupCache (0.02s) +--- PASS: TestGroupCache (0.03s) PASS -ok github.com/canonical/candid/candidclient 0.168s +ok github.com/canonical/candid/candidclient 0.243s === RUN TestRedirectURL --- PASS: TestRedirectURL (0.00s) === RUN TestInteractor ---- PASS: TestInteractor (0.00s) +--- PASS: TestInteractor (0.01s) === RUN TestParseLoginResult --- PASS: TestParseLoginResult (0.00s) PASS -ok github.com/canonical/candid/candidclient/redirect 0.050s +ok github.com/canonical/candid/candidclient/redirect 0.068s === RUN TestClient === RUN TestClient/TestAcquireDischarge === RUN TestClient/TestAcquireDischargeError @@ -1202,8 +1238,8 @@ === RUN TestClient/TestVisitor === RUN TestClient/TestVisitorFunctionError === RUN TestClient/TestVisitorMethodNotSupported ---- PASS: TestClient (0.02s) - --- PASS: TestClient/TestAcquireDischarge (0.00s) +--- PASS: TestClient (0.01s) + --- PASS: TestClient/TestAcquireDischarge (0.01s) --- PASS: TestClient/TestAcquireDischargeError (0.00s) --- PASS: TestClient/TestDischargeAll (0.00s) --- PASS: TestClient/TestDischargeAllError (0.00s) @@ -1221,7 +1257,7 @@ === RUN TestUnmarshalUSSOMacaroonBadBinary --- PASS: TestUnmarshalUSSOMacaroonBadBinary (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussodischarge 0.056s +ok github.com/canonical/candid/candidclient/ussodischarge 0.072s === RUN TestPutGetToken --- PASS: TestPutGetToken (0.00s) === RUN TestReadInvalidToken @@ -1247,18 +1283,18 @@ === RUN TestAuthenticatedRequestError --- PASS: TestAuthenticatedRequestError (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussologin 0.048s +ok github.com/canonical/candid/candidclient/ussologin 0.092s ? github.com/canonical/candid/cmd/candid [no test files] === RUN TestDischarge --- PASS: TestDischarge (0.03s) === RUN TestDischargeDefaultUser ---- PASS: TestDischargeDefaultUser (0.03s) +--- PASS: TestDischargeDefaultUser (0.01s) === RUN TestGroups ---- PASS: TestGroups (0.03s) +--- PASS: TestGroups (0.01s) === RUN TestAddUserWithExistingGroups --- PASS: TestAddUserWithExistingGroups (0.02s) PASS -ok github.com/canonical/candid/candidtest 0.139s +ok github.com/canonical/candid/candidtest 0.152s ? github.com/canonical/candid/cmd/candidsrv [no test files] ? github.com/canonical/candid/cmd/migrate-db [no test files] ? github.com/canonical/candid/cmd/migrate-db/internal/mongodoc [no test files] @@ -1274,14 +1310,14 @@ === RUN TestACL/TestACLShowInvalid === RUN TestACL/TestACLShowNoACL === RUN TestACL/TestACLShowTwoACLs ---- PASS: TestACL (0.09s) +--- PASS: TestACL (0.08s) --- PASS: TestACL/TestACLGrant (0.01s) --- PASS: TestACL/TestACLGrantInvalid (0.01s) --- PASS: TestACL/TestACLGrantNoArguments (0.00s) --- PASS: TestACL/TestACLRevoke (0.01s) - --- PASS: TestACL/TestACLRevokeInvalid (0.02s) + --- PASS: TestACL/TestACLRevokeInvalid (0.01s) --- PASS: TestACL/TestACLRevokeNoArguments (0.00s) - --- PASS: TestACL/TestACLShow (0.01s) + --- PASS: TestACL/TestACLShow (0.00s) --- PASS: TestACL/TestACLShowInvalid (0.01s) --- PASS: TestACL/TestACLShowNoACL (0.00s) --- PASS: TestACL/TestACLShowTwoACLs (0.00s) @@ -1292,7 +1328,7 @@ === RUN TestAddGroup/TestAddGroupForEmailNotFound === RUN TestAddGroup/TestAddGroupNoUser === RUN TestAddGroup/TestAddGroupUserAndEmail ---- PASS: TestAddGroup (0.04s) +--- PASS: TestAddGroup (0.05s) --- PASS: TestAddGroup/TestAddGroup (0.01s) --- PASS: TestAddGroup/TestAddGroupForEmail (0.01s) --- PASS: TestAddGroup/TestAddGroupForEmailMultipleUsers (0.01s) @@ -1301,10 +1337,10 @@ --- PASS: TestAddGroup/TestAddGroupUserAndEmail (0.00s) === RUN TestClearMFACredentials === RUN TestClearMFACredentials/TestClearMFACredentials ---- PASS: TestClearMFACredentials (0.01s) - --- PASS: TestClearMFACredentials/TestClearMFACredentials (0.01s) +--- PASS: TestClearMFACredentials (0.00s) + --- PASS: TestClearMFACredentials/TestClearMFACredentials (0.00s) === RUN TestLoadCACerts ---- PASS: TestLoadCACerts (0.02s) +--- PASS: TestLoadCACerts (0.04s) === RUN TestCreateAgent === RUN TestCreateAgent/TestCreateAgentWithAdminFlag === RUN TestCreateAgent/TestCreateAgentWithExistingAgentsFile @@ -1315,13 +1351,13 @@ create-agent_test.go:53: test 0: agent file and agent key specified together create-agent_test.go:53: test 1: empty public key create-agent_test.go:53: test 2: invalid public key ---- PASS: TestCreateAgent (0.05s) - --- PASS: TestCreateAgent/TestCreateAgentWithAdminFlag (0.00s) +--- PASS: TestCreateAgent (0.07s) + --- PASS: TestCreateAgent/TestCreateAgentWithAdminFlag (0.01s) --- PASS: TestCreateAgent/TestCreateAgentWithExistingAgentsFile (0.01s) - --- PASS: TestCreateAgent/TestCreateAgentWithGeneratedKeyAndAgentFileNotSpecified (0.01s) + --- PASS: TestCreateAgent/TestCreateAgentWithGeneratedKeyAndAgentFileNotSpecified (0.03s) --- PASS: TestCreateAgent/TestCreateAgentWithNonExistentAgentsFileSpecified (0.01s) --- PASS: TestCreateAgent/TestCreateAgentWithParentFlag (0.01s) - --- PASS: TestCreateAgent/TestUsage (0.00s) + --- PASS: TestCreateAgent/TestUsage (0.01s) === RUN TestFind === RUN TestFind/TestFindEmail === RUN TestFind/TestFindEmailNotFound @@ -1330,24 +1366,24 @@ === RUN TestFind/TestFindNoParameters === RUN TestFind/TestFindWithEmail === RUN TestFind/TestFindWithEmailAndGravatar ---- PASS: TestFind (0.08s) - --- PASS: TestFind/TestFindEmail (0.01s) +--- PASS: TestFind (0.12s) + --- PASS: TestFind/TestFindEmail (0.02s) --- PASS: TestFind/TestFindEmailNotFound (0.01s) --- PASS: TestFind/TestFindLastDischargeTime (0.01s) - --- PASS: TestFind/TestFindLastLoginTime (0.01s) - --- PASS: TestFind/TestFindNoParameters (0.01s) - --- PASS: TestFind/TestFindWithEmail (0.02s) - --- PASS: TestFind/TestFindWithEmailAndGravatar (0.01s) + --- PASS: TestFind/TestFindLastLoginTime (0.03s) + --- PASS: TestFind/TestFindNoParameters (0.02s) + --- PASS: TestFind/TestFindWithEmail (0.01s) + --- PASS: TestFind/TestFindWithEmailAndGravatar (0.02s) === RUN TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroupForEmail === RUN TestRemoveGroup/TestRemoveGroupForEmailNotFound === RUN TestRemoveGroup/TestRemoveGroupNoUser ---- PASS: TestRemoveGroup (0.04s) +--- PASS: TestRemoveGroup (0.05s) --- PASS: TestRemoveGroup/TestRemoveGroup (0.01s) --- PASS: TestRemoveGroup/TestRemoveGroupForEmail (0.01s) - --- PASS: TestRemoveGroup/TestRemoveGroupForEmailNotFound (0.01s) - --- PASS: TestRemoveGroup/TestRemoveGroupNoUser (0.00s) + --- PASS: TestRemoveGroup/TestRemoveGroupForEmailNotFound (0.02s) + --- PASS: TestRemoveGroup/TestRemoveGroupNoUser (0.01s) === RUN TestShow === RUN TestShow/TestShowAgentUser === RUN TestShow/TestShowEmail @@ -1364,12 +1400,12 @@ --- PASS: TestShow/TestShowEmailNotFound (0.01s) --- PASS: TestShow/TestShowNoParameters (0.00s) --- PASS: TestShow/TestShowUser (0.01s) - --- PASS: TestShow/TestShowUserError (0.01s) + --- PASS: TestShow/TestShowUserError (0.00s) --- PASS: TestShow/TestShowUserJSON (0.01s) --- PASS: TestShow/TestShowUserWithAgentEnv (0.01s) --- PASS: TestShow/TestShowZeroValues (0.01s) PASS -ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.448s +ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.588s === RUN TestSplitStoreSpecification migrate_test.go:51: 0. postgres:host=/var/run/postgresql migrate_test.go:51: 1. legacy: @@ -1388,10 +1424,10 @@ === RUN TestCopySrcError --- PASS: TestCopySrcError (0.00s) === RUN TestCopyDstError -2024/12/24 18:37:32 error checking destination store: test error +2026/01/27 01:02:17 error checking destination store: test error --- PASS: TestCopyDstError (0.00s) PASS -ok github.com/canonical/candid/cmd/migrate-db/internal 0.035s +ok github.com/canonical/candid/cmd/migrate-db/internal 0.080s === RUN TestRead --- PASS: TestRead (0.00s) === RUN TestReadErrorNotFound @@ -1403,19 +1439,19 @@ === RUN TestUnrecognisedIDP --- PASS: TestUnrecognisedIDP (0.00s) PASS -ok github.com/canonical/candid/config 0.038s +ok github.com/canonical/candid/config 0.084s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id === RUN TestConfig/no_client-secret === RUN TestConfig/no_issuer ---- PASS: TestConfig (0.00s) +--- PASS: TestConfig (0.01s) --- PASS: TestConfig/good_config (0.00s) --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) --- PASS: TestConfig/no_issuer (0.00s) PASS -ok github.com/canonical/candid/idp/adfs 0.021s +ok github.com/canonical/candid/idp/adfs 0.026s === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestName @@ -1433,7 +1469,7 @@ === RUN TestInitProducesError --- PASS: TestInitProducesError (0.00s) PASS -ok github.com/canonical/candid/idp/agent 0.035s +ok github.com/canonical/candid/idp/agent 0.047s ? github.com/canonical/candid/idp/idptest [no test files] ? github.com/canonical/candid/idp/idputil [no test files] ? github.com/canonical/candid/idp/idputil/msgraph [no test files] @@ -1446,7 +1482,7 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/azure 0.042s +ok github.com/canonical/candid/idp/azure 0.032s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id @@ -1456,7 +1492,7 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/google 0.037s +ok github.com/canonical/candid/idp/google 0.035s === RUN TestRoundTrip --- PASS: TestRoundTrip (0.00s) === RUN TestDecodeBadBase64 @@ -1480,7 +1516,7 @@ === RUN TestCookieValidationError --- PASS: TestCookieValidationError (0.00s) PASS -ok github.com/canonical/candid/idp/idputil/secret 0.033s +ok github.com/canonical/candid/idp/idputil/secret 0.049s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/another_good_config @@ -1492,33 +1528,33 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_keycloak-realm (0.00s) PASS -ok github.com/canonical/candid/idp/keycloak 0.026s +ok github.com/canonical/candid/idp/keycloak 0.040s ? github.com/canonical/candid/idp/keystone/internal/mockkeystone [no test files] === RUN TestDischarge === RUN TestDischarge/TestFormDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"form:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.December, 24, 18, 37, 33, 972263735, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x4000033630), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"form:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2026, time.January, 27, 1, 2, 20, 17263819, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x4000033130), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestDischarge/TestInteractiveDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginRequest{Route:httprequest.Route{}, Domain:"", DischargeID:"f503fc0310f9a11121c99af2167c824386c0018e709887d8342542f6382a9a12ID"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.redirectLoginRequest{Route:httprequest.Route{}, Domain:"", ReturnTo:"http://127.0.0.1:38187/login-complete", State:"aWZg2yzXuiD-Sqv7wY1MiHHCHkCkrCEUYKnuCuX46jg"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"aWZg2yzXuiD-Sqv7wY1MiHHCHkCkrCEUYKnuCuX46jg", Code:"SJkJS9X_u8lGjEDOfJIOivCpVH74fBzFJV2lG0HcA3s", ErrorCode:"", Error:""} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginRequest{Route:httprequest.Route{}, Domain:"", DischargeID:"9a8045fd2e3abc16901fc496877a476d684b3dfe8d6a8b07ed9b424d96382f05ID"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.redirectLoginRequest{Route:httprequest.Route{}, Domain:"", ReturnTo:"http://127.0.0.1:35033/login-complete", State:"_4u1WbmFZF64kjwNrzRdVmDdLLKb6Ypff5iU--wpW18"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"_4u1WbmFZF64kjwNrzRdVmDdLLKb6Ypff5iU--wpW18", Code:"QRh-tqCz81_DnO8P4udHaCrK5KX70FLLKon6Wbp9H2w", ErrorCode:"", Error:""} -> bakery.Op{Entity:"global", Action:"login"} logging.go:37: WARNING candid.internal.discharger MFA authenticator not specified - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.waitTokenRequest{Route:httprequest.Route{}, DischargeID:"f503fc0310f9a11121c99af2167c824386c0018e709887d8342542f6382a9a12ID"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: INFO candid.meeting Wait "f503fc0310f9a11121c99af2167c824386c0018e709887d8342542f6382a9a12ID" - logging.go:37: INFO candid.meeting localWait "f503fc0310f9a11121c99af2167c824386c0018e709887d8342542f6382a9a12ID" + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.waitTokenRequest{Route:httprequest.Route{}, DischargeID:"9a8045fd2e3abc16901fc496877a476d684b3dfe8d6a8b07ed9b424d96382f05ID"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: INFO candid.meeting Wait "9a8045fd2e3abc16901fc496877a476d684b3dfe8d6a8b07ed9b424d96382f05ID" + logging.go:37: INFO candid.meeting localWait "9a8045fd2e3abc16901fc496877a476d684b3dfe8d6a8b07ed9b424d96382f05ID" logging.go:37: INFO candid.meeting timeout 1m0s - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"openstack:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.December, 24, 18, 37, 33, 984574689, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x400027d4a0), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"openstack:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2026, time.January, 27, 1, 2, 20, 52334259, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x400030fea0), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestDischarge/TestTokenDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"token:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.December, 24, 18, 37, 34, 1370431, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x40003f6050), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"token:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2026, time.January, 27, 1, 2, 20, 56867499, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x400047d860), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server ---- PASS: TestDischarge (0.04s) +--- PASS: TestDischarge (0.05s) --- PASS: TestDischarge/TestFormDischarge (0.01s) - --- PASS: TestDischarge/TestInteractiveDischarge (0.01s) - --- PASS: TestDischarge/TestTokenDischarge (0.02s) + --- PASS: TestDischarge/TestInteractiveDischarge (0.03s) + --- PASS: TestDischarge/TestTokenDischarge (0.00s) === RUN TestKeystone === RUN TestKeystone/TestAbsoluteIconURL === RUN TestKeystone/TestIconURL @@ -1543,7 +1579,7 @@ --- PASS: TestKeystone/TestKeystoneIdentityProviderDescription (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleExistingUser (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostBadPassword (0.00s) - --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostNoTenants (0.00s) + --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostNoTenants (0.01s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleSuccess (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHidden (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderInteractive (0.00s) @@ -1578,10 +1614,10 @@ === RUN TestTokenV3/TestRegisterConfig --- PASS: TestTokenV3 (0.02s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandle (0.00s) - --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadRequest (0.00s) + --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadRequest (0.01s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadToken (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHidden (0.00s) - --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderInteractive (0.01s) + --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderInteractive (0.00s) --- PASS: TestTokenV3/TestRegisterConfig (0.00s) === RUN TestUserPass === RUN TestUserPass/TestKeystoneUserpassIdentityProviderHandle @@ -1594,17 +1630,17 @@ --- PASS: TestUserPass (0.01s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandle (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleBadRequest (0.00s) - --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleNoUsername (0.00s) + --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleNoUsername (0.01s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleResponse (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHidden (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderInteractive (0.00s) --- PASS: TestUserPass/TestRegisterConfig (0.00s) PASS -ok github.com/canonical/candid/idp/keystone 0.122s +ok github.com/canonical/candid/idp/keystone 0.163s === RUN TestUnmarshalError === RUN TestUnmarshalError/error === RUN TestUnmarshalError/bad_json ---- PASS: TestUnmarshalError (0.00s) +--- PASS: TestUnmarshalError (0.01s) --- PASS: TestUnmarshalError/error (0.00s) --- PASS: TestUnmarshalError/bad_json (0.00s) === RUN TestTimeUnmarshalJSON @@ -1616,9 +1652,9 @@ --- PASS: TestTimeUnmarshalJSON/test1 (0.00s) --- PASS: TestTimeUnmarshalJSON/test2 (0.00s) PASS -ok github.com/canonical/candid/idp/keystone/internal/keystone 0.030s +ok github.com/canonical/candid/idp/keystone/internal/keystone 0.044s === RUN TestInteractiveDischarge -2024-12-24 18:37:34 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:21 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.01s) === RUN TestLDAP === RUN TestLDAP/TestAbsoluteIconURL @@ -1679,9 +1715,7 @@ --- PASS: TestLDAP/TestRelativeIconURL (0.00s) --- PASS: TestLDAP/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/ldap 0.056s -? github.com/canonical/candid/idp/usso/internal/mockusso [no test files] -? github.com/canonical/candid/idp/usso/ussodischarge/cmd/login [no test files] +ok github.com/canonical/candid/idp/ldap 0.069s === RUN TestConfig === RUN TestConfig/OK === RUN TestConfig/NoName @@ -1707,7 +1741,7 @@ === RUN TestIsForEmailAddr --- PASS: TestIsForEmailAddr (0.00s) === RUN TestURL ---- PASS: TestURL (0.00s) +--- PASS: TestURL (0.01s) === RUN TestIconURL --- PASS: TestIconURL (0.00s) === RUN TestHandleLogin @@ -1718,8 +1752,8 @@ === RUN TestHandleCallback/ExistingUserNoClaims === RUN TestHandleCallback/ExistingUserUpdateClaims === RUN TestHandleCallback/PreferredUsernameTaken ---- PASS: TestHandleCallback (0.04s) - --- PASS: TestHandleCallback/NewUserWithUsername (0.01s) +--- PASS: TestHandleCallback (0.06s) + --- PASS: TestHandleCallback/NewUserWithUsername (0.02s) --- PASS: TestHandleCallback/NewUserNoUsername (0.01s) --- PASS: TestHandleCallback/ExistingUserNoClaims (0.01s) --- PASS: TestHandleCallback/ExistingUserUpdateClaims (0.01s) @@ -1728,14 +1762,14 @@ === RUN TestHandleRegister/Success === RUN TestHandleRegister/InvalidUsername === RUN TestHandleRegister/InvalidUsername#01 ---- PASS: TestHandleRegister (0.01s) +--- PASS: TestHandleRegister (0.00s) --- PASS: TestHandleRegister/Success (0.00s) --- PASS: TestHandleRegister/InvalidUsername (0.00s) --- PASS: TestHandleRegister/InvalidUsername#01 (0.00s) PASS -ok github.com/canonical/candid/idp/openid 0.091s +ok github.com/canonical/candid/idp/openid 0.124s === RUN TestInteractiveDischarge -2024-12-24 18:37:34 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:21 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.01s) === RUN TestStatic === RUN TestStatic/TestAbsoluteIconURL @@ -1752,7 +1786,7 @@ === RUN TestStatic/TestInteractive === RUN TestStatic/TestName === RUN TestStatic/TestRelativeIconURL ---- PASS: TestStatic (0.02s) +--- PASS: TestStatic (0.01s) --- PASS: TestStatic/TestAbsoluteIconURL (0.00s) --- PASS: TestStatic/TestDescription (0.00s) --- PASS: TestStatic/TestDomain (0.00s) @@ -1768,9 +1802,11 @@ --- PASS: TestStatic/TestName (0.00s) --- PASS: TestStatic/TestRelativeIconURL (0.00s) PASS -ok github.com/canonical/candid/idp/static 0.059s +ok github.com/canonical/candid/idp/static 0.076s +? github.com/canonical/candid/idp/usso/internal/mockusso [no test files] +? github.com/canonical/candid/idp/usso/ussodischarge/cmd/login [no test files] === RUN TestInteractiveDischarge -2024-12-24 18:37:34 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:21 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.01s) === RUN TestUSSO === RUN TestUSSO/TestAbsoluteIconURL @@ -1796,19 +1832,19 @@ === RUN TestUSSO/TestUpdateIdentity === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid -2024-12-24 18:37:34 WARNING candid.idp.usso usso.go:250 not updating username for usso:https://login.ubuntu.com/+id/test to invalid username "test-changed-" +2026-01-27 01:02:21 WARNING candid.idp.usso usso.go:250 not updating username for usso:https://login.ubuntu.com/+id/test to invalid username "test-changed-" === RUN TestUSSO/TestWithDomain ---- PASS: TestUSSO (0.04s) +--- PASS: TestUSSO (0.05s) --- PASS: TestUSSO/TestAbsoluteIconURL (0.00s) --- PASS: TestUSSO/TestConfig (0.00s) --- PASS: TestUSSO/TestDescription (0.00s) --- PASS: TestUSSO/TestDomain (0.00s) --- PASS: TestUSSO/TestGetGroups (0.00s) --- PASS: TestUSSO/TestGetGroupsReturnsNewSlice (0.00s) - --- PASS: TestUSSO/TestHandleNoExtensionsNotFound (0.00s) + --- PASS: TestUSSO/TestHandleNoExtensionsNotFound (0.01s) --- PASS: TestUSSO/TestHandleRegisterUserError (0.00s) - --- PASS: TestUSSO/TestHandleSuccess (0.00s) - --- PASS: TestUSSO/TestHandleSuccessNoExtensions (0.00s) + --- PASS: TestUSSO/TestHandleSuccess (0.01s) + --- PASS: TestUSSO/TestHandleSuccessNoExtensions (0.01s) --- PASS: TestUSSO/TestHidden (0.00s) --- PASS: TestUSSO/TestIconURL (0.00s) --- PASS: TestUSSO/TestInteractive (0.00s) @@ -1819,12 +1855,12 @@ --- PASS: TestUSSO/TestRedirectWithLaunchpadTeams (0.00s) --- PASS: TestUSSO/TestRelativeIconURL (0.00s) --- PASS: TestUSSO/TestURL (0.00s) - --- PASS: TestUSSO/TestUpdateIdentity (0.01s) - --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed (0.00s) + --- PASS: TestUSSO/TestUpdateIdentity (0.00s) + --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed (0.01s) --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid (0.00s) --- PASS: TestUSSO/TestWithDomain (0.00s) PASS -ok github.com/canonical/candid/idp/usso 0.098s +ok github.com/canonical/candid/idp/usso 0.118s === RUN TestAccept === RUN TestAccept/not_seen store_test.go:74: 0. not seen @@ -1849,7 +1885,7 @@ --- PASS: TestAccept/bad_time (0.00s) --- PASS: TestAccept/too_old (0.00s) PASS -ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.039s +ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.040s === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestSuite @@ -1862,10 +1898,10 @@ === RUN TestSuite/TestInteractive === RUN TestSuite/TestName === RUN TestSuite/TestURL ---- PASS: TestSuite (0.02s) +--- PASS: TestSuite (0.01s) --- PASS: TestSuite/TestDescription (0.00s) --- PASS: TestSuite/TestHandleGetSuccess (0.01s) - --- PASS: TestSuite/TestHandleGetV1Success (0.01s) + --- PASS: TestSuite/TestHandleGetV1Success (0.00s) --- PASS: TestSuite/TestHandlePostV1 (0.00s) --- PASS: TestSuite/TestHidden (0.00s) --- PASS: TestSuite/TestIconURL (0.00s) @@ -1895,7 +1931,7 @@ === RUN TestMultipleLogins --- PASS: TestMultipleLogins (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussodischarge 0.074s +ok github.com/canonical/candid/idp/usso/ussodischarge 0.079s === RUN TestDischarge --- PASS: TestDischarge (0.01s) === RUN TestConfig @@ -1912,14 +1948,14 @@ --- PASS: TestUSSOAuth (0.01s) --- PASS: TestUSSOAuth/TestDescription (0.00s) --- PASS: TestUSSOAuth/TestHandleSuccess (0.00s) - --- PASS: TestUSSOAuth/TestHandleVerifyFail (0.01s) + --- PASS: TestUSSOAuth/TestHandleVerifyFail (0.00s) --- PASS: TestUSSOAuth/TestHidden (0.00s) --- PASS: TestUSSOAuth/TestIconURL (0.00s) --- PASS: TestUSSOAuth/TestInteractive (0.00s) --- PASS: TestUSSOAuth/TestName (0.00s) --- PASS: TestUSSOAuth/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussooauth 0.053s +ok github.com/canonical/candid/idp/usso/ussooauth 0.050s ? github.com/canonical/candid/internal/candidtest [no test files] === RUN TestAuth === RUN TestAuth/TestACLForOp @@ -1994,7 +2030,7 @@ --- PASS: TestAuth/TestUserHasPublicKeyCaveat (0.00s) --- PASS: TestAuth/TestUserHasPublicKeyChecker (0.00s) PASS -ok github.com/canonical/candid/internal/auth 0.044s +ok github.com/canonical/candid/internal/auth 0.040s === RUN TestAuth === RUN TestAuth/TestAuthorizeMacaroonRequired === RUN TestAuth/TestAuthorizeWithAdminCredentials @@ -2010,10 +2046,10 @@ --- PASS: TestAuth/TestAuthorizeWithAdminCredentials/bad_password (0.00s) --- PASS: TestAuth/TestAuthorizeWithAdminCredentials/empty_password_denies_access (0.00s) PASS -ok github.com/canonical/candid/internal/auth/httpauth 0.039s +ok github.com/canonical/candid/internal/auth/httpauth 0.044s testing: warning: no tests to run PASS -ok github.com/canonical/candid/internal/debug 0.022s [no tests to run] +ok github.com/canonical/candid/internal/debug 0.025s [no tests to run] ? github.com/canonical/candid/internal/mfa [no test files] ? github.com/canonical/candid/internal/monitoring [no test files] === RUN TestDischarge @@ -2023,83 +2059,83 @@ discharge_test.go:462: test 0. discharge macaroon discharge_test.go:462: test 1. no authentication discharge_test.go:462: test 2. unsupported user -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: user jbloggs2 not found ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:336: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:316: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/store/memstore/store.go:81: user jbloggs2 not found}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: user jbloggs2 not found ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:336: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:316: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/store/memstore/store.go:81: user jbloggs2 not found}]) discharge_test.go:462: test 3. unsupported condition -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: caveat not recognized ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/checkers/checkers.go:166: caveat not recognized}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: caveat not recognized ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/checkers/checkers.go:166: caveat not recognized}]) discharge_test.go:462: test 4. bad credentials discharge_test.go:462: test 5. is-authenticated-user with domain discharge_test.go:462: test 6. is-authenticated-user with wrong domain -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: "jbloggs@test" not in required domain "test2" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:330: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:373: "jbloggs@test" not in required domain "test2"}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: "jbloggs@test" not in required domain "test2" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:330: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:373: "jbloggs@test" not in required domain "test2"}]) discharge_test.go:462: test 7. is-authenticated-user with invalid domain discharge_test.go:462: test 8. invalid caveat === RUN TestDischarge/TestDischargeFromDifferentOriginWhenLoggedIn discharge_test.go:340: origin caveats on identity cookies not yet supported === RUN TestDischarge/TestDischargeMemberOf === RUN TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupMatch -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupNoMatch -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsOneMatches -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsNoMatch -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) === RUN TestDischarge/TestDischargeStatusProxyAuthRequiredResponse === RUN TestDischarge/TestDischargeStatusUnauthorizedResponse === RUN TestDischarge/TestDischargeUserID === RUN TestDischarge/TestDischargeWhenLoggedIn -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeXMemberOfX -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs === RUN TestDischarge/TestDomainInInteractionURLs/domain_login -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/no_domain -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/domain_from_cookies -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestIdentityCookieParameters -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischarge -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeJSON -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeWithOldClientCaveat -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestLastDischargeTimeUpdates -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestNonInteractiveDischarge === RUN TestDischarge/TestPublicKey - http.go:99: JSON call, url "http://127.0.0.1:36539/publickey" + http.go:99: JSON call, url "http://127.0.0.1:46143/publickey" === RUN TestDischarge/TestTwoDischargesOfSameCaveat -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithDomainCookie -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithEscapedDomainCookie -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithInvalidDomainCookie -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestDischarge (0.24s) - --- PASS: TestDischarge/TestDischargeBrowserRedirectLogin (0.03s) +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestDischarge (0.20s) + --- PASS: TestDischarge/TestDischargeBrowserRedirectLogin (0.02s) --- PASS: TestDischarge/TestDischargeBrowserRedirectLoginNotTrusted (0.00s) - --- PASS: TestDischarge/TestDischargeForUser (0.01s) + --- PASS: TestDischarge/TestDischargeForUser (0.02s) --- SKIP: TestDischarge/TestDischargeFromDifferentOriginWhenLoggedIn (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf (0.03s) - --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername (0.01s) + --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupMatch (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch (0.01s) @@ -2109,11 +2145,11 @@ --- PASS: TestDischarge/TestDischargeStatusProxyAuthRequiredResponse (0.00s) --- PASS: TestDischarge/TestDischargeStatusUnauthorizedResponse (0.00s) --- PASS: TestDischarge/TestDischargeUserID (0.01s) - --- PASS: TestDischarge/TestDischargeWhenLoggedIn (0.01s) + --- PASS: TestDischarge/TestDischargeWhenLoggedIn (0.00s) --- PASS: TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth (0.01s) --- PASS: TestDischarge/TestDischargeXMemberOfX (0.01s) --- PASS: TestDischarge/TestDomainInInteractionURLs (0.02s) - --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_login (0.01s) + --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_login (0.00s) --- PASS: TestDischarge/TestDomainInInteractionURLs/no_domain (0.00s) --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_from_cookies (0.00s) --- PASS: TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies (0.01s) @@ -2122,7 +2158,7 @@ --- PASS: TestDischarge/TestInteractiveDischargeJSON (0.01s) --- PASS: TestDischarge/TestInteractiveDischargeWithOldClientCaveat (0.01s) --- PASS: TestDischarge/TestLastDischargeTimeUpdates (0.01s) - --- PASS: TestDischarge/TestNonInteractiveDischarge (0.01s) + --- PASS: TestDischarge/TestNonInteractiveDischarge (0.00s) --- PASS: TestDischarge/TestPublicKey (0.00s) --- PASS: TestDischarge/TestTwoDischargesOfSameCaveat (0.01s) --- PASS: TestDischarge/TestVisitURLWithDomainCookie (0.01s) @@ -2139,10 +2175,10 @@ === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainInsecure === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainWildcard === RUN TestIDP/TestLoginSuccess -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestIDP/TestLoginSuccessWithTemplate -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestIDP (0.01s) +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestIDP (0.00s) --- PASS: TestIDP/TestLoginFailure (0.00s) --- PASS: TestIDP/TestLoginFailureWithWait (0.00s) --- PASS: TestIDP/TestLoginRedirectFailureInvalidReturnTo (0.00s) @@ -2162,9 +2198,9 @@ --- PASS: TestLoginCookiePath/location_NOT_in_the_cookie (0.00s) === RUN TestLogin === RUN TestLogin/TestInteractiveLogin -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestLogin/TestLegacyInteractiveLogin -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestLogin/TestLegacyLoginFailure discharge.go:169: interaction returned error status (400 Bad Request): {"message":"unsupported method \"PUT\"","code":"bad request"} === RUN TestLogin/TestLegacyNonInteractiveLogin @@ -2179,10 +2215,10 @@ === RUN TestLogin/TestLoginRedirect === RUN TestLogin/TestLoginRedirectNotTrusted === RUN TestLogin/TestNonInteractiveLogin ---- PASS: TestLogin (0.07s) - --- PASS: TestLogin/TestInteractiveLogin (0.01s) - --- PASS: TestLogin/TestLegacyInteractiveLogin (0.01s) - --- PASS: TestLogin/TestLegacyLoginFailure (0.00s) +--- PASS: TestLogin (0.05s) + --- PASS: TestLogin/TestInteractiveLogin (0.00s) + --- PASS: TestLogin/TestLegacyInteractiveLogin (0.00s) + --- PASS: TestLogin/TestLegacyLoginFailure (0.01s) --- PASS: TestLogin/TestLegacyNonInteractiveLogin (0.01s) --- PASS: TestLogin/TestLoginEmail (0.00s) --- PASS: TestLogin/TestLoginEmailSubmitMatch (0.00s) @@ -2191,11 +2227,11 @@ --- PASS: TestLogin/TestLoginIDPChoice (0.00s) --- PASS: TestLogin/TestLoginIDPChoiceHidden (0.00s) --- PASS: TestLogin/TestLoginMethodsIncludesAgent (0.00s) - --- PASS: TestLogin/TestLoginRedirect (0.01s) + --- PASS: TestLogin/TestLoginRedirect (0.00s) --- PASS: TestLogin/TestLoginRedirectNotTrusted (0.00s) - --- PASS: TestLogin/TestNonInteractiveLogin (0.01s) + --- PASS: TestLogin/TestNonInteractiveLogin (0.00s) PASS -ok github.com/canonical/candid/internal/discharger 0.398s +ok github.com/canonical/candid/internal/discharger 0.283s === RUN TestStore === RUN TestStore/TestExpiredEntry === RUN TestStore/TestGetCanceled @@ -2217,7 +2253,7 @@ --- PASS: TestStore/TestPutDeadlineExceeded (0.00s) --- PASS: TestStore/TestRoundTrip (0.00s) PASS -ok github.com/canonical/candid/internal/discharger/internal 0.072s +ok github.com/canonical/candid/internal/discharger/internal 0.054s === RUN TestHandleErrors === RUN TestHandleErrors/not_found http.go:99: JSON call, url "/error/" @@ -2260,51 +2296,51 @@ === RUN TestServer/TestServerPanicRecovery http.go:99: JSON call, url "/a" logging.go:37: ERROR candid.internal.identity PANIC!: test panic - goroutine 231 [running]: + goroutine 236 [running]: runtime/debug.Stack() /usr/lib/go-1.23/src/runtime/debug/stack.go:26 +0x64 github.com/canonical/candid/internal/identity.(*Server).ServeHTTP.func1() /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server.go:186 +0x48 panic({0xabe760?, 0xcf4640?}) /usr/lib/go-1.23/src/runtime/panic.go:785 +0x124 - github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0xaf9a60?, 0x400035e124?}, 0x400035e120?, {0x3?, 0x0?, 0x2?}) + github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0xaf9a60?, 0x40002cb7f4?}, 0x40002cb7f0?, {0x3?, 0x0?, 0x160000000010002?}) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server_test.go:182 +0x2c - github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x40002fb260, {0xcfd7e8, 0x400026e7e0}, 0x400030d2c0) + github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x400042a960, {0xcfd7e8, 0x400022f340}, 0x40002f5180) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/julienschmidt/httprouter/router.go:387 +0x6ec - github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0x40002737e0, {0xcfd7e8, 0x400026e7e0}, 0x400030d2c0) + github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0x40004288e0, {0xcfd7e8, 0x400022f340}, 0x40002f5180) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server.go:196 +0x258 - net/http.serverHandler.ServeHTTP({0x40003662d0?}, {0xcfd7e8?, 0x400026e7e0?}, 0x6?) + net/http.serverHandler.ServeHTTP({0x400043d0b0?}, {0xcfd7e8?, 0x400022f340?}, 0x6?) /usr/lib/go-1.23/src/net/http/server.go:3210 +0xbc - net/http.(*conn).serve(0x400031f4d0, {0xcff228, 0x40004ca960}) + net/http.(*conn).serve(0x4000446240, {0xcff228, 0x400043cf90}) /usr/lib/go-1.23/src/net/http/server.go:2092 +0x4fc - created by net/http.(*Server).Serve in goroutine 228 + created by net/http.(*Server).Serve in goroutine 233 /usr/lib/go-1.23/src/net/http/server.go:3360 +0x3dc logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestServer/TestServerStaticFiles ---- PASS: TestServer (0.03s) +--- PASS: TestServer (0.02s) --- PASS: TestServer/TestNewServerWithNoVersions (0.00s) --- PASS: TestServer/TestNewServerWithVersions (0.01s) --- PASS: TestServer/TestServerHasAccessControlAllowHeaders (0.00s) - --- PASS: TestServer/TestServerPanicRecovery (0.01s) + --- PASS: TestServer/TestServerPanicRecovery (0.00s) --- PASS: TestServer/TestServerStaticFiles (0.01s) PASS -ok github.com/canonical/candid/internal/identity 0.115s +ok github.com/canonical/candid/internal/identity 0.108s === RUN TestGravatarHash --- PASS: TestGravatarHash (0.00s) === RUN TestUsersAPI === RUN TestUsersAPI/TestCreateAgent -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateAgentAsAgent -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) === RUN TestUsersAPI/TestCreateAgentAsParentAgent -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) === RUN TestUsersAPI/TestCreateAgentWithGroups -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgent === RUN TestUsersAPI/TestCreateParentAgentNotInGroups -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgentUnauthorized -2024-12-24 18:37:36 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2026-01-27 01:02:23 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestDischargeToken === RUN TestUsersAPI/TestExtraInfo === RUN TestUsersAPI/TestExtraInfoNotFound @@ -2337,9 +2373,9 @@ === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(found) === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(not_found) === RUN TestUsersAPI/TestQueryUsersBadLastDischarge -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-discharge-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:60: cannot unmarshal last-discharge-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-discharge-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:60: cannot unmarshal last-discharge-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) === RUN TestUsersAPI/TestQueryUsersBadLastLogin -2024-12-24 18:37:36 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-login-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:52: cannot unmarshal last-login-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) +2026-01-27 01:02:23 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-login-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:52: cannot unmarshal last-login-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) === RUN TestUsersAPI/TestQueryUsersUnauthorized === RUN TestUsersAPI/TestRemoveUserMFACredentials === RUN TestUsersAPI/TestRoundTripUser @@ -2358,18 +2394,18 @@ === RUN TestUsersAPI/TestVerifyUserToken === RUN TestUsersAPI/TestWhoAmIWithAuthenticatedUser === RUN TestUsersAPI/TestWhoAmIWithNoUser ---- PASS: TestUsersAPI (0.31s) +--- PASS: TestUsersAPI (0.25s) --- PASS: TestUsersAPI/TestCreateAgent (0.02s) - --- PASS: TestUsersAPI/TestCreateAgentAsAgent (0.02s) + --- PASS: TestUsersAPI/TestCreateAgentAsAgent (0.01s) --- PASS: TestUsersAPI/TestCreateAgentAsParentAgent (0.02s) - --- PASS: TestUsersAPI/TestCreateAgentWithGroups (0.01s) + --- PASS: TestUsersAPI/TestCreateAgentWithGroups (0.02s) --- PASS: TestUsersAPI/TestCreateParentAgent (0.01s) --- PASS: TestUsersAPI/TestCreateParentAgentNotInGroups (0.01s) --- PASS: TestUsersAPI/TestCreateParentAgentUnauthorized (0.01s) --- PASS: TestUsersAPI/TestDischargeToken (0.01s) --- PASS: TestUsersAPI/TestExtraInfo (0.01s) --- PASS: TestUsersAPI/TestExtraInfoNotFound (0.01s) - --- PASS: TestUsersAPI/TestGetUserIDGroups (0.01s) + --- PASS: TestUsersAPI/TestGetUserIDGroups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/no_groups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/groups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/no_such_user (0.00s) @@ -2378,15 +2414,15 @@ --- PASS: TestUsersAPI/TestGetUserWithID/groups (0.00s) --- PASS: TestUsersAPI/TestGetUserWithID/no_such_user (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups (0.01s) - --- PASS: TestUsersAPI/TestModifyUserGroups/add_groups (0.01s) + --- PASS: TestUsersAPI/TestModifyUserGroups/add_groups (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/remove_groups (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/add_and_remove_groups (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/remove_groups_not_a_member_of (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/user_not_found (0.00s) --- PASS: TestUsersAPI/TestQueryAgentUsers (0.01s) --- PASS: TestUsersAPI/TestQueryAgentUsersOwnerNotFound (0.01s) - --- PASS: TestUsersAPI/TestQueryUsers (0.02s) - --- PASS: TestUsersAPI/TestQueryUsers/query_existing_user (0.00s) + --- PASS: TestUsersAPI/TestQueryUsers (0.03s) + --- PASS: TestUsersAPI/TestQueryUsers/query_existing_user (0.02s) --- PASS: TestUsersAPI/TestQueryUsers/query_non-existing_user (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/no_query_parameter (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/query_email (0.00s) @@ -2397,9 +2433,9 @@ --- PASS: TestUsersAPI/TestQueryUsers/last_discharge_too_soon (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(found) (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(not_found) (0.00s) - --- PASS: TestUsersAPI/TestQueryUsersBadLastDischarge (0.01s) + --- PASS: TestUsersAPI/TestQueryUsersBadLastDischarge (0.00s) --- PASS: TestUsersAPI/TestQueryUsersBadLastLogin (0.01s) - --- PASS: TestUsersAPI/TestQueryUsersUnauthorized (0.01s) + --- PASS: TestUsersAPI/TestQueryUsersUnauthorized (0.00s) --- PASS: TestUsersAPI/TestRemoveUserMFACredentials (0.01s) --- PASS: TestUsersAPI/TestRoundTripUser (0.01s) --- PASS: TestUsersAPI/TestSSHKeys (0.01s) @@ -2408,7 +2444,7 @@ --- PASS: TestUsersAPI/TestUserErrors/not_found (0.00s) --- PASS: TestUsersAPI/TestUserErrors/bad_username (0.00s) --- PASS: TestUsersAPI/TestUserGroups (0.01s) - --- PASS: TestUsersAPI/TestUserGroups/no_groups (0.01s) + --- PASS: TestUsersAPI/TestUserGroups/no_groups (0.00s) --- PASS: TestUsersAPI/TestUserGroups/groups (0.00s) --- PASS: TestUsersAPI/TestUserGroups/no_such_user (0.00s) --- PASS: TestUsersAPI/TestUserIDPGroups (0.01s) @@ -2418,13 +2454,13 @@ --- PASS: TestUsersAPI/TestWhoAmIWithAuthenticatedUser (0.01s) --- PASS: TestUsersAPI/TestWhoAmIWithNoUser (0.00s) PASS -ok github.com/canonical/candid/internal/v1 0.393s +ok github.com/canonical/candid/internal/v1 0.320s === RUN TestRendezvousWaitBeforeDone --- PASS: TestRendezvousWaitBeforeDone (0.00s) === RUN TestRendezvousDoneBeforeWait --- PASS: TestRendezvousDoneBeforeWait (0.00s) === RUN TestRendezvousDifferentPlaces ---- PASS: TestRendezvousDifferentPlaces (0.01s) +--- PASS: TestRendezvousDifferentPlaces (0.00s) === RUN TestEntriesRemovedOnClose --- PASS: TestEntriesRemovedOnClose (0.00s) === RUN TestRunGCNotDying @@ -2434,7 +2470,7 @@ === RUN TestPutFailure --- PASS: TestPutFailure (0.00s) === RUN TestWaitTimeout - meeting_test.go:408: starting wait "5a85f4491147eebf55f16f752f6b8903" + meeting_test.go:408: starting wait "a46e5c82e0dc9db75704cf15166c0ce5" meeting_test.go:436: after second wait, now: 2016-01-01 12:00:02.000000002 +0000 UTC meeting_test.go:441: expiry deadline 2016-01-01 12:00:05 +0000 UTC meeting_test.go:451: final wait from 2016-01-01 12:00:04.999 +0000 UTC: 1.000001ms @@ -2445,7 +2481,7 @@ === RUN TestRequestsExpiredCalled --- PASS: TestRequestsExpiredCalled (0.00s) PASS -ok github.com/canonical/candid/meeting 0.109s +ok github.com/canonical/candid/meeting 0.094s === RUN TestUsernameTextUnmarshal === RUN TestUsernameTextUnmarshal/user === RUN TestUsernameTextUnmarshal/admin@idm @@ -2457,7 +2493,7 @@ --- PASS: TestUsernameTextUnmarshal/agent@admin@idm (0.00s) --- PASS: TestUsernameTextUnmarshal/toolongusername_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef_ (0.00s) PASS -ok github.com/canonical/candid/params 0.055s +ok github.com/canonical/candid/params 0.034s === RUN TestNotFoundError --- PASS: TestNotFoundError (0.00s) === RUN TestDuplicateUsernameError @@ -2465,7 +2501,7 @@ === RUN TestProviderIdentity --- PASS: TestProviderIdentity (0.00s) PASS -ok github.com/canonical/candid/store 0.065s +ok github.com/canonical/candid/store 0.048s === RUN TestKeyValueStore === RUN TestKeyValueStore/TestGetNotFound === RUN TestKeyValueStore/TestSet @@ -2480,7 +2516,7 @@ === RUN TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil === RUN TestKeyValueStore/TestUpdateSuccessWithPreexistingKey === RUN TestKeyValueStore/TestUpdateSuccessWithoutPreexistingKey ---- PASS: TestKeyValueStore (0.23s) +--- PASS: TestKeyValueStore (0.25s) --- PASS: TestKeyValueStore/TestGetNotFound (0.00s) --- PASS: TestKeyValueStore/TestSet (0.00s) --- PASS: TestKeyValueStore/TestSetKeyOnce (0.00s) @@ -2488,7 +2524,7 @@ --- PASS: TestKeyValueStore/TestSetNilUpdatesAsNonNil (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForDifferentIDPsAreIndependent (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForTheSameIDPCommunicate (0.00s) - --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.23s) + --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.25s) --- PASS: TestKeyValueStore/TestUpdateErrorWithExistingKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateErrorWithNonExistentKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil (0.00s) @@ -2585,8 +2621,8 @@ === RUN TestStore/TestUpdateIdentity/providerID_empty_update === RUN TestStore/TestUpdateNotFoundNoQuery === RUN TestStore/TestUserCredentials ---- PASS: TestStore (0.06s) - --- PASS: TestStore/TestFindIdentities (0.04s) +--- PASS: TestStore (0.07s) + --- PASS: TestStore/TestFindIdentities (0.05s) --- PASS: TestStore/TestIdentity (0.00s) --- PASS: TestStore/TestIdentityCounts (0.00s) --- PASS: TestStore/TestIdentityNotFound (0.00s) @@ -2595,7 +2631,7 @@ --- PASS: TestStore/TestInsertDuplicateUsername (0.00s) --- PASS: TestStore/TestUpdateIDDuplicateUsername (0.00s) --- PASS: TestStore/TestUpdateIDEmpty (0.00s) - --- PASS: TestStore/TestUpdateIdentity (0.01s) + --- PASS: TestStore/TestUpdateIdentity (0.02s) --- PASS: TestStore/TestUpdateIdentity/new_identity (0.00s) --- PASS: TestStore/TestUpdateIdentity/new_identity_with_existing_username (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_username (0.00s) @@ -2662,10 +2698,10 @@ === RUN TestConfigUnmarshal --- PASS: TestConfigUnmarshal (0.00s) PASS -ok github.com/canonical/candid/store/memstore 0.315s +ok github.com/canonical/candid/store/memstore 0.344s testing: warning: no tests to run PASS -ok github.com/canonical/candid/store/mgostore 0.022s [no tests to run] +ok github.com/canonical/candid/store/mgostore 0.016s [no tests to run] ? github.com/canonical/candid/store/storetest [no test files] ? github.com/canonical/candid/version [no test files] testing: warning: no tests to run @@ -2697,12 +2733,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3546757/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/3869908 and its subdirectories -I: Current time: Tue Dec 24 06:37:48 -12 2024 -I: pbuilder-time-stamp: 1735065468 +I: removing directory /srv/workspace/pbuilder/3546757 and its subdirectories +I: Current time: Tue Jan 27 15:02:34 +14 2026 +I: pbuilder-time-stamp: 1769475754