Add debug output to reset_feature job for auth troubleshooting

This commit is contained in:
Mondo Diaz
2026-02-03 10:25:36 -06:00
parent 9313942f53
commit aa851ab445

View File

@@ -236,6 +236,8 @@ reset_feature:
print("ERROR: DEV_ADMIN_PASSWORD not set") print("ERROR: DEV_ADMIN_PASSWORD not set")
sys.exit(1) sys.exit(1)
# Debug: show password info without revealing it
print(f"Password length: {len(PASSWORD)}, first char: '{PASSWORD[0] if PASSWORD else '?'}', last char: '{PASSWORD[-1] if PASSWORD else '?'}'")
print(f"Resetting environment at {BASE_URL}") print(f"Resetting environment at {BASE_URL}")
client = httpx.Client(base_url=BASE_URL, timeout=60.0) client = httpx.Client(base_url=BASE_URL, timeout=60.0)
@@ -246,6 +248,7 @@ reset_feature:
}) })
if login_resp.status_code != 200: if login_resp.status_code != 200:
print(f"ERROR: Login failed: {login_resp.status_code}") print(f"ERROR: Login failed: {login_resp.status_code}")
print(f"Response: {login_resp.text}")
sys.exit(1) sys.exit(1)
# Call factory reset # Call factory reset