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

Add the ability to install puppet-agent from a local dev build #239

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Feb 2, 2024

If the DEV_BUILD_PATH environment variable is set and refers to a puppet-agent package, then it will be scp'ed to the remote system and installed. This makes it possible to run beaker tests on a platform without needing to generate repos or ship artifacts.

export DEV_BUILD_PATH=/home/josh/work/puppet-agent/output/sles/12/puppet8/x86_64/puppet-agent-8.3.1.65.gc65ba7001-1.sles12.x86_64.rpm
floaty get sles-12-x86_64
bundle exec beaker-hostgenerator 'sles12-64a{hypervisor=none,vmhostname=<hostname>}' > hosts.yaml
bundle exec rake ci:test:setup SHA=8.3.1 HOSTS=hosts.yaml
bundle exec beaker exec <test>

Where <hostname> is the fqdn of the remote system and <test> is the file or directory of tests to execute against the remote system.

@joshcooper joshcooper requested a review from a team as a code owner February 2, 2024 18:57
If the `DEV_BUILD_PATH` environment variable is set and refers to a
puppet-agent package, then it will be scp'ed to the remote system and
installed. This makes it possible to run beaker tests on a platform
without needing to generate repos or ship artifacts.

    export DEV_BUILD_PATH=/home/josh/work/puppet-agent/output/sles/12/puppet8/x86_64/puppet-agent-8.3.1.65.gc65ba7001-1.sles12.x86_64.rpm
    bundle exec rake ci:test:setup SHA=8.3.1 HOSTS=sles12-64a
    bundle exec beaker exec <test>

Where <test> is the file or directory of tests to execute against the remote system.

The SHA parameter is required, but unused.
@mhashizume mhashizume merged commit 8d11a6f into master Feb 9, 2024
6 checks passed
@mhashizume mhashizume deleted the local_dev_build branch February 9, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants