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 building pdk using a dev puppet-runtime build #345

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

joshcooper
Copy link
Contributor

Previously, pdk required the pdk-runtime component to refer to a valid SHA in the https://github.com/puppetlabs/puppet-runtime repo which makes it difficult to test pdk-runtime changes before committing them.

This commit allows the pdk-runtime.json component to refer to an already built dev build that only exists locally such as:

{
  "version":"202311141.4.g81059f6",
  "location":"file:///home/josh/work/puppet-runtime/output"
}

Or a pdk-runtime build generated via Vanagon Generic Builder:

{
  "version":"202308240.86.g81059f6",
  "location":"https://builds.delivery.puppetlabs.net/puppet-runtime/81059f6336c6b8f5f77ab9a3700eb0b2b58d5bcc/artifacts/"
}

Where the pdk-runtime is relative to the 'location':

${location}/pdk-runtime-${version}.windows-2019-x64.tar.gz

Summary

Provide a detailed description of all the changes present in this pull request.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Previously, pdk required the pdk-runtime component to refer to a valid SHA in
the https://github.com/puppetlabs/puppet-runtime repo which makes it difficult
to test pdk-runtime changes before committing them.

This commit allows the pdk-runtime.json component to refer to an already built
dev build that only exists locally such as:

    {
      "version":"202311141.4.g81059f6",
      "location":"file:///home/josh/work/puppet-runtime/output"
    }

Or a pdk-runtime build generated via Vanagon Generic Builder:

    {
      "version":"202308240.86.g81059f6",
      "location":"https://builds.delivery.puppetlabs.net/puppet-runtime/81059f6336c6b8f5f77ab9a3700eb0b2b58d5bcc/artifacts/"
    }

Where the pdk-runtime is relative to the 'location':

    ${location}/pdk-runtime-${version}.windows-2019-x64.tar.gz
Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@gavindidrichsen gavindidrichsen left a comment

Choose a reason for hiding this comment

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

Thanks for this new feature Josh!

@david22swan
Copy link
Member

This has worked on a jenkins run so gonna go ahead and merge.

@david22swan david22swan merged commit d3a9f65 into main Nov 20, 2023
3 of 4 checks passed
@david22swan david22swan deleted the dev_builds branch November 20, 2023 14:16
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.

4 participants