Skip to content

Conversation

@xelArga
Copy link
Collaborator

@xelArga xelArga commented Oct 20, 2025

Description

This PR addresses the issue with amalgamation, and the subsequent problems that came from the sorting tests with the distribution files.

What was changed

Amalgamation.py

A method in the amalgamation process was blindly adding .c files to corresponding headers, even when they weren't there. It now does a check to make sure it's actually in the source file nodes, as the external_sort.h file is used as a wrapper of sorts for external sort methods, and has no corresponding .c file pair.

Makefile

I updated the flags for the dist build to include the /src as for some reason it wasn't retrieving the active rules and other imports correctly for make on windows (it worked on WSL or Linux just fine).

Tests

The test sort query didn't have the proper macro definitions for DIST testing as done in other test methods, so I did so as done in others. I also moved the setup to the setup() method and the tear down to the tearDown() method as consistent with other tests. I also noticed this test has a second similar test that isn't even run, which could be addressed down the line.

The same macro issue was in the in memory sort test as well, and the macros were updated.

Workflow

I updated the dist workflow to be like the desktop version to not run in matrix so the flags work as expected for windows as they did on desktop.

@xelArga xelArga changed the title 150 fix the test sort failing unit test Fix amalgamation and distribution test setup Oct 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

Makefile Ubuntu Unit Test Results

  1 files  ±0   17 suites  ±0   0s ⏱️ ±0s
113 tests ±0  113 ✅ ±0  0 💤 ±0  0 ❌ ±0 
139 runs  ±0  139 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit dfd9f61. ± Comparison against base commit c09dc2a.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

PlatformIO Ubuntu Unit Test Results

  1 files  ±0  102 suites  ±0   32s ⏱️ +8s
113 tests ±0  113 ✅ ±0  0 💤 ±0  0 ❌ ±0 
139 runs  ±0  139 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit dfd9f61. ± Comparison against base commit c09dc2a.

♻️ This comment has been updated with latest results.

@xelArga xelArga merged commit 2dc9d7b into main Oct 20, 2025
24 of 26 checks passed
@xelArga xelArga deleted the 150-fix-the-test_sort-failing-unit-test branch October 20, 2025 21:42
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.

3 participants