Commit 4a82d67
authored
fix(ci): use PyPI JSON API for availability check to avoid pip cache staleness (#341)
* fix(ci): use PyPI JSON API for availability check to avoid pip cache staleness
Replace `pip install --dry-run` with a `curl` call to the PyPI JSON API.
The pip approach caches index responses, so retries within the same job
would never see a newly-published version once a stale miss was cached.
Also extend the timeout from 5 to 15 minutes (30→90 attempts).
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
* fix(ci): add --no-cache-dir to pip dry-run to avoid stale index cache
Without --no-cache-dir, pip caches the index response from the first
poll attempt. If the package wasn't available yet, all subsequent retries
served the stale cached miss — even across job re-runs.
Also extends timeout from 5 to 15 minutes (30→90 attempts).
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
* fix(ci): use pip exit code instead of output grep for PyPI availability check
Rely on pip's exit code (0 = resolvable, 1 = not found) rather than
grepping for "Would install" in stdout, which is fragile and breaks
when the package is already installed in the environment.
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
* fix(ci): add skip-existing to PyPI publish to allow workflow_dispatch re-runs
Without this, triggering workflow_dispatch after a partial release failure
would fail at publish-to-pypi (version already exists), blocking the
downstream publish-image-to-ghcr job.
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
* fix(ci): skip branch check on workflow_dispatch in check-release
github.event.release.target_commitish is only set on release events,
not workflow_dispatch. Skip the branch check when manually dispatching
so re-runs of failed release jobs are not blocked.
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
* Revert "fix(ci): skip branch check on workflow_dispatch in check-release"
This reverts commit 85968b2.
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
---------
Signed-off-by: Jimisola Laursen <jimisola@users.noreply.github.com>
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>1 parent 7973320 commit 4a82d67
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments