Skip to content

Conversation

@cianc
Copy link
Contributor

@cianc cianc commented Nov 28, 2025

Description

Sort CSV headers before comparing so that we don't spuriously create backup output files.

Related Issue

Please link to the issue this PR resolves: #987

Motivation and Context

Fix for linked issue.

How Has This Been Tested?

Added a new test.

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This requires adding logfire as a dev dependency so we can import it in tests.
Also make it clearer which `EmissionsData` params are unnecessary for the `out`
and `live_out` methods.
@cianc cianc marked this pull request as ready for review November 28, 2025 13:58
@cianc cianc requested a review from a team as a code owner November 28, 2025 13:58
Copy link
Contributor

@benoit-cty benoit-cty left a comment

Choose a reason for hiding this comment

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

Thank you very much.

@benoit-cty benoit-cty merged commit d0ff5e4 into master Nov 29, 2025
11 checks passed
@benoit-cty benoit-cty deleted the bug/csv_ordering branch November 29, 2025 08:52
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.

CSV backup files randomly created due to inconsistent column ordering

3 participants