Skip to content

fix: clearer lookup failure reasons, more tests and upgrade notes - #125

Merged
oleksandr-nc merged 1 commit into
mainfrom
fix/validation-followups
Oct 16, 2026
Merged

oleksandr-nc merged 1 commit into
mainfrom
fix/validation-followups

Conversation

@oleksandr-nc

@oleksandr-nc oleksandr-nc commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Follow-ups to #123 and #124.

When an ExApp lookup failed because the Kubernetes API answered with an error, the warning from #124 only said HTTPServiceUnavailable: Service Unavailable, and a total timeout ended in TimeoutError: with nothing after it. The warning now gives the error's text, or only its type when there is no message. If one of several requests waiting for the same lookup is cancelled, the lookup itself no longer fails with InvalidStateError.

The README's upgrade notes now say that a daemon whose Docker network name is empty or has a blank, a : or a control character is refused (a refused update leaves the ExApp without a container), and that recovering from a failed ExApp update needs the deploy options again and is not done by rolling HaRP back.

New tests cover mount modes other than ro and rw (the rules and the request to Docker treat them as read-write), the length limits at their boundary and the lookup cases above. The test fixture now also clears the negative lookup cache and checks after each test that no lookup is left in flight.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 07bd1660-17eb-4fbe-bf55-df57c5e24e12
📥 Commits

Reviewing files that changed from the base of the PR and between cd6b7f7 and 52d34a7.

📒 Files selected for processing: 2
  • README.md
  • tests/unit/conftest.py
🚧 Files skipped from review as they are similar to previous changes: 1
  • README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The AppAPI lookup path now formats lookup failures and guards shared-future completion. Tests cover lookup errors, concurrent requests, cancelled waiters, and mount-mode handling. Payload validation tests include longer accepted values. The upgrade guidance adds details about rejected Docker network names and ExApp recovery steps.

Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to 52d34

Concurrent lookup requests for the same ExApp can fail after one waiter is canceled, until the active fetch completes. This bounded availability risk should be addressed or explicitly accepted before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 17.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 5 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the main changes: clearer lookup failure reasons, additional tests, and upgrade notes.
Description check Passed The description directly explains the lookup error handling, cancellation fix, upgrade-note changes, and added tests.
Full details: Docstring Coverage

Explanation

Docstring coverage is 17.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 5 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 413010c3-a363-4558-91b8-c03d66219912
📥 Commits

Reviewing files that changed from the base of the PR and between 9969317 and cd6b7f7.

📒 Files selected for processing: 6
  • README.md
  • haproxy_agent.py
  • tests/unit/conftest.py
  • tests/unit/test_bind_mounts.py
  • tests/unit/test_payload_validation.py
  • tests/unit/test_requests.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread haproxy_agent.py
@oleksandr-nc
oleksandr-nc force-pushed the fix/validation-followups branch from cd6b7f7 to 52d34a7 Compare October 16, 2026 09:38
@oleksandr-nc
oleksandr-nc merged commit a60e3ae into main Oct 16, 2026
18 checks passed
@oleksandr-nc
oleksandr-nc deleted the fix/validation-followups branch October 16, 2026 09:52
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