Repository navigation
fix(tests): update log generator to Azure Linux 3.0 and fix Ruby CI - #1838
Open
zanejohnson-azure wants to merge 3 commits into
Open
zanejohnson-azure wants to merge 3 commits into
zanejohnson-azure wants to merge 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
suyadav1
previously approved these changes
Nov 13, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcr.microsoft.com/cbl-mariner/busybox:2.0withmcr.microsoft.com/azurelinux/base/core:3.0in the Linux all-nodes log-generator DaemonSet to move away from the image reported as vulnerable.jwt3.2.0 in the Ruby unit-test workflow, matching the Linux image's dependency instead of relying on runner-provided gems.Why the Ruby CI changes are needed
These are test-environment fixes, independent of the log-generator image replacement. Recent passing Ruby jobs used Ubuntu 24.04, while the failing jobs resolved
ubuntu-latestto Ubuntu 26.04. This runner transition coincided with the failures; we have not performed a controlled same-commit comparison to establish its exact causal role.Explicitly install jwt
source/plugins/ruby/KubernetesApiClient.rbrequiresjwt, but the unit-test workflow only installed Fluentd, ipaddress, and tomlrb. Both node tests failed withLoadError: cannot load such file -- jwton the newer runner, and the same error was observed onci_prod. Installingjwtexplicitly makes this required test dependency independent of the runner's preinstalled environment. Version 3.2.0 matcheskubernetes/linux/setup.sh. We have not established why the gem was available in earlier passing jobs.Avoid exact Ruby exception-message matching
After installing
jwt, CI progressed past the load errors and exposed a failure inInKubeNodesTests#test_malformed_node_spec. The telemetry stub accepted only the exact stringundefined method \[]' for nil:NilClass, coupling the test to Ruby's exception-message formatting. Both node-test stubs now check the semantic properties instead: the exception must be aNoMethodError, its method name must be:[], and its receiver must benil`. This preserves the expected-error check across Ruby versions without changing production code or suppressing unexpected exceptions; unexpected exceptions are re-raised with their original details.Validation
git diff --checkpassed.sh,bash,date, andsleepare present.