Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(ci): inspect empty official client when readiness probe fails
  • Loading branch information
SivanCola committed Nov 12, 2026
commit 4dd84d83d18188d7aa696e175e0f1dd47e4e3879
7 changes: 7 additions & 0 deletions .github/workflows/certum-signing-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
- name: Probe official client control roles without credentials
shell: pwsh
run: ./scripts/certum-client-probe.ps1
- name: Save empty client UI on probe failure
if: failure()
uses: actions/upload-artifact@b68c938de3ae8f359eb5e1ff7c4649c9a8abac50 # v7
with:
name: certum-credential-free-probe
path: simplysign-diag-*-credential-free-probe.png
retention-days: 1
sign:
if: github.repository == 'SivanCola/deepzora' && github.ref == 'refs/heads/main' && github.ref_protected && !inputs.client_probe_only
runs-on: windows-2022
Expand Down
4 changes: 3 additions & 1 deletion scripts/certum-client-probe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ if ($env:GITHUB_ACTIONS -ne 'true' -or $env:RUNNER_ENVIRONMENT -ne 'github-hoste
foreach ($name in @('CERTUM_USERNAME', 'CERTUM_OTP_URI', 'CERTUM_KEY_ID')) {
[Environment]::SetEnvironmentVariable($name, $null, 'Process')
}
$env:CAPTURE_DIAGNOSTICS = 'false'
# This disposable probe has no credentials and never submits a login. Capture
# its empty UI on failure only; normal authentication keeps captures disabled.
$env:CAPTURE_DIAGNOSTICS = 'true'
try {
& (Join-Path $PSScriptRoot 'certum/Install-SimplySign.ps1') -InstallerPath (Join-Path $env:RUNNER_TEMP 'SimplySign-probe.msi')
& (Join-Path $PSScriptRoot 'certum/Connect-SimplySign.ps1') -ProbeOnly
Expand Down
10 changes: 9 additions & 1 deletion scripts/certum/Connect-SimplySign.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,15 @@ function Resolve-Popup {

. (Join-Path $PSScriptRoot "../certum-login-ui.ps1")
Write-Host "Waiting for the SimplySign credential form, not its splash window..."
$loginHandle = Wait-CertumLoginWindow
try {
$loginHandle = Wait-CertumLoginWindow
} catch {
if ($ProbeOnly) {
Write-WindowTitles -Context 'credential-free probe failure'
Save-Screenshot -Stage 'credential-free-probe'
}
throw
}
Write-WindowTitles -Context "credential form ready"
Write-Host "Login window: handle=$loginHandle title='$(Get-WindowTitle -Handle $loginHandle)'"
if ($ProbeOnly) {
Expand Down
Loading