Skip to content

fix(openapi): treat pending uploads as accepted - #1515

Merged
erunion merged 1 commit into
nextfrom
hugo/cx-3771-rdme-openapi-upload-times-out-while-the-openapi-definition
Aug 12, 2026
Merged

erunion merged 1 commit into
nextfrom
hugo/cx-3771-rdme-openapi-upload-times-out-while-the-openapi-definition

Conversation

@HugoHSun

@HugoHSun HugoHSun commented Aug 12, 2026 •

Copy link
Copy Markdown
Member
🚥 Resolves CX-3771

🧰 Changes

rdme openapi upload waits for queued API definitions to finish processing. When the polling window ends, it currently reports that the upload timed out and fails CI even if ReadMe confirms that the job is still processing in the background.

CX-3012 previously increased the polling limit from 10 checks (about 3 minutes) to 25 checks (about 10.5 minutes). CX-3771 shows that valid uploads can still take longer. Increasing the limit again would only move the cutoff, make CI wait longer, and keep treating an active backend job as a failed upload.

This changes the exhausted polling-window case to return the last confirmed pending or pending_update status successfully. The message includes the API definition slug, explains that processing is continuing, warns against retrying while it is still processing, and asks the customer to check ReadMe later for final completion. Actual upload failures and polling request errors remain errors.

🧬 QA & Testing

  • A newly created definition that remains pending after all 25 polls exits successfully, returns the pending status, and includes its slug in the background-processing message.
  • An updated definition that remains pending_update behaves the same way.
  • Definitions that reach done keep the existing success behavior, while API and processing failures remain non-zero exits.

@HugoHSun
HugoHSun marked this pull request as ready for review August 12, 2026 05:07
@HugoHSun
HugoHSun requested a review from erunion as a code owner August 12, 2026 05:07
@HugoHSun

Copy link
Copy Markdown
Member Author

@coderabbitai review

@HugoHSun
HugoHSun requested a review from darrenyong August 12, 2026 06:49
@erunion
erunion merged commit 757950c into next Aug 12, 2026
10 checks passed
@erunion
erunion deleted the hugo/cx-3771-rdme-openapi-upload-times-out-while-the-openapi-definition branch August 12, 2026 21:01
erunion pushed a commit that referenced this pull request Aug 12, 2026
## [10.9.7-next.1](v10.9.6...v10.9.7-next.1) (2026-08-12)

### Bug Fixes

* **openapi:** treat pending uploads as accepted ([#1515](#1515)) ([757950c](757950c))

[skip ci]
@erunion

erunion commented Aug 12, 2026

Copy link
Copy Markdown
Member

🎉 This PR is included in version 10.9.7-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

erunion pushed a commit that referenced this pull request Nov 1, 2026
# [10.10.0](v10.9.6...v10.10.0) (2026-11-01)

### Bug Fixes

* Disable javascript execution in 2nd frontmatter ([#1518](#1518)) ([922cbde](922cbde))
* empty commit to force a release ([779c812](779c812))
* **export:** honor --docs-only when skipping empty pages ([#1523](#1523)) ([2c89dec](2c89dec))
* issue where child pages could be uploaded before their parents ([#1554](#1554)) ([8ad0fd2](8ad0fd2))
* **openapi:** treat pending uploads as accepted ([#1515](#1515)) ([757950c](757950c))

### Features

* **glossary:** add upload and export commands ([#1533](#1533)) ([2b49b61](2b49b61))
* **openapi:** add configurable upload timeout ([#1516](#1516)) ([8c44efe](8c44efe))
* **openapi:** surface target project in upload output ([#1520](#1520)) ([53579cc](53579cc))

[skip ci]
@erunion

erunion commented Nov 1, 2026

Copy link
Copy Markdown
Member

🎉 This PR is included in version 10.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants