Repository navigation
Conversation
A live session keeps retrying failed handshakes while the client socket is alive and the pod is not gone, backing off 1s..5s within a 10min outage budget. Connect-time keeps the 3-attempt fast-fail so the wizard does not hang. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
First list item can be the terminating pod during a pod roll, pinning status execs and port-forwards to a pod that no longer serves. Prefer the newest Running+Ready pod instead. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Extract the :5990 -> local-port rewrite so reconnect can reuse it; add a nonce fragment param to defeat the Guest's same-link no-op guard. Add PortForwarder.probe: bounded open-and-close that proves the whole forward path without a client socket. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
When the forward's remote end dies, a bounded watcher probes the workspace-scoped pod, then prods the open Guest via updateJoinLink(forceReconnect): the window stays open, the RD link re-dials. Stale links (only fast-failed dials) are refreshed; recovery is read from real dial outcomes, never from the send ack. Guest closed mid-recovery no longer auto-stops the workspace. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
A pod replaced while the DevWorkspace stays running no longer kills the forward: on POD_GONE the forwarder resolves the current running+ready pod and swaps it in idempotently under a lock; the attempt series restarts but the steady-state outage budget keeps running. RemoteIDEServer swaps pod and IDE container as one atomic target, and the idea-server container predicate now actually requires the named port. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
🤖 AgentReady Assessment ReportRepository: devspaces-gateway-plugin 📊 Summary
Languages Detected
Repository Stats
🎯 Priority ImprovementsFocus on these high-impact fixes first:
📋 Detailed FindingsFindings sorted by priority (Tier 1 failures first, then Tier 2, etc.)
📝 Remediation StepsMeasured: not documented (Threshold: single-file lint + type-check commands documented) Evidence:
Document single-file lint and type-check commands in CLAUDE.md/AGENTS.md
Commands: # Python
ruff check path/to/file.py
mypy path/to/file.py
# JavaScript/TypeScript
npx eslint path/to/file.ts
npx tsc --noEmit path/to/file.ts
# Go
golangci-lint run path/to/file.go
go vet path/to/file.go
# YAML / Shell
yamllint path/to/file.yaml
shellcheck path/to/script.sh
bash -n path/to/script.sh
📝 Remediation StepsMeasured: none (Threshold: lock file with pinned versions) Evidence:
Add lock file for dependency reproducibility
Commands: go mod tidy # Go
npm install # npm
pip freeze > requirements.txt # Python
poetry lock # Python with Poetry
terraform providers lock # Terraform
📝 Remediation StepsMeasured: 1/2 directories (Threshold: 2/2 directories) Evidence:
Organize code into standard directories
Commands: # Create tests directory
mkdir -p tests
touch tests/__init__.py
touch tests/test_example.pyExamples: 📝 Remediation StepsMeasured: missing quality gates (Threshold: CI with lint + test + type-check gates on PRs) Evidence:
Add or improve CI/CD pipeline configuration
Commands: # Create GitHub Actions workflow
mkdir -p .github/workflows
touch .github/workflows/ci.yml
# Validate workflow
gh workflow view ci.ymlExamples:
📝 Remediation StepsMeasured: not configured (Threshold: configured) Evidence:
Configure conventional commits with commitlint
Commands: # Python (pre-commit):
pip install pre-commit && pre-commit install --hook-type commit-msg
# JS (commitlint + husky):
npm install --save-dev @commitlint/cli @commitlint/config-conventional husky
📝 Remediation StepsMeasured: none found (Threshold: pattern references or skills documented) Evidence:
Add pattern references for 3-5 common change types
Commands: mkdir -p .claude/skillsExamples:
📝 Remediation StepsMeasured: multi-step setup (Threshold: single command) Evidence:
Create single-command setup for development environment
Commands: # Example Makefile
cat > Makefile << 'EOF'
.PHONY: setup
setup:
python -m venv venv
. venv/bin/activate && pip install -r requirements.txt
pre-commit install
cp .env.example .env
@echo 'Setup complete! Run make test to verify.'
EOFExamples: Examples:
📝 Remediation StepsMeasured: no ADR directory (Threshold: ADR directory with decisions) Evidence:
Create Architecture Decision Records (ADRs) directory and document key decisions
Commands: # Create ADR directory
mkdir -p docs/adr
# Create first ADR using template
cat > docs/adr/0001-use-architecture-decision-records.md << 'EOF'
# 1. Use Architecture Decision Records
Date: 2025-11-22
## Status
Accepted
## Context
We need to record architectural decisions made in this project.
## Decision
We will use Architecture Decision Records (ADRs) as described by Michael Nygard.
## Consequences
- Decisions are documented with context
- Future contributors understand rationale
- ADRs are lightweight and version-controlled
EOFExamples: Threat Model: MyProject1. System contextA REST API that processes user uploads... 2. Assets
3. Entry points & trust boundaries
4. Threats
5. Deprioritized
6. Open questions
7. Provenance
8. Recommended mitigations
Examples:
📝 Remediation StepsMeasured: none (Threshold: lock file with pinned versions) Evidence:
Add lock file for dependency reproducibility
Commands: go mod tidy # Go
npm install # npm
pip freeze > requirements.txt # Python
poetry lock # Python with Poetry
terraform providers lock # Terraform
📝 Remediation StepsMeasured: 1/2 directories (Threshold: 2/2 directories) Evidence:
Organize code into standard directories
Commands: # Create tests directory
mkdir -p tests
touch tests/__init__.py
touch tests/test_example.pyExamples: 📝 Remediation StepsMeasured: missing quality gates (Threshold: CI with lint + test + type-check gates on PRs) Evidence:
Add or improve CI/CD pipeline configuration
Commands: # Create GitHub Actions workflow
mkdir -p .github/workflows
touch .github/workflows/ci.yml
# Validate workflow
gh workflow view ci.ymlExamples:
📝 Remediation StepsMeasured: not configured (Threshold: configured) Evidence:
Configure conventional commits with commitlint
Commands: # Python (pre-commit):
pip install pre-commit && pre-commit install --hook-type commit-msg
# JS (commitlint + husky):
npm install --save-dev @commitlint/cli @commitlint/config-conventional husky
📝 Remediation StepsMeasured: none found (Threshold: pattern references or skills documented) Evidence:
Add pattern references for 3-5 common change types
Commands: mkdir -p .claude/skillsExamples:
📝 Remediation StepsMeasured: multi-step setup (Threshold: single command) Evidence:
Create single-command setup for development environment
Commands: # Example Makefile
cat > Makefile << 'EOF'
.PHONY: setup
setup:
python -m venv venv
. venv/bin/activate && pip install -r requirements.txt
pre-commit install
cp .env.example .env
@echo 'Setup complete! Run make test to verify.'
EOFExamples: Examples:
📝 Remediation StepsMeasured: no ADR directory (Threshold: ADR directory with decisions) Evidence:
Create Architecture Decision Records (ADRs) directory and document key decisions
Commands: # Create ADR directory
mkdir -p docs/adr
# Create first ADR using template
cat > docs/adr/0001-use-architecture-decision-records.md << 'EOF'
# 1. Use Architecture Decision Records
Date: 2025-11-22
## Status
Accepted
## Context
We need to record architectural decisions made in this project.
## Decision
We will use Architecture Decision Records (ADRs) as described by Michael Nygard.
## Consequences
- Decisions are documented with context
- Future contributors understand rationale
- ADRs are lightweight and version-controlled
EOFExamples: Threat Model: MyProject1. System contextA REST API that processes user uploads... 2. Assets
3. Entry points & trust boundaries
4. Threats
5. Deprioritized
6. Open questions
7. Provenance
8. Recommended mitigations
Examples: |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #412 +/- ##
==========================================
+ Coverage 48.59% 50.97% +2.38%
==========================================
Files 143 145 +2
Lines 6297 6801 +504
Branches 1226 1321 +95
==========================================
+ Hits 3060 3467 +407
- Misses 2884 2955 +71
- Partials 353 379 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Qodana for JVM13 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2026.2.2
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
…3910) Live testing showed the watcher never prodded on a pod roll: it reported recovery on a mere active TCP copy, and the Guest's doomed dials (~6.5s, its own transport timeout) classified as long-lived, so the stale link was never refreshed. A replaced pod now marks the cached link stale by identity (new pod = new server session) and the first prod carries a refreshed link. Recovery evidence is a dial that survived 15s, never an open copy; client-closed doomed dials no longer end the episode. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
Live testing showed the prod cancels the Guest's own seamless reconnection mid-handshake: forceReconnect restarts the project (disposing the frame), so a needless prod swaps the window. The watcher now observes the Guest's dial cycle first — a dial in flight is never interrupted; recovery reports on a surviving dial with zero prods. A prod is reserved for a rolled pod, a proven-failing seamless loop, or a Guest that stopped dialing. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
Live testing showed the watcher prodded the cached link when a stale link could not be refreshed yet (restarted idea-server not reporting a status). Each such prod disposes the Guest's project against a dead session and burns one of its project-open retries - the Guest closed itself after two (exitCode 178). A stale link with no replacement now waits: zero prods until the IDE server reports a fresh link, budget ends in the failure report. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
client-java's PortForward.forward ends in an unbounded Object.wait (WebSocketStreamHandler.waitForInitialized). A stalled websocket - observed right after killing the idea-server - hangs the dial's first attempt forever: the retry policy and the client-gone probe are behind the blocked call, and the recovery watcher's observation freezes on a permanently in-flight dial (live thread dump attached to the commit context). The open is now interruptible and bounded (10s): a stalled open surfaces as a retryable handshake failure, and the blocked thread is freed. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
The watcher can end without any log output when its coroutine is cancelled from outside; a live session showed exactly that with no way to attribute it. The loop's finally now always logs its end state, stop() and stopRecovery() log the caller stack, and the observation phase samples its dial view every ~5s at debug. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
In-place idea-server restart: the Guest's seamless loop re-dials every ~5 s while each doomed dial lives ~6.5 s (its 6 s transport timeout), so dials overlap permanently and the observation's in-flight guard never released - zero prods, no recovery until the budget. A failed dial only counts when its forward handshake was delivered and the Guest still dropped it within the confirmation window - the stale-link signature. Two of them prove every dial carrying the cached link is doomed, including the one in flight; prodding it costs nothing, waiting for its end changes nothing. A network cut keeps its protection: its dials never handshake, so failedDials stays flat and the in-flight dial is still awaited. Signed-off-by: Andre Dietisheim <adietish@redhat.com>
|
✅ Build successful! For testing, download plugin zip from the Artifacts section. |
What
The JetBrains Client (thin client / Guest) reconnects transparently after a transient outage (network cut, VPN drop, sleep/resume, pod replacement): the window stays open and the session re-dials in place. No client relaunch, no new window, no new local port. If the workspace does not come back within the recovery budget, an error dialog is shown.
How (layered, one commit each)
steady-state port-forward retriesselect running ready podDevWorkspacePods.findFirstRunning: skip terminating, require Running + Ready, prefer the newest — the first list item can be the dying pod during a roll.join-link helper and forward probeThinClientJoinLink(:5990→ local-port rewrite, reconnect nonce fragment param) andPortForwarder.probe(bounded open-and-close that proves the whole forward path).transparent thin-client recovery watcherThinClientHandle.updateJoinLink(uri, forceReconnect = true)— verified from the decompiled Guest to drop the RD link and re-dial it, keeping the window open. Recovery is confirmed by real dial outcomes, never by the send ack. A link is refreshed only when every dial since the prod failed fast.retarget port forward to replacement podPOD_GONEwith the DevWorkspace still Running, the forward swaps to the replacement pod (idempotent, lock-guarded); the attempt series restarts but the outage budget keeps running.Notable behavior decisions
tearDownConnectionwithholds the remotestop()while the recovery watcher is running; the failure dialog owns that decision. The healthy-path close⇒stop contract is unchanged.RemoteIDEServerswaps pod and IDE container as one atomic target, and the idea-server container predicate now requires the named port — the oldports?.any { … } != nullmatched any container with a non-null ports list, soServerContainerNotFoundExceptioncould never fire.Testing
801 tests, 0 failures. New suites:
ForwardRetryPolicyTest,ThinClientJoinLinkTest,ThinClientRecoveryWatcherTest; extendedPodPortForwarderTest,DevWorkspacePodsTest,RemoteIDEServerTest,DevSpacesConnectionTest../gradlew detektstays at the pre-existing baseline (no new findings).Outstanding
Live validation against a real DevWorkspace (prod delivery into a dead-but-open Guest, same-link no-op guard, Guest websocket survival time, dial-pattern threshold for the 2 s fast-fail window) before flipping out of draft.