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

Support installation from EPEL #3

Merged
merged 5 commits into from Nov 14, 2022
Merged

Support installation from EPEL #3

merged 5 commits into from Nov 14, 2022

Conversation

traylenator
Copy link
Contributor

Now that apptainer is available from EPEL allow installations with traditional package installation.

@traylenator traylenator marked this pull request as ready for review November 2, 2022 14:22
@traylenator
Copy link
Contributor Author

Sorry have not run the tests locally (failed to install gemset) so 🤞 ...

manifests/install/os.pp Outdated Show resolved Hide resolved
manifests/install/os.pp Outdated Show resolved Hide resolved
manifests/init.pp Outdated Show resolved Hide resolved
@traylenator
Copy link
Contributor Author

Apologies I forced pushed with out realising you had reviewed, in particular the apptianer-suid package may need to be installed.

I will make the changes you have suggested.

@treydock
Copy link
Owner

treydock commented Nov 3, 2022

I think only thing missing is acceptance test for the os install method. https://github.com/treydock/puppet-module-apptainer/blob/main/spec/acceptance/01_class_spec.rb. - I wouldn't worry about testing downgrade/upgrade like the other tests, just validate can install apptainer from OS packages. I think likely easiest to add your tests as first ones in the file and just remove the OS packages at beginning of next set of tests.

spec/classes/init_spec.rb Outdated Show resolved Hide resolved
@traylenator
Copy link
Contributor Author

Re theissing yumrepo do spec tests use fixtures file or metadata file?

@treydock
Copy link
Owner

treydock commented Nov 7, 2022

Re theissing yumrepo do spec tests use fixtures file or metadata file?

The unit tests use .fixtures.yml but the acceptance tests use metadata.json but for yumrepo_core, that's part of puppet-agent so don't need to include in metadata.json usually.

manifests/install/os.pp Outdated Show resolved Hide resolved
manifests/install/os.pp Outdated Show resolved Hide resolved
@treydock
Copy link
Owner

treydock commented Nov 7, 2022

I can't get EL7 tests to pass. Something is broken with docker testing that I can't reproduce on my laptop. I did some updates in another PR to add install_setuid parameter and fix some other failing tests.

@treydock
Copy link
Owner

treydock commented Nov 8, 2022

@traylenator I had to update main branch to support Apptainer 1.1.x and that required doing the EPEL adds there. So now the only change necessary in this PR is adding the OS install bits, the EPEL inclusion is done in init.pp.

@traylenator
Copy link
Contributor Author

Yep noticed some of that, and the new install_suid (or what ever it is) parameter which I'll take note of.

Now that apptainer is available from EPEL allow installations
with traditional package installation.
@traylenator
Copy link
Contributor Author

By the way , feel free to request a review from me in the future.

@traylenator
Copy link
Contributor Author

acceptence tests fail since signularity module is not present but that is not surprising, unclear to me how it passed previously...

end
end

context 'with singularity' do
Copy link
Owner

Choose a reason for hiding this comment

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

I removed the singularity tests because it's no longer possible to install singularity packages since apptainer obsoletes singularity packages.

@treydock
Copy link
Owner

acceptence tests fail since signularity module is not present but that is not surprising, unclear to me how it passed previously...

In recent PRs I removed the singularity module and singularity tests because it's no longer possible to install singularity RPMs from EPEL as apptainer now provides the singularity package via obsoletes I believe.

@traylenator
Copy link
Contributor Author

Test failures look unrelated.

@treydock
Copy link
Owner

They are unrelated. Something is broken with CentOS 7 tests and what's odd is other modules I have use exact same setup for testing and don't have this issue.

@treydock treydock merged commit e564e73 into treydock:main Nov 14, 2022
@treydock treydock added the enhancement New feature or request label Nov 14, 2022
@treydock
Copy link
Owner

This will be released with 1.0.0 once the Github Actions complete.

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

Successfully merging this pull request may close these issues.

None yet

2 participants