Jenkins setup:
Our Jenkins is a Ubuntu Container on a proxmox environment. Agent host are 3 MacOs hosts that are identical. Each Agent host has 4 agent nodes which are set up as “Launch agents via SSH”
the agent is:
`
Unix agent, version 3248.3250.v3277a_8e88c9b_
Using JDK 19
`
vm_stat for the agent :
Mach Virtual Memory Statistics: (page size of 16384 bytes)
Pages free: 1464.
Pages active: 1252895.
Pages inactive: 1247197.
Pages speculative: 4308.
Pages throttled: 0.
Pages wired down: 194045.
Pages purgeable: 16.
"Translation faults": 125089871673.
Pages copy-on-write: 3808674686.
Pages zero filled: 42643370187.
Pages reactivated: 12866462578.
Pages purged: 29602958.
File-backed pages: 529090.
Anonymous pages: 1975310.
Pages stored in compressor: 2795315.
Pages occupied by compressor: 1444460.
Decompressions: 7350162254.
Compressions: 7488429512.
Pageins: 1804827000.
Pageouts: 3643868.
Swapins: 0.
Swapouts: 0.
Software:
System Software Overview:
System Version: macOS 14.5 (23F79)
Kernel Version: Darwin 23.5.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: Machost1
User Name: ios (ios)
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 76 days, 23 hours, 29 minutes
Hardware:
Hardware Overview:
Model Name: Mac Studio
Model Identifier: Mac13,1
Model Number: Z14J000JLD/A
Chip: Apple M1 Max
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 64 GB
System Firmware Version: 10151.121.1
OS Loader Version: 10151.121.1
Activation Lock Status: Disabled
we are starting unit and several tests using fastlane with the command below
fastlane test deployment_target_version:17.5
lane :integration_test do |options|
ios_test(
scheme: "IntegrationTests",
deployment_target_version: options[:deployment_target_version]
)
end
so it uses xcode Schemes that are defined in repository.
When we do the tests on xcode or fastlane on our local M1 Apples it works without any error. When it runs on Jenkins pipeline probability of success is %50. Sometimes it fails sometimes it does not.
Here is an example of test result.
Failing tests:
-[VSFileNameGeneratorTests testWhenCurrentTimeIsZeroThenClientIdContainsZero]
-[NSObject_SwizzlingsTests testWhenTryingToDisablePredictiveTextThenPrivateMethodForSpellingPreferenceExists]
I would really appreciate any idea about what the problem can be and where I should look.