You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Configuration
Operating system:
PlatformIO Version (platformio --version): 6.1.14
Description of problem
Unit test builds produce statically linked output files of my application for every test:
Comment out test_testing_command from app/pio/config.ini
Run platformio test -e native_test
Actual Results
The total build output of .pio/build/native_test/ is 750MB+ because it has the main.o for every test program build.
Expected Results
The build output of .pio/build/native_test/ is ~120MB because it only has the most recent test program and not intermediate files.
Additional info
I'm running CI builds in RAM because it makes builds faster and avoids disk I/O for build output that will be discarded. There's not enough RAM dedicated to my CI host for this quantity of build output, especially when it's unnecessary.
It is difficult to do this with a wrapper script because obtaining the environment name for a custom test_testing_command with non-environment sections and sections that extend other sections is not trivial: #4480#4531#4882. Without the environment name the script wouldn't know where the current build output is to delete it, or where the test program is to run it.
The text was updated successfully, but these errors were encountered:
nomis
added a commit
to nomis/mcu-app
that referenced
this issue
Mar 24, 2024
What kind of issue is this?
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Configuration
Operating system:
PlatformIO Version (
platformio --version
): 6.1.14Description of problem
Unit test builds produce statically linked output files of my application for every test:
This makes CI builds difficult because they use a lot of storage unnecessarily.
I'd like an option to delete intermediate output when running tests (and use less storage for CI builds in general).
Steps to Reproduce
git submodule update --init --depth 1
(not--recursive
)test_testing_command
fromapp/pio/config.ini
platformio test -e native_test
Actual Results
The total build output of
.pio/build/native_test/
is 750MB+ because it has themain.o
for every test program build.Expected Results
The build output of
.pio/build/native_test/
is ~120MB because it only has the most recent test program and not intermediate files.Additional info
I'm running CI builds in RAM because it makes builds faster and avoids disk I/O for build output that will be discarded. There's not enough RAM dedicated to my CI host for this quantity of build output, especially when it's unnecessary.
It is difficult to do this with a wrapper script because obtaining the environment name for a custom test_testing_command with non-environment sections and sections that extend other sections is not trivial: #4480 #4531 #4882. Without the environment name the script wouldn't know where the current build output is to delete it, or where the test program is to run it.
The text was updated successfully, but these errors were encountered: