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

Enhancements possible for packer-image pipeline #4564

Open
4 tasks
smerle33 opened this issue Feb 27, 2025 · 0 comments
Open
4 tasks

Enhancements possible for packer-image pipeline #4564

smerle33 opened this issue Feb 27, 2025 · 0 comments
Assignees
Labels

Comments

@smerle33
Copy link
Contributor

Summary

When creating Pull Request on packer-images repository the pipeline check all matrix elements, it takes time, and money plus it often fail for timeout.

Those tests can be limited for Pull Request and run the full batch for main and tags.

[x] - We can also prevent the publication of those images on both amazon (https://developer.hashicorp.com/packer/integrations/hashicorp/amazon/latest/components/builder/ebs) and azure (https://developer.hashicorp.com/packer/integrations/hashicorp/azure/latest/components/builder/arm)

Now the matrix contains:

CPU ARCHITECTURE : amd-intel / arm64
OS: window / linux
OS VERSION: windows 2022 / windows 2019 / Ubuntu 22.04
PROVIDERS: Docker / Amazon / Azure

We can limit by architecture

  • docker linux amd-intel ubuntu 22.04 (around 20mn)
  • docker linux arm64 ubuntu 22.04 (around 20mn)
  • AWS linux amd-intel ubuntu 22.04 (around 30mn)
  • ** AWS windows 2019 ** (here a great option would be to not test on windows except if a label / or / commit message explicitly asked for it ... not sure it's possible / check on file change if build on windows are needed)
    • option of a "fullscan" label to force full checks
    • by default, check on linux only expect if files concerning windows are changed (checkout scm + when file change)

and once the windows will be available as kubernetes pods, we would be able to add them in PR checks

We could also analyse the file list impacted within the PullRequest to limit the tests, for example if the windows provider file [windows-provision.ps1](https://github.com/jenkins-infra/packer-images/blob/main/provisioning/windows-provision.ps1)is modified, we have to play a windows test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant