Skip to content

Add test case for multi-project schema panic#5135

Open
captbaritone wants to merge 2 commits intofacebook:mainfrom
captbaritone:config-panic
Open

Add test case for multi-project schema panic#5135
captbaritone wants to merge 2 commits intofacebook:mainfrom
captbaritone:config-panic

Conversation

@captbaritone
Copy link
Contributor

Summary

  • Adds integration test schema_not_in_project_sources that reproduces a panic when using multi-project config

The Issue

When using a relay config with multiple projects where the schema file is located outside of all project source directories, the compiler panics at build_schema.rs:115 with "no entry found for key".

Reproduction

https://github.com/budde377/relay-multirepo-reproduction

Test plan

cargo test --test relay_compiler_relay_compiler_integration_test schema_not_in_project_sources

Currently panics - test documents the bug.

@@ -0,0 +1,2 @@
@nocommit
Run snapshot tests with UPDATE_SNAPSHOTS=1 to update this new file.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't be generated because compiler/test panics

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 12, 2026

@captbaritone has imported this pull request. If you are a Meta employee, you can view this in D90526264.

captbaritone and others added 2 commits January 12, 2026 12:51
Differential Revision: D87093423
Summary:
- Adds integration test `schema_not_in_project_sources` that reproduces a panic when using multi-project config

  ## The Issue
  When using a relay config with multiple projects where the schema file is located outside of all project source directories, the compiler panics at `build_schema.rs:115` with "no entry found for key".

  ## Reproduction
  https://github.com/budde377/relay-multirepo-reproduction

  ## Test plan
  ```
  cargo test --test relay_compiler_relay_compiler_integration_test schema_not_in_project_sources
  ```
  Currently panics - test documents the bug.

Pull Request resolved: facebook#5135

Differential Revision: D90526264

Pulled By: captbaritone
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 12, 2026

@captbaritone has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90526264.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants