Skip to content

[BUG] Tests are failing but the pipeline still passes #544

@surajssd

Description

@surajssd

The pipeline CI fails as follows:

...
running tests as csuser

Starting discovery in 1 files.
Discovery found 32 tests in [19](https://github.com/Azure/CloudShell/actions/runs/14607147032/job/40978343605#step:9:20)0ms.
Running tests.
[-] Various programs installed with expected versions.Compare bash commands to baseline 164ms (163ms|2ms)
 Expected strings to be the same, because Commands 'containerd-shim,containerd-shim-runc-v1,dnssec-cds,dnssec-dsfromkey,dnssec-importkey,dnssec-keyfromlabel,dnssec-keygen,dnssec-ksr,dnssec-revoke,dnssec-settime,dnssec-signzone,dnssec-verify,mdig,named,named-checkconf,named-journalprint,named-rrchecker,rndc,rndc-confgen' should be installed on the path but were not found. No commands should have been removed unexpectedly. If one really should be deleted, remove it from command_list, but they were different.
 Expected length: 0
 Actual length:   268
 Strings differ at index 0.
 Expected: ''
 But was:  'containerd-shim,containerd-shim-runc-v1,dnssec-cds,dnssec-ds...'
            ^
 at $missing | Should -Be "" -Because "Commands '$missing' should be installed on the path but were not found. No commands should have been removed unexpectedly. If one really should be deleted, remove it from command_list", /tests/PSinLinuxCloudShellImage.Tests.ps1:67
 at <ScriptBlock>, /tests/PSinLinuxCloudShellImage.Tests.ps1:67
Tests completed in 101.96s
Tests Passed: [31](https://github.com/Azure/CloudShell/actions/runs/14607147032/job/40978343605#step:9:32), Failed: 1, Skipped: 0, Inconclusive: 0, NotRun: 0
Testing maven installation
/tmp/tmp.ip6g2vTbc8 /usr/cloudshell
[INFO] Scanning for projects...
...

Source: https://github.com/Azure/CloudShell/actions/runs/14607147032/job/40978343605#step:9:24

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage-neededTriage needed by Cloud Shell teambugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions