Skip to content
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

arm64 builds: unit tests #11830

Merged
merged 3 commits into from
Feb 25, 2025
Merged

arm64 builds: unit tests #11830

merged 3 commits into from
Feb 25, 2025

Conversation

valentijnscholten
Copy link
Member

@valentijnscholten valentijnscholten commented Feb 16, 2025

Description

This PR takes another step towards publishing arm64 images (continuing on from #11673)
Most tutorials for multi platform builds just add a few lines to install Qemy and add -platforms: linux/amd64,linux/arm64 and are done. Unfortunately our nice python wheels such as uwsgi don't get build successfully under Qemu.
So we have run the builds natively on Githubs arm64 runners.

Steps taken (before I knew that native runners was the only way):

  • Build locally for arm64 with Qemu -> FAILED
  • Try to switch our builds to install upstream binaries for uwsgi so we don't have to build them -> FAILED
  • Build on a AWS t4g instance -> FAILED (With PyOpenSSL error)
  • Build on a GitHub ARM runner -> FAILED (With PyOpenSSL error)

At first the PyOpenSSL error seemed related to ARM64 as I had no other reports.
So I thought it was a good idea to run the unit tests also on arm64 runners to make sure they work.
Afterwards I found out the PyOpenSSL error was also present on amd64 and I fixed that.
Now that we have unit tests working in GitHub actions anyway, I think it's good to have them running.
At least for a while during the next couple of releases to see if anything pops up on these arm64 builds.

The integration test are not run for arm64. These tests are fully based on Chrome for which there is no arm64 build.
I tried to switch the integration tests to Chromium, but that would need some more work: #11810 and might not be worth it.

Test results
GitHub usually doesn't take workflow definitions from forks, so I created a branch in the Defect Dojo repository.
GitHub might still not pick up the workflow changes as it may look at master. Let's see if we have to wait until the next monthly release.

Next steps (in another PR)

  • Publish the arm64 images during our releases

@valentijnscholten valentijnscholten changed the title Multi Platform Builds: unit tests arm64 builds: unit tests Feb 16, 2025
@valentijnscholten valentijnscholten marked this pull request as ready for review February 16, 2025 18:44
Copy link

dryrunsecurity bot commented Feb 16, 2025

DryRun Security Summary

Multiple GitHub Actions workflow files were updated to enable dynamic runner selection, modify Docker paths, and increase timeouts, introducing both enhanced testing flexibility and potential security considerations around configuration exposure and extended build times.

Expand for full summary

The PR updates multiple GitHub Actions workflow files to support dynamic runner selection, modify Docker image loading paths, and increase test timeouts across various workflows. Security findings include: 1) Potential configuration risks from dynamic runner selection in .github/workflows/build-docker-images-for-testing.yml, 2) Environment variable interpolation that might expose internal naming conventions, 3) Increased build timeouts potentially extending exposure during build processes, and 4) Workflow configurations that now support more flexible cross-platform testing environments.

Code Analysis

We ran 9 analyzers against 7 files and 0 analyzers had findings. 9 analyzers had no findings.

View PR in the DryRun Dashboard.

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

1 similar comment
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@valentijnscholten
Copy link
Member Author

valentijnscholten commented Feb 21, 2025 via email

@Maffooch
Copy link
Contributor

@valentijnscholten I would also like a 25% refund on my monitor 😂

@valentijnscholten
Copy link
Member Author

Consider it done. @Maffooch 😅

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

@dogboat dogboat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

25% coupon applied.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@Maffooch Maffooch merged commit ded75a4 into dev Feb 25, 2025
81 checks passed
@Maffooch Maffooch deleted the arm64-unit-tests branch February 25, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants