Skip to content

test: Add PrintTo for test param structs to improve gtest output (#16796)#16796

Open
pedroerp wants to merge 1 commit intofacebookincubator:mainfrom
pedroerp:export-D96759255
Open

test: Add PrintTo for test param structs to improve gtest output (#16796)#16796
pedroerp wants to merge 1 commit intofacebookincubator:mainfrom
pedroerp:export-D96759255

Conversation

@pedroerp
Copy link
Contributor

@pedroerp pedroerp commented Mar 16, 2026

Summary:

Add PrintTo overloads for parameterized test structs that were missing
them. Without these, gtest falls back to dumping raw bytes in diagnostic
output (e.g. # GetParam() = 16-byte object <01-00 00-00 ...>), making
CI logs hard to read.

Structs updated:

  • SpillerTest::TestParam (delegates to toString())
  • HashJoinBridgeTest::TestParam (probers:N_builders:M)
  • OutputBufferManagerTest::TestParam (kind_serde)
  • SpillTest::TestParam (delegates to toString())
  • MinMaxByAggregationTest::TestParam (valueType_comparisonType)
  • RawVectorTest::TestParam (withPool/noPool)
  • TestColumnReader: ReaderTestParams, NonSelectiveReaderTestParams,
    SchemaMismatchTestParam (all delegate to toString())
  • ConfigTests::ConfigTestParams (cols:inputCols)

Differential Revision: D96759255

@netlify
Copy link

netlify bot commented Mar 16, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 8cbf091
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69b8d1c72299cf000895fc31

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 16, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 16, 2026

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

@pedroerp pedroerp changed the title Add PrintTo for test param structs to improve gtest output test: Add PrintTo for test param structs to improve gtest output Mar 16, 2026
@Yuhta
Copy link
Contributor

Yuhta commented Mar 16, 2026

Builds are failing

@meta-codesync meta-codesync bot changed the title test: Add PrintTo for test param structs to improve gtest output test: Add PrintTo for test param structs to improve gtest output (#16796) Mar 17, 2026
pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Mar 17, 2026
…ebookincubator#16796)

Summary:

Add `PrintTo` overloads for parameterized test structs that were missing
them. Without these, gtest falls back to dumping raw bytes in diagnostic
output (e.g. `# GetParam() = 16-byte object <01-00 00-00 ...>`), making
CI logs hard to read.

Structs updated:
- SpillerTest::TestParam (delegates to toString())
- HashJoinBridgeTest::TestParam (probers:N_builders:M)
- OutputBufferManagerTest::TestParam (kind_serde)
- SpillTest::TestParam (delegates to toString())
- MinMaxByAggregationTest::TestParam (valueType_comparisonType)
- RawVectorTest::TestParam (withPool/noPool)
- TestColumnReader: ReaderTestParams, NonSelectiveReaderTestParams,
  SchemaMismatchTestParam (all delegate to toString())
- ConfigTests::ConfigTestParams (cols:inputCols)

Differential Revision: D96759255
pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Mar 17, 2026
…ebookincubator#16796)

Summary:

Add `PrintTo` overloads for parameterized test structs that were missing
them. Without these, gtest falls back to dumping raw bytes in diagnostic
output (e.g. `# GetParam() = 16-byte object <01-00 00-00 ...>`), making
CI logs hard to read.

Structs updated:
- SpillerTest::TestParam (delegates to toString())
- HashJoinBridgeTest::TestParam (probers:N_builders:M)
- OutputBufferManagerTest::TestParam (kind_serde)
- SpillTest::TestParam (delegates to toString())
- MinMaxByAggregationTest::TestParam (valueType_comparisonType)
- RawVectorTest::TestParam (withPool/noPool)
- TestColumnReader: ReaderTestParams, NonSelectiveReaderTestParams,
  SchemaMismatchTestParam (all delegate to toString())
- ConfigTests::ConfigTestParams (cols:inputCols)

Differential Revision: D96759255
…ebookincubator#16796)

Summary:
Pull Request resolved: facebookincubator#16796

Add `PrintTo` overloads for parameterized test structs that were missing
them. Without these, gtest falls back to dumping raw bytes in diagnostic
output (e.g. `# GetParam() = 16-byte object <01-00 00-00 ...>`), making
CI logs hard to read.

Structs updated:
- SpillerTest::TestParam (delegates to toString())
- HashJoinBridgeTest::TestParam (probers:N_builders:M)
- OutputBufferManagerTest::TestParam (kind_serde)
- SpillTest::TestParam (delegates to toString())
- MinMaxByAggregationTest::TestParam (valueType_comparisonType)
- RawVectorTest::TestParam (withPool/noPool)
- TestColumnReader: ReaderTestParams, NonSelectiveReaderTestParams,
  SchemaMismatchTestParam (all delegate to toString())
- ConfigTests::ConfigTestParams (cols:inputCols)

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants