Skip to content

Commit 1123cca

Browse files
andimarekclaude
andcommitted
Fix schema split to respect type boundaries, remove LFS references
- Re-split large-schema-5 at a type boundary so each part contains only complete GraphQL type definitions - Remove Git LFS suggestions from pre-commit hook, CI workflow, CONTRIBUTING.md, and README - Simplify large-schema-5-README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bf0e7af commit 1123cca

6 files changed

Lines changed: 11 additions & 33 deletions

File tree

.githooks/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ if [ -n "$LARGE_FILES" ]; then
6767
echo -e "$LARGE_FILES"
6868
echo -e "${YELLOW}Please consider one of these options:${NC}"
6969
echo -e "${YELLOW} 1. Split the file into smaller parts with suffixes .part1, .part2, etc.${NC}"
70-
echo -e "${YELLOW} 2. Use Git Large File Storage (Git LFS): https://git-lfs.github.com/${NC}"
71-
echo -e "${YELLOW} 3. Remove unnecessary content from the file${NC}"
70+
echo -e "${YELLOW} 2. Remove unnecessary content from the file${NC}"
7271
ERRORS_FOUND=1
7372
fi
7473

.github/workflows/validate-files.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ jobs:
8888
echo ""
8989
echo "Please consider one of these options:"
9090
echo " 1. Split the file into smaller parts with suffixes .part1, .part2, etc."
91-
echo " 2. Use Git Large File Storage (Git LFS): https://git-lfs.github.com/"
92-
echo " 3. Remove unnecessary content from the file"
91+
echo " 2. Remove unnecessary content from the file"
9392
exit 1
9493
else
9594
echo "✓ All files are within the 10MB size limit"

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ The pre-commit hook will automatically check for:
3838

3939
- **Large files**: Files larger than 10MB will be rejected. If you need to commit large files, consider:
4040
- Splitting them into smaller parts (`.part1`, `.part2`, etc.)
41-
- Using [Git Large File Storage (LFS)](https://git-lfs.github.com/)
4241
- Reducing the file size
4342

4443
To bypass the hooks temporarily (not recommended), use `git commit --no-verify`.
Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,14 @@
1-
# Large Schema File - Split for Windows Compatibility
1+
# large-schema-5 — Split File
22

3-
The file `large-schema-5.graphqls` (11.3 MB) has been split into multiple parts to comply with the 10MB file size limit.
3+
`large-schema-5.graphqls` (11.3 MB) exceeds the 10 MB file-size limit and has been split into two parts.
4+
The split is at a type boundary so each part contains only complete type definitions.
45

5-
## Parts
6+
## Reassembly
67

7-
- `large-schema-5.graphqls.part1` - First part (6.2 MB)
8-
- `large-schema-5.graphqls.part2` - Second part (4.7 MB)
9-
10-
## Reassembly Instructions
11-
12-
To reassemble the original file, use one of the following methods:
13-
14-
### On Linux/macOS:
158
```bash
9+
# Linux / macOS
1610
cat large-schema-5.graphqls.part1 large-schema-5.graphqls.part2 > large-schema-5.graphqls
17-
```
1811

19-
### On Windows (PowerShell):
20-
```powershell
12+
# Windows (PowerShell)
2113
Get-Content large-schema-5.graphqls.part1, large-schema-5.graphqls.part2 | Set-Content large-schema-5.graphqls
2214
```
23-
24-
### On Windows (Command Prompt):
25-
```cmd
26-
copy /b large-schema-5.graphqls.part1+large-schema-5.graphqls.part2 large-schema-5.graphqls
27-
```
28-
29-
## For Test Code
30-
31-
If test code references `large-schema-5.graphqls`, update it to either:
32-
1. Reassemble the file programmatically before use
33-
2. Update the code to read from both parts sequentially

src/test/resources/large-schema-5.graphqls.part1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106167,6 +106167,3 @@ type Object7024 implements Interface208 @Directive29(argument64 : "stringValue98
106167106167
field31303: String @Directive42(argument112 : true) @Directive51
106168106168
}
106169106169

106170-
type Object7025 implements Interface208 @Directive29(argument64 : "stringValue98430", argument65 : false, argument66 : false, argument67 : false) @Directive31(argument69 : "stringValue98427") @Directive4(argument3 : ["stringValue98428", "stringValue98429"]) @Directive42(argument112 : true) {
106171-
field27360: Enum1505 @Directive42(argument112 : true) @Directive51
106172-
field27361: Object5945 @Directive42(argument112 : true) @Directive51

src/test/resources/large-schema-5.graphqls.part2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
type Object7025 implements Interface208 @Directive29(argument64 : "stringValue98430", argument65 : false, argument66 : false, argument67 : false) @Directive31(argument69 : "stringValue98427") @Directive4(argument3 : ["stringValue98428", "stringValue98429"]) @Directive42(argument112 : true) {
2+
field27360: Enum1505 @Directive42(argument112 : true) @Directive51
3+
field27361: Object5945 @Directive42(argument112 : true) @Directive51
14
field27364: Object5946 @Directive42(argument112 : true) @Directive51
25
field31296: Object7026 @Directive42(argument112 : true) @Directive51
36
field31303: String @Directive42(argument112 : true) @Directive51

0 commit comments

Comments
 (0)