Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ws-manager-bridge] Skip stale prebuild events #9191

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Apr 8, 2022

This reverts commit 67ad495.

Description

Metrics show that we receive stale prebuild events when handling WorkspaceStatus updates on ws-manager-bridge. This change skips events which are stale.

Screenshot 2022-04-08 at 10 05 03

Related Issue(s)

Fixes #9107

How to test

Requires a degree of luck, as it depends on event ordering on the message bus, but:

Start a prebuild
port-forward ws-manager-bridge on port 9500 and fetch metrics with curl localhost:9500/metrics
Check metrics contain gitpod_ws_manager_bridge_stale_prebuild_events_total with a positive count
Check ws-manager-bridge logs contain Stale prebuild event received, skipping.

Release Notes

[ws-manager-bridge] Skip stale prebuild events.

Documentation

NONE

@easyCZ easyCZ requested a review from a team April 8, 2022 08:06
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Apr 8, 2022
@roboquat roboquat merged commit 91c518a into main Apr 11, 2022
@roboquat roboquat deleted the mp/skip-stale-prebuilds-2 branch April 11, 2022 07:01
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use WorkspaceStatus.status_version to ignore old status updates
3 participants