Resolve FIXME-skipped tests in compiler_expression_size_test.go#19311
Merged
Resolve FIXME-skipped tests in compiler_expression_size_test.go#19311
Conversation
Use inlined-imports: true frontmatter to force markdown body embedding
in generated YAML, allowing validateExpressionSizes() to be triggered
by large single-line content that exceeds the 21KB limit.
- Remove t.Skip("FIXME: ...") from both previously-skipped tests
- Add inlined-imports: true to test workflow frontmatter
- Remove misleading SetSkipValidation(false) call (expression size
validation runs unconditionally regardless of skipValidation)
- Remove unused safe-outputs section from both test workflows
- Update test comments to explain the inlined-imports mechanism"
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate and resolve FIXME-skipped tests in compiler_expression_size_test.go
Resolve FIXME-skipped tests in compiler_expression_size_test.go
Mar 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR resolves two permanently-skipped FIXME integration tests in compiler_expression_size_test.go. The tests were previously skipped because they incorrectly assumed markdown body content would be embedded in the generated YAML (it normally becomes a {{#runtime-import ...}} macro). The fix adds inlined-imports: true to the test workflow frontmatter, which forces the markdown body to be embedded directly in the YAML at compile time — causing the 25,000-character single-line content to exceed MaxExpressionSize (21,000 bytes) and correctly trigger validateExpressionSizes().
Changes:
- Added
inlined-imports: trueto both test workflows to force inline embedding of the markdown body content, making the 25KB single-line content exceedMaxExpressionSizeand trigger the validation error. - Removed
t.Skip("FIXME: ...")from both skipped tests so they now actively exercise the expression size validation path. - Removed
compiler.SetSkipValidation(false)(it was misleading —validateExpressionSizes()runs unconditionally regardless ofskipValidation) and removed the unusedsafe-outputssection from both test workflows.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Mar 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two integration tests in
compiler_expression_size_test.gowere permanently skipped because the tests incorrectly assumed large markdown body content would be embedded in the generated YAML. In normal compilation mode, the markdown body becomes a short{{#runtime-import ...}}macro line — never triggeringvalidateExpressionSizes().Changes
inlined-imports: truein test frontmatter: Forces the markdown body to be embedded directly in the generated YAML at compile time. A single 25,000-char line in the markdown body then appears as a ~25KB YAML line, exceedingMaxExpressionSize(21,000 bytes) and correctly triggering the validation.t.Skip("FIXME: ...")from both tests — they now exercise the actual validation path.compiler.SetSkipValidation(false): Expression size validation runs unconditionally (before schema validation), so this call was misleading and irrelevant.safe-outputssection from both test workflows.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.