Conversation
Bump `@rocicorp/zero` from 1.2.0 to 1.3.0-canary.3 across all four workspaces that depend on it. Also adds a fly log fetching script for debugging. ### Change type - [x] `other` ### Test plan 1. Deploy to staging and verify zero-cache starts correctly 2. Verify client can connect and sync ### Release notes - Bump @rocicorp/zero to 1.3.0-canary.3 ### Code changes | Section | LOC change | | -------------- | ------------ | | Apps | +4 / -4 | | Core code | +2 / -2 | | Config/tooling | +93 / -94 |
In order to let Rocicorp pull zero-cache logs without needing fly CLI auth, this PR improves the fly log fetch script. Changes: - Add `--token` flag and `FLY_TOKEN` env var support (token is now required — no more fly CLI fallback that silently minted new org deploy tokens on every run) - Document all zero app names (production, staging, PR previews) - Remove `child_process` import (no longer needed) ### Change type - [x] `improvement` ### Test plan 1. Run script with `--token` flag 2. Run script with `FLY_TOKEN` env var 3. Run script without either — should error with helpful message ### Code changes | Section | LOC change | | -------------- | ---------- | | Config/tooling | +20 / -6 |
In order to let Rocicorp pull zero-cache metrics without needing fly CLI auth, this PR adds a Prometheus metrics script and extracts shared utilities. Changes: - **`fly-common.ts`** (new): shared org slug (configurable via `FLY_ORG_SLUG`), token resolution (`--token` / `FLY_TOKEN`), duration parsing - **`fetch-fly-logs.ts`**: refactored to use shared module, removed fly CLI fallback that silently minted new org deploy tokens on every run - **`fetch-fly-metrics.ts`** (new): fetches CPU and memory time series from Fly's Prometheus API using the same queries as the Grafana dashboard (CPU usage, baseline, throttle, memory used/total) ### Change type - [x] `improvement` ### Test plan 1. Run logs script with `--token` — should fetch logs 2. Run logs script without token — should error with helpful message 3. Run metrics script with `--token` — should show CPU/memory time series 4. Run metrics script with `FLY_TOKEN` env var — same result ### Code changes | Section | LOC change | | -------------- | ----------- | | Config/tooling | +241 / -31 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )