Skip to content

[ci] fix linux package tests#7101

Merged
AenBleidd merged 1 commit into
masterfrom
vko_fix_linux_package_tests
May 29, 2026
Merged

[ci] fix linux package tests#7101
AenBleidd merged 1 commit into
masterfrom
vko_fix_linux_package_tests

Conversation

@AenBleidd

@AenBleidd AenBleidd commented May 29, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Fixes Linux package integration tests by supporting multiple CA certificate bundle locations. Prevents false negatives on distros with different CA bundle paths.

  • Bug Fixes
    • Replaced single-path lookup with _get_ca_certificates_file_paths() that returns all existing system CA bundle paths.
    • Updated tests to require at least one valid path and to assert the ca-bundle.crt symlink targets one of them.

Written for commit 219ce30. Summary will update on new commits.

Review in cubic

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Linux package integration test suite to be distro-tolerant regarding the system CA certificate bundle location, preventing false negatives when the CA bundle path differs across distributions.

Changes:

  • Replaced single CA bundle path lookup with _get_ca_certificates_file_paths() that collects all existing known CA bundle locations.
  • Updated assertions to require at least one CA bundle path to exist and to validate ca-bundle.crt links to one of them.

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

Comment on lines +166 to +169
ts.expect_true(len(self._get_ca_certificates_file_paths()) > 0, "Test system 'ca-certificates.crt' file exists")
ts.expect_true(os.path.exists("/var/lib/boinc/ca-bundle.crt"), "Test 'ca-bundle.crt' file exists in '/var/lib/boinc/'")
ts.expect_true(os.path.islink("/var/lib/boinc/ca-bundle.crt"), "Test '/var/lib/boinc/ca-bundle.crt' file is a symbolic link")
ts.expect_equal(self._get_ca_certificates_file_path(), os.readlink("/var/lib/boinc/ca-bundle.crt"), "Test '/var/lib/boinc/ca-bundle.crt' file is a symbolic link to the system 'ca-certificates.crt' file")
ts.expect_true(os.readlink("/var/lib/boinc/ca-bundle.crt") in self._get_ca_certificates_file_paths(), "Test '/var/lib/boinc/ca-bundle.crt' file is a symbolic link to the system 'ca-certificates.crt' file")
@AenBleidd AenBleidd merged commit 75d4e53 into master May 29, 2026
273 checks passed
@AenBleidd AenBleidd deleted the vko_fix_linux_package_tests branch May 29, 2026 10:41
@github-project-automation github-project-automation Bot moved this from In progress to Merged in Client/Manager May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants