Skip to content

Comments

test: ensure package tests run when they should#148

Merged
patrick-stephens merged 3 commits intomainfrom
add_rpm_tests
Dec 10, 2025
Merged

test: ensure package tests run when they should#148
patrick-stephens merged 3 commits intomainfrom
add_rpm_tests

Conversation

@patrick-stephens
Copy link
Contributor

@patrick-stephens patrick-stephens commented Dec 10, 2025

Follow on work from #147 - RPM tests were working locally but not in CI.
Now we specify an env var to exist when packages should be installed so this is treated as a failure and not just skipped.


Summary by cubic

Make package functional tests fail when the agent package is expected but missing, preventing false passes in CI. This adds an env flag to the test container and updates tests to respect it.

  • Bug Fixes
    • Add FLUENTDO_AGENT_PACKAGE_INSTALLED=true to test containers.
    • Introduce skipIfPackageNotInstalled helper and use it in RPM/DEB/file tests.
    • Log rpm -qa and dpkg -l in teardown for easier debugging.

Written for commit cedd068. Summary will update automatically on new commits.

Signed-off-by: Patrick Stephens <pat@fluent.do>
Signed-off-by: Patrick Stephens <pat@fluent.do>
@patrick-stephens patrick-stephens added build-packages Option to enable all package builds for a PR to test and removed build-packages Option to enable all package builds for a PR to test labels Dec 10, 2025
Signed-off-by: Patrick Stephens <pat@fluent.do>
@patrick-stephens patrick-stephens marked this pull request as ready for review December 10, 2025 10:41
@patrick-stephens patrick-stephens requested a review from a team December 10, 2025 10:41
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 5 files

@patrick-stephens patrick-stephens merged commit e4f54ea into main Dec 10, 2025
43 checks passed
@patrick-stephens patrick-stephens deleted the add_rpm_tests branch December 10, 2025 12: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.

1 participant