Skip to content

chore: add dump test case to verify index sorted order#135

Merged
tianzhou merged 3 commits intomainfrom
index-operator
Oct 31, 2025
Merged

chore: add dump test case to verify index sorted order#135
tianzhou merged 3 commits intomainfrom
index-operator

Conversation

@tianzhou
Copy link
Contributor

Verify #133

Copilot AI review requested due to automatic review settings October 31, 2025 10:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a comprehensive test case to verify that database indexes are dumped in alphabetical order rather than their creation order, addressing GitHub issue #133. This ensures consistent and predictable output from the pgschema dump command.

  • Adds test data files for the issue_133_index_sort test case
  • Includes integration test for the new test case
  • Validates alphabetical ordering of indexes in dump output

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
testdata/dump/issue_133_index_sort/raw.sql Defines test schema with indexes created in non-alphabetical order to validate sorting behavior
testdata/dump/issue_133_index_sort/pgschema.sql Expected output from pgschema showing indexes sorted alphabetically
testdata/dump/issue_133_index_sort/pgdump.sql Reference output from pg_dump showing indexes in alphabetical order
testdata/dump/issue_133_index_sort/manifest.json Test metadata describing the purpose and expectations of the test case
cmd/dump/dump_integration_test.go Adds integration test function to execute the new test case

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou merged commit 3cbbf10 into main Oct 31, 2025
8 checks passed
@tianzhou tianzhou deleted the index-operator branch November 23, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants