Skip to content

Seeing permission errors running tests in toolkit folder in onebranch pipeline. #11372

@aditimalladi

Description

@aditimalladi

Seeing permissions errors running upstream toolkit tests in Azure Devops pipelines.
Snippet of the failing tests:

ERRO[0000][safechroot_test] Mount of () to (/tmp/TestInitializeShouldCreateRoot3147199148/001/TestInitializeShouldCreateRoot/dev) failed. Error: operation not permitted 
WARN[0000][safechroot_test] Error creating mountpoints for chroot        
--- FAIL: TestInitializeShouldCreateRoot (0.00s)
    safechroot_test.go:60: 
            Error Trace:	/__w/1/s/.pipelines/toolkit/tools/internal/safechroot/safechroot_test.go:60
            Error:      	Received unexpected error:
                        	operation not permitted
            Test:       	TestInitializeShouldCreateRoot
    safechroot_test.go:65: 
            Error Trace:	/__w/1/s/.pipelines/toolkit/tools/internal/safechroot/safechroot_test.go:65
            Error:      	Should be true
            Test:       	TestInitializeShouldCreateRoot
ERRO[0000][safechroot_test] Mount of () to (/tmp/TestCloseShouldRemoveRoot3825882244/001/TestCloseShouldRemoveRoot/dev) failed. Error: operation not permitted 

We use the azurelinux toolkit to build a RPMS package to be published.
As these tests are already maintained and run upstream, is there a flag that we can pass to skip running all these tests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions