Skip to content

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
@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

Labels

5 participants