Hi Tom,

I have always found the azure pipeline to be slow, but I found that it
actually does support having your own runners / agents. I set up 8 of
them on ruru:

https://dev.azure.com/simon0972/u-boot/_build/results?buildId=90&view=results

It sort-of works but I get this error:

Plugin: terminalreporter, Hook: pytest_sessionfinish
PermissionError: [Errno 13] Permission denied: '/home/azure/azure/agent3'

There's some strange things in the script about user permissions. I
have the job running as the 'azure' user, if that matters.

https://dev.azure.com/simon0972/u-boot/_build/results?buildId=90&view=logs&j=9e29582b-d0a0-5467-6dcf-a3d3e6c87501&t=79f48d58-f5a8-5041-69c0-6dcb1e113d04

The problem seems to be that System.DefaultWorkingDirectory is set to
'agent3' even for other agents, in some cases:

azure@ruru:~/azure$ ls
agent1  agent3  agent5  agent7   vsts-agent-linux-x64-4.255.0.tar.gz
agent2  agent4  agent6  myagent

azure@ruru:~/azure$ grep -rs agent3 agent4
agent4/_work/1/testsh/test.sh:./test/py/test.py -ra -o
cache_dir="$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --bd ${TEST_PY_BD}
${TEST_PY_ID} ${TEST_PY_EXTRA} ${TEST_PY_TEST_SPEC:+"-k
${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR"
--report-dir "$UBOOT_TRAVIS_BUILD_DIR"
--junitxml=\/home/azure/azure/agent3/_work/1/s/results.xml
agent4/_diag/pages/173b639e-3618-4148-8dad-bf8e2c733763_1.log:2025-05-30T13:21:08.9893891Z
+ ./test/py/test.py -ra -o cache_dir=/tmp/sandbox/.pytest_cache --bd
sandbox --build-dir /tmp/sandbox --report-dir /tmp/sandbox
--junitxml=/home/azure/azure/agent3/_work/1/s/results.xml
agent4/_diag/pages/43dd2b38-f02d-4f5c-9938-f9411d19a44c_1.log:2025-05-30T13:21:08.9893894Z
+ ./test/py/test.py -ra -o cache_dir=/tmp/sandbox/.pytest_cache --bd
sandbox --build-dir /tmp/sandbox --report-dir /tmp/sandbox
--junitxml=/home/azure/azure/agent3/_work/1/s/results.xml

azure@ruru:~/azure$ grep -rs agent3 agent2
agent2/_work/1/testsh/test.sh:./test/py/test.py -ra -o
cache_dir="$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --bd ${TEST_PY_BD}
${TEST_PY_ID} ${TEST_PY_EXTRA} ${TEST_PY_TEST_SPEC:+"-k
${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR"
--report-dir "$UBOOT_TRAVIS_BUILD_DIR"
--junitxml=\/home/azure/azure/agent3/_work/1/s/results.xml
agent2/_diag/pages/6bd29aa6-be66-4287-a442-3d8108258ca0_1.log:2025-05-30T13:24:34.1360963Z
+ ./test/py/test.py -ra -o cache_dir=/tmp/sandbox64/.pytest_cache --bd
sandbox64 --build-dir /tmp/sandbox64 --report-dir /tmp/sandbox64
--junitxml=/home/azure/azure/agent3/_work/1/s/results.xml
agent2/_diag/pages/26bdbd5f-9710-46ad-88c1-5e99a7c3cde6_1.log:2025-05-30T13:24:34.1360950Z
+ ./test/py/test.py -ra -o cache_dir=/tmp/sandbox64/.pytest_cache --bd
sandbox64 --build-dir /tmp/sandbox64 --report-dir /tmp/sandbox64
--junitxml=/home/azure/azure/agent3/_work/1/s/results.xml
azure@ruru:~/azure$

It seems a bit strange. If you have any ideas, please let me know.

Regards,
Simon

Reply via email to