-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Update macOS agent to 10.15 Catalina #6680
Conversation
It correctly picked up the new version (https://dev.azure.com/trailofbits/osquery/_build/results?buildId=3828&view=logs&j=7087e851-80cb-52bb-c098-0ae67b77f687&t=ffe76d4b-c1d9-4998-b70a-742ec95e6afe&l=6) but couple of macOS tests are failing. These are the same macOS tests that have failed on other older PRs. |
@alessandrogario @Smjert thoughts on this? |
For the wifi table failure, could this be related? #6235 For the startup_items one, seems a simple suffix
For the integration tests we have:
and the failing check is osquery/tests/integration/tables/apps.cpp Lines 52 to 55 in ecc5403
So I guess that CI installations do not (always?) have Preview.app. Then we have:
and the failing check is: osquery/tests/integration/tables/browser_plugins.cpp Lines 39 to 41 in ecc5403
So here too probably not all installation contains a browser with plugins? I'm not sure what is considered normal (the presence or possible absence). |
Somehow, after upgrading Xcode, Trying closing/reopening PR just in case. |
Weird: for the macOS Debug build it found |
From the logs on the macOS Release build, it seems like
Does this seem like a transient issue given that the Debug build worked just fine? |
If you close and reopen the PR it will run all the tests again (this is a good trick for discovering flaky/transient issues). |
There is no way to ssh into the test runner/instance right? The
But the |
Looking on the CI, it seems that it's bound to a specific version of the image.
So there might be something in the env vars or install paths that's misconfigured, which impedes python to find system installed libraries.
Not that I know of; I've searched in the past but there's no mention about it or options on the UI I could find. |
Thanks @Smjert, that's super helpful. It seems we are hitting actions/runner-images#1819 and actions/runner-images#1818 |
@sharvilshah I think those two issues have been fixed, there are other test failures now. About updating the xcode toolchain version, can we also update it in the docs? Thanks! |
This will also help with the EndpointSecurity work
Looks like one more fix to table integration tests (or actual table code) is needed: browser_plugins. |
Okay, taking a look. |
Regarding the failing Starting with macOS 10.15 Catalina, C/NPAPI plugins are deprecated, and QuickTime being one of them is removed. Hence there are no plugins installed on the system by default. Is there still any value to having this test? We can of course branch... if running on < 10.15, validate rows, if not assume non exists. Thoughts? |
Good find, yeah I think we should branch and test the two distinct expectations. |
Thanks @theopolis! I think this should be good to go now. |
Not to derail this, but I want to point out building on Big Sur vs Catalina will impact the I realize it's late in the game to consider using 11.x vs 10.15 but I just wanted to throw this out there in case there isn't much new test breakage building on Big Sur vs Catalina. |
There's no Big Sur support on Azure Pipelines for now unfortunately. |
Hey @terracatta, thanks! I am aware about the version differences, but as Stefano mentioned, Big Sur images aren't yet available on Azure Pipelines or Github Actions. This just moves the needle from Mojave on the CI. |
Updating the Azure Pipelines agent to use 10.15 Catalina image. This will also help with the EndpointSecurity work.
Here is the agent info: https://github.com/microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.15-Readme.md
Closes #6707