Skip to content

fix: back off after transient HTTP delivery responses - #5

Open
jordyloeuille wants to merge 14 commits into
mainfrom
fix/transient-http-backoff
Open

fix: back off after transient HTTP delivery responses#5
jordyloeuille wants to merge 14 commits into
mainfrom
fix/transient-http-backoff

Conversation

@jordyloeuille

Copy link
Copy Markdown
Contributor

Summary

  • treat HTTP 408 Request Timeout and HTTP 425 Too Early as temporary delivery failures
  • apply the existing bounded one-minute local backoff after those responses
  • add privacy-safe response messages and focused regression coverage
  • align every plugin, WordPress.org, build and test version contract with 1.2.2
  • publish a GitHub release only after the full PHP, WordPress, reproducibility and Plugin Check gates succeed

Compatibility and privacy

  • no connector protocol or payload changes
  • no database or option migration
  • no additional collection, storage or transmission of data
  • no queue, cron or background runtime dependency

Validation

The existing PHP 7.4, 8.3 and 8.5 source QA, WordPress 6.2 and 7.0 integration matrix, deterministic ZIP build, official Plugin Check and release-contract checks must pass before merge.

WordPress.org

The repository's human-created asset gate remains unchanged. A GitHub release can be published after automated checks, while WordPress.org publication remains blocked until the required approved icons, banners and synthetic screenshots exist.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T16:43:07.089291Z 66e2219 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66e22192f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/build-release.php
$root = dirname( __DIR__ );
$allow_dirty = in_array( '--allow-dirty', $argv, true );
$version = '1.2.1';
$version = '1.2.2';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update the package verifier for version 1.2.2

Building this version always fails because scripts/build-release.php passes the generated archive to scripts/verify-package.php, whose lines 81–86 still require the plugin header, constant, and stable tag to be 1.2.1. I confirmed php scripts/build-release.php exits with both version errors, so the package job cannot reach artifact inspection or release.

AGENTS.md reference: AGENTS.md:L10-L10

Useful? React with 👍 / 👎.

"schema_version": 1,
"plugin_slug": "codegenie-pulse-connector",
"plugin_version": "1.2.1",
"plugin_version": "1.2.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Align the repository policy check with the manifest version

When composer qa reaches its policy step, scripts/check-repository.php validates this manifest with an unchanged expected version of 1.2.1 at line 77. Running that script against this change exits with WordPress.org asset manifest plugin_version does not match the release, which makes every completed QA matrix fail.

AGENTS.md reference: AGENTS.md:L9-L9

Useful? React with 👍 / 👎.

Comment thread .github/workflows/qa.yml
Comment on lines +202 to +206
gh release create "$TAG" "${assets[@]}" \
--repo "$GITHUB_REPOSITORY" \
--target "$TAG" \
--title "$TAG" \
--notes-file docs/releases/1.2.2.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require explicit authorization before publishing the release

On any push of this commit to main, this job creates and pushes v1.2.2 and then executes gh release create without --draft; gh release create --help states that this form publishes the release after uploading its assets. This turns the generic QA/build workflow into an automatic publishing path instead of leaving tagging and publication as separately authorized maintainer actions.

AGENTS.md reference: AGENTS.md:L10-L10

Useful? React with 👍 / 👎.

* Plugin Name: Codegenie Pulse Connector
* Description: Verbind WordPress veilig met Codegenie Pulse voor foutmonitoring, websiteverificatie en deployment tracking.
* Version: 1.2.1
* Version: 1.2.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update README.md with the new public version contract

The runtime now declares version 1.2.2, but README.md still identifies the plugin, runtime overview, artifact filenames, release notes, workflow input, and tag as 1.2.1. Since the source archive includes that README, consumers and maintainers receive a contradictory public release contract unless it is updated with the rest of the version bump.

AGENTS.md reference: AGENTS.md:L5-L5

Useful? React with 👍 / 👎.

Comment on lines +239 to +240
case 408:
return __( 'De aanvraag is tijdelijk verlopen. De connector probeert later opnieuw.', 'codegenie-pulse-connector' );

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid promising an automatic retry that never occurs

After a 408 response, the rejected event is returned to the caller and discarded; start_backoff() only suppresses subsequent events and there is no queue or scheduled retry. Telling administrators that the connector will try again later is therefore inaccurate, as is the same new wording for 425, and should instead describe the temporary delivery pause.

Useful? React with 👍 / 👎.

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.

1 participant