Skip to content

Enhance fly health output and auth handling - #9644

Merged
taylorsilva merged 7 commits into
concourse:masterfrom
IvanChalukov:enh-fly-health
Jul 14, 2026
Merged

taylorsilva merged 7 commits into
concourse:masterfrom
IvanChalukov:enh-fly-health

Conversation

@IvanChalukov

@IvanChalukov IvanChalukov commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed by this PR

It is mostly nit stuff regarding fly health logic:

  • Components that are both paused and have previously run now show paused, last ran: instead of only paused (the last-ran info was being silently dropped)
  • Simplify target loading by extracting build logic into a separate function
  • Simplified the database error display — the redundant empty-string guard was unnecessary
  • Removed the h alias from fly health - it feels like fly help

Tests:

  • Added an assertion to verify no Authorization header is sent when the token is expired, so a future regression in auth suppression won't slip through
  • Added test cases for components that have never run and components that are paused before their first run

follow-up of #9640

@IvanChalukov
IvanChalukov requested a review from a team July 14, 2026 10:40
@Kump3r Kump3r self-assigned this Jul 14, 2026

@Kump3r Kump3r left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with:

# ./hfly -t local pause-component --name=scheduler
paused 'scheduler'
#./hfly -t local logout 
logged out of target: local
# ./hfly -t local status
logged out
# ./hfly -t local health 
subsystem                      status   detail
overall                        ok       2026-07-14T12:38:30Z
database                       healthy
workers                        healthy  1/1 running
being_watched_build_marker     healthy  last ran: 2026-07-14T12:35:28Z
pipeline_pauser                healthy  last ran: 2026-07-14T12:35:28Z
signing_key_lifecycler         healthy  last ran: 2026-07-14T12:35:29Z
scheduler                      healthy  paused, last ran: 2026-07-14T12:37:48Z
reaper                         healthy  last ran: 2026-07-14T12:38:08Z
collector_resource_configs     healthy  last ran: 2026-07-14T12:38:08Z
collector_access_tokens        healthy  last ran: 2026-07-14T12:38:08Z
collector_artifacts            healthy  last ran: 2026-07-14T12:38:18Z
collector_resource_cache_uses  healthy  last ran: 2026-07-14T12:38:18Z
collector_containers           healthy  last ran: 2026-07-14T12:38:18Z
scanner                        healthy  last ran: 2026-07-14T12:38:18Z
collector_resource_caches      healthy  last ran: 2026-07-14T12:38:18Z
collector_task_caches          healthy  last ran: 2026-07-14T12:38:28Z
collector_check_sessions       healthy  last ran: 2026-07-14T12:38:28Z
collector_pipelines            healthy  last ran: 2026-07-14T12:38:28Z
tracker                        healthy  last ran: 2026-07-14T12:38:28Z
collector_builds               healthy  last ran: 2026-07-14T12:38:28Z
collector_checks               healthy  last ran: 2026-07-14T12:38:28Z
collector_volumes              healthy  last ran: 2026-07-14T12:38:28Z
collector_workers              healthy  last ran: 2026-07-14T12:38:28Z
#./hfly -t local h
error: Unknown command `h', did you mean `abort-build'?
#docker compose stop db
[+] stop 1/1
 ✔ Container concourse_ivan_fork-db-1 Stopped 
# ./hfly -t local health   

subsystem  status     detail
overall    failing    2026-07-14T12:42:32Z
database   unhealthy  database unreachable
workers    unhealthy  0/0 running

@Kump3r

Kump3r commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

One thing that comes to mind is maybe if this is the final idea to add the new last_ran paused combo to concourse/docs#613 as well.
Edit: did it myself

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks Ivan!

@taylorsilva
taylorsilva merged commit 14d1e22 into concourse:master Jul 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants