Skip to content

docs: add timing warnings to allocation payload annotation reference#316

Open
Hauke Löffler (hloeffler) wants to merge 3 commits into
mainfrom
docs/allocation-annotation-timing-notes
Open

docs: add timing warnings to allocation payload annotation reference#316
Hauke Löffler (hloeffler) wants to merge 3 commits into
mainfrom
docs/allocation-annotation-timing-notes

Conversation

@hloeffler

Copy link
Copy Markdown
Contributor

What

Adds timing warning boxes to the ALLOC_PAYLOAD_ANNOTATION and
ALLOC_CALLBACK_PAYLOAD_ANNOTATION reference sections on the
automatic registration page.

Why

Readers who jump directly to the environment variable reference via
anchor links miss the timing constraints documented higher up on the
page, which can lead to unexpected behavior such as empty callback
payloads or missing annotations.

Changes

  • ALLOC_PAYLOAD_ANNOTATION: warns that the Allocated state change
    fires before payload annotations are written, and to wait for the
    last-applied marker.
  • ALLOC_CALLBACK_PAYLOAD_ANNOTATION: warns that callback annotations
    are read once at Ready time and must be confirmed on the GameServer
    object before calling Ready().

Both warnings cross-reference the existing detailed sections.

Copilot AI review requested due to automatic review settings June 29, 2026 10:53
@hloeffler Hauke Löffler (hloeffler) requested a review from a team as a code owner June 29, 2026 10:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds prominent timing warnings to the environment variable reference sections on the automatic registration page, so readers who land via deep anchor links still see the critical ordering constraints that affect payload/annotation behavior.

Changes:

  • Adds a “Timing” warning under ALLOC_PAYLOAD_ANNOTATION clarifying that Allocated can occur before payload annotations are written, and to wait for the “last-applied” marker.
  • Adds a “Timing” warning under ALLOC_CALLBACK_PAYLOAD_ANNOTATION clarifying callback annotations are read once at Ready time and must be present before calling Ready().
  • Cross-references the existing detailed sections (“Write payload to annotations” / “Return a payload to the Allocator”) for more context.

…/automatically-registering-game-servers.md

Co-authored-by: Christian R <[email protected]>
Copilot AI review requested due to automatic review settings June 29, 2026 13:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings June 29, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@@ -301,6 +301,12 @@ Setting it to e.g. `payload-` results in the final prefix being `agones.dev/sdk-
Multi-dimensional payload results in concatenated keys using the `.` as separator.
Mutual exclusive to `ALLOC_PAYLOAD_FILE`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't it be Mutually exclusive with instead of to?

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.

5 participants