-
Notifications
You must be signed in to change notification settings - Fork 1
Assume 404 is not healthy #72
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f595a4d
Assume 404 is not healthy
flenter 7768adc
Update packages/core/src/health.ts
flenter cd0a665
Update notion logo
flenter c6cd178
Use "docs"
flenter 888b56d
Remove protocol if server type is http
flenter 0239f1c
Run tests in CI and update test
flenter 4039639
Fix test on ci
flenter ffcaf5b
More fixes for the tests
flenter c1b73e9
fix: update mock to match component ARIA structure
flenter 41b99fb
fix: mock must return null when no content to display
flenter 91c20d0
fix: restore mocks at module level before importing component
flenter d92d91c
fix: import component with .tsx extension to bypass mock
flenter b81caf7
fix: remove unnecessary mocks that pollute other test files
flenter 1144e55
chore: delete unused mock functions from mocks.tsx
flenter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@fiberplane/mcp-gateway": patch | ||
| --- | ||
|
|
||
| Treat HTTP 404 as offline in health checks - a 404 without a session ID indicates the MCP endpoint doesn't exist |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,3 +46,6 @@ jobs: | |
|
|
||
| - name: Build packages | ||
| run: bun run build | ||
|
|
||
| - name: Run tests | ||
| run: bun run test | ||
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
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Test expects 404 to be healthy but code now treats it as offline
The health check now treats HTTP 404 as
offline, but an existing test inpackages/core/src/health.test.ts(the "should handle server returning 404 as up" test) explicitly expects 404 responses to result inhealth: "up". The test comment states "404 means server is responding, so it's 'up'" which contradicts the new behavior. The test will fail becausecheckServerHealthnow returnsstatus: "offline"for 404, which maps to"down"in the gateway, but the test assertsexpect(results[0]?.health).toBe("up").