slimtoolkit / slimtoolkit/slim

Ability to exit http probe and fail build when any http probe fails

Open
#708 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

WIP
Dominant language
Go
Stars
23.4k
Forks
840
PR merge metrics
No merged PRs in 30d

Description

A new CLI argument and / or environment variable (or modification of --http-probe-exit-on-failure / DSLIM_HTTP_PROBE_EXIT_ON_FAILURE) that allows the build to fail when any single http probe fails.

Current behavior is to fail when every http probe fails i.e. when the following condition is true:

probe.CallCount > 0 && probe.OkCount == 0 && opts.httpProbeOpts.ExitOnFailure
....

Would instead want something like

probe.ErrCount > 0 && opts.httpProbeOpts.ExitOnAnyFailure
....

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the HTTP probe exit-on-failure handling associated with --http-probe-exit-on-failure and DSLIM_HTTP_PROBE_EXIT_ON_FAILURE, then inspect the probe.ErrCount and probe.OkCount paths. Done means the build can be configured to fail when any single HTTP probe fails while preserving the current all-probes-failed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.