Skip to content

TeamCity: harden ci-wpcom base image package fetches against transient network failures#109110

Merged
mreishus merged 1 commit intotrunkfrom
reish20260306/base-images-robust
Mar 11, 2026
Merged

TeamCity: harden ci-wpcom base image package fetches against transient network failures#109110
mreishus merged 1 commit intotrunkfrom
reish20260306/base-images-robust

Conversation

@mreishus
Copy link
Copy Markdown
Contributor

@mreishus mreishus commented Mar 6, 2026

Human Desc

A recent "Build Base Images" step failed because of a download failure:

12.79 E: Failed to fetch http://deb.debian.org/debian/pool/main/r/readline/readline-common_8.1-1_all.deb  Error reading from server - read (104: Connection reset by peer) 

So this adds a few retries to the download commands.

AI Desc

Proposed Changes

  • Add retry settings to apt-get update and apt-get install in the ci-wpcom image build path.
  • Add retry and timeout settings to wget calls that fetch libffi6, the Sury apt key, and the Sentry installer script.
  • Remove apt-get upgrade -y from the ci-wpcom build step to reduce external mirror churn and flakiness.

Why are these changes being made?

  • Build base images failed in Build CI wpcom image due to a transient apt mirror/network reset while downloading readline-common.
  • The failure was caused by external package fetch instability, not by an npm/yarn dependency change.
  • This change improves reliability without changing application behavior.

Testing Instructions

  • Run the Build base images TeamCity build on trunk.
  • Confirm Build CI wpcom image completes successfully.
  • Confirm new image tags are pushed for:
    • registry.a8c.com/calypso/base
    • registry.a8c.com/calypso/ci-e2e
    • registry.a8c.com/calypso/ci-wpcom
  • Trigger a downstream Web app / Docker image build and compare timing against previous slow runs.

@mreishus mreishus force-pushed the reish20260306/base-images-robust branch from 6c33545 to 2770b33 Compare March 6, 2026 16:36
@matticbot
Copy link
Copy Markdown
Contributor

matticbot commented Mar 6, 2026

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • help-center
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug reish20260306/base-images-robust on your sandbox.

@mreishus mreishus force-pushed the reish20260306/base-images-robust branch 2 times, most recently from 9467021 to 841499a Compare March 11, 2026 15:10
@mreishus mreishus force-pushed the reish20260306/base-images-robust branch from 841499a to 75a2dc0 Compare March 11, 2026 18:03
@mreishus mreishus merged commit 7cf1877 into trunk Mar 11, 2026
13 checks passed
@mreishus mreishus deleted the reish20260306/base-images-robust branch March 11, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants