mirror of https://github.com/hashicorp/packer
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.167.0
main
karthik/go-git/upgrade
prepare-1.15.1
release/1.15.x
cut-release-1.15.0
dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.6.5
go-update
crypto-update
channel-assignment
compliance/update-headers-batch-2
compliance/update-headers-batch-1
compliance/update-headers-batch-3
compliance/update-headers
dependabot/go_modules/packer_test/common/plugin_tester/golang.org/x/crypto-0.45.0
leah/feat/add-comments-to-docs
release/1.14.x
jenkins-metadata
bitbucket_metadata
karthik/enforced_provisioners_poc
tanmay-hc-patch-1
karthik/fix/at/datasource/http
testbackport
backport/bump-backport/reliably-awake-polliwog
stable-website
backport/karthik/prep_version_1.14.3/correctly-saved-goldfish
karthik/prep_version_1.14.3
karthik/release_1.14.2
karthik/update/changelog_v1.14.2
karthik/version_prep_1.14.2
karthik/dependency/upgrade/packer-plugin-sdk
karthik/fix/powershell
leah/feat/upgrade-node
fix_cert_docs
karthik/fix/aceeptance_test.yml
anshul/bump_dev_version
anshul/docker_img_official_plugin
backport_proxy_fix
anshul/patch_release
anshul/fix_proxy_http
packer-plugin-release-notice
stable-website-backup
anshul/changelog_1.14.0
crt-doc-update
update_regarding_CRT_migration
anshul/plugin_binary_from_official_site
jenna/cherry-picked-docs-backports
workload-identity-auth-support
bump-go-git
log-fix
karthik/seperate_default_commands
fix_hcl2_dag_missing_dependency
temp-web
karthik/prepare_1.13.2_dev
release/1.13.x
karthik/backport_1.13.1
karthik/prepare_version_1.13.1
backport/doc_to_release/1.13.x
karthik/powershell_fix
backport/release_note-1.13.x
release_docs_1.13
dev_version_changes
karthik/docs_update_powershell
update-pr-template-pci
rel_version_change
fix_test_case
dependabot/github-actions-updates
update_version
backport-ryans-vsphere-change-to-website
winrm_firewall_port
hotfix/failing-acc-test
release/1.12.x
backport-nextjs
packer_fmt_multi_args
backport-bumps
bump-nextjs
tsccr-auto-pinning/trusted/2025-05-01
add_filebase64_function
karthik/powershell_encoding
doc_temp_exec
tsccr-auto-pinning/trusted/2025-04-01
packer_test_dump_commands
bump_x_net
docs/replace-dot-io-links
enabling_hcp_multibuilds
bump_version_main_packer_1.13.0-dev
bump_dependencies_vulns
bump_backport_assistant_0.5.3
prevent-name-conflicts-hcp
dependabot/go_modules/packer_test/common/plugin_tester/github.com/go-jose/go-jose/v4-4.0.5
poc-top-level-hcp-block
hcp-multiple-build-block
RK/adjust-codeowners
docs/manual-backport-packer-seo
docs/packer-seo-fy2025q4
docs/packer-seo-final-batch
docs/packer-seo-functions-batch3
docs/packer-seo-templates-batch1
docs/packer-seo-templates-batch2
docs/packer-seo-provs
docs/packer-seo-builders-plugins
docs/packer-seo-ds-ref
1-12-docs
tsccr-auto-pinning/trusted/2025-01-01
change_upload_sbom
make_doc_TMPDIR_clickable
docs_put_hcl2_example_in_first_tab
remove_aws_plugin_dep_on_hcl2_upgrade
test_add_compilation_queue_and_customisations
add-strcontains-docs
tsccr-auto-pinning/trusted/2024-12-01
fix_hcp_slug_empty_with_envvar_set
poc/with-api-imported
hand-off-lucas
tsccr-auto-pinning/trusted/2024-11-04
tsccr-auto-pinning/trusted/2024-11-01
release/1.11.x
backport/patch-1/vigorously-rested-sponge
backport/patch-1/blatantly-smashing-eel
backport/patch-1/centrally-credible-maggot
file_datasource
tsccr-auto-pinning/trusted/2024-10-01
backport/s3-community-provisioner/marginally-present-killdeer
backport/s3-community-provisioner/partially-dominant-mole
backport/fix_panic_on_empty_git_repo_hcp/cheaply-mature-sunfish
backport/build/bump-go-1.22.7/overly-caring-toad
tsccr-auto-pinning/trusted/2024-09-01
test_plugin_dir_spec_as_struct
backport/feature/add-base64gzip-function-support/forcibly-chief-toad
backport/docs_update_manual_installation/annually-subtle-mallard
backport/docs_update_manual_installation/ideally-feasible-kite
protobuf_testing
backport/artifact-manifest/main/simply-heroic-ladybird/brightly-real-sheepdog
backport/change-cicd-type/blatantly-resolved-gator
nywilken.enable-ci-for-feature-branch
protobuf-serialization
backport/feature/build-metadata-phase-2/entirely-up-ghoul
feature/build-metadata-phase-2
backport/replace_enumer_upstream/blindly-sacred-rat
backport/bump_go/nominally-leading-mastiff
tsccr-auto-pinning/trusted/2024-07-01
backport/nywilken.update-changelog-1.11.1/specially-clean-ewe
nywilken.update-changelog-1.11.1
backport/nywilken.CVE-2024-6104/largely-hot-pheasant
nywilken.CVE-2024-6104
backport/patch-1/completely-excited-colt
backport/patch-1/recently-innocent-dragon
backport/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.99.0/annually-guided-mako
backport/hpr-1772-upsert-bucket-get-first/randomly-talented-sculpin
hpr-1772-upsert-bucket-get-first
backport/dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.5.4/visually-prompt-seahorse
backport/nywilken.document-tmpdir/naturally-sought-sailfish
backport/nywilken.document-tmpdir/officially-flowing-hedgehog
nywilken.document-tmpdir
backport/fix_locals_eval_order/hugely-welcome-rodent
backport/docs/string-templates/officially-on-garfish
backport/docs/string-templates/vastly-liked-whale
backport/docs/packer-init/heartily-large-cougar
backport/docs/packer-init/morally-full-bullfrog
backport/docs/update-ssh/amazingly-sound-stinkbug
backport/docs/update-ssh/miserably-light-flamingo
backport/doca/update-provisioners/externally-sought-skylark
backport/doca/update-provisioners/similarly-quality-crappie
backport/plugin_load_spec_docs/notably-correct-platypus
backport/acc_test_logic/wrongly-witty-moccasin
backport/fix_golangci_lint/lovely-giving-impala
fix_golangci_lint
backport/plugin_load_spec_docs/remotely-stirred-frog
backport/plugin_load_spec_docs/thankfully-square-monarch
plugin_load_spec_docs
tsccr-auto-pinning/trusted/2024-06-01
bump_main_minor_version
backport/docs/install-plugins-1.11-ga/radically-leading-muskrat
docs/install-plugins-1.11-ga
backport/patch-1/moderately-fair-cod
backport/patch-1/slowly-suitable-aphid
backport/patch-1/vastly-ace-kingfish
backport/bump-1.11-release-date/accurately-usable-goose
bump-1.11-release-date
cut_1.11.0
backport/script_prep_changelog_rm_wait/sharply-dashing-mayfly
script_prep_changelog_rm_wait
backport/bump_changelog_1.11.0/actively-central-condor
backport/refactor/remove_deprecated_ioutil_functions/gratefully-learning-elephant
release/1.11.0-beta
docs/update-init-command-HPR-1755
release/1.10.x
backport/patch-1/rarely-certain-narwhal
backport/patch-1/steadily-pumped-lark
register_components_once
backport/fix_doc_typo_hcp_version/generally-ethical-wahoo
backport/fix_doc_typo_hcp_version/purely-fast-tarpon
deps/bump-actions-checkout-version
concurrent-plugin-access
backport/add-docs-on-packer-fmt/humbly-humorous-shiner
backport/add-docs-on-packer-fmt/solely-creative-dassie
backport/nywilken/update-dockerfile-license/directly-liked-parrot
nywilken/update-dockerfile-license
poc_reversed_eval_order
poc_parallel_plugin_discovery
sdk_bump
backport/use_VERSION_as_source_of_truth/intensely-key-sparrow
backport/workflow_build_only_push_release_images/forcibly-willing-chow
backport/dep/bump_golang.org_x_net_v0.24.0/instantly-set-cat
use_VERSION_as_source_of_truth
dep/bump_golang.org_x_net_v0.24.0
alvin-huang/test-license
backport/sec/add-LICENSE-to-release-binaries/initially-able-ghost
sec/add-LICENSE-to-release-binaries
release/1.11.0-alpha2
plugins_remove_local_path_support
nywilken/ignore-prerelease-plugins_help_text
release/1.11.0-alpha
backport/main/reliably-polite-rhino
backport/update/integration-script-commands/apparently-strong-pug
backport/update/integration-script-commands/vertically-meet-coral
update/integration-script-commands
dev_version_show_build_time
deps/google.golang.org/protobuf-1.31.0
update/changelog-1.10.2
hardened_plugin_loading
protobuf_and_gob_support
terminology-doc-updates
bump/go-module-version
nywilken/remove-plugins-subnav
only_support_releases_plugins
fix/plugin-url-rewrite-errors
nywilken/plugin-install-docs
changelog-1.10.1
nywilken-cut-1.10.1
heat/bug.fix/update-website-dependencies
nywilken/hcp-packer-non-compliant-plugin-error
update/migrate_scaleway_and_mondoo_integration
rm_single_component_plugins
rm_upcloud_manifest
heat/pin-upcloud-plugin-version
bmm/upcloud-version-pin
heat/bug-fix/packer-plugin
release/1.9.x
reset_1.10.x
update/plugin-integration-docs
fix_flags_plugins_install
integration-docs
changelog/1.10.0
deps/bump_packer-plugin-sdk_with_gocty_fix
rm_source_on_var_arg_error
update/missing_builder_warning
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.74.0
update-releng-codeowners
update/hcp-sdk-go
update/bundled-plugins-cruft
update/CHANGELOG-pre-1.10.0-branch
update/prepare-changelog-for-backports
fix/CVE-2023-45283
REPLAT-962-Update-License-text
plugins_rm_err_if_none_found
nywilken/update-readme-busl-license
schedulers
prototype_plugin_override_arg
rm_flagsetflags_enum
backport_use_squash
parser_rework
datasource_logic_cleanup
add_path_attribute_to_required_plugins
docs/hashicorp-intergration-updates
log_used_plugins
nywilken/1.9.3-cleanup
backport_pr_12535
fix_release_1.9.x_license
dag_phase_1
nywilken-192-CHANGLELOG-updates
moss_bump_hcp_sdk_test
release/1.8.x
moss_test
doc_bundles
release/1.9.0-alpha
docs/amb.test-workflow
test-prepare
ks.update-generated-links
mktg-tf-3b0b4b19b15c85b7bb4266a386b186d0
nywilken/hcp_all_errors_at_once
release/1.7.x
dev-portal
hcp_null_builder
zs.draft-empty-page-check-script
azr/mini-dag
linode-hcp-ready
actions/fix-check-links
crt-onboarding-test
wilken/hcl2_upgrade-legacy-mode
wilken/implicitly-required-plugins-legacy-mode
wilken/packer-legacy-mode
brk.feat/mdx-v2
improved-error-handling-hcp-packer
validate_locals
update-alert-banner
update_sdk
vscode-customization
testing_hcp_rewrite_two
extract_outscale
azr_implicit_requried_plugin_2
config_docs
azr_acc_test_install_n_run_single_plugins
azr_remove_amazon_builder
use_progress_bar
pr/10199
poc/packer-init
d-powershell-generated-docs
f-inspect-regression
build-after-tests
b-azure_arm-cert-timeout
revert-6594-mode-check
mode-check
v1.7.10
v1.7.9
v1.7.8
v1.7.7
v1.7.6
v1.7.5
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.6
v1.6.5
v1.6.4
v1.6.3
v1.6.2
v1.6.1
v1.6.0
v1.5.6
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc3
v1.0.0-rc1
v0.12.3
v0.12.2
v0.12.1
v0.12.0
v0.11.0
v0.10.1
v0.10.0
v0.9.0
v0.9.0-rc2
v0.8.6
v0.8.5
v0.8.3
v0.8.2
v0.8.1
1.5.0
list
nightly
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.10.2
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.10
v0.3.11
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.3.7
v0.3.8
v0.3.9
v0.4.0
v0.4.1
v0.5.0
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.7.2
v0.7.5
v0.8.0
v1.0.0-rc2
v1.10.0
v1.10.1
v1.10.2
v1.10.3
v1.11.0
v1.11.0-alpha
v1.11.0-alpha2
v1.11.0-beta
v1.11.1
v1.11.2
v1.12.0
v1.12.0-alpha1
v1.13.0
v1.13.1
v1.14.0
v1.14.1
v1.14.2
v1.14.3
v1.15.0
v1.3.5
v1.4.0
v1.8.0
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.8.5
v1.8.6
v1.8.7
v1.9.0
v1.9.0-alpha
v1.9.1
v1.9.2
v1.9.3
v1.9.4
v1.9.5
${ noResults }
5 Commits (release_docs_1.13)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
5ff0f146c6 |
packer_test: introduce global compilation queue
Compiling plugins was originally intended to be an idempotent operation. This however starts to change as we introduce build customisations, which have the unfortunate side-effect of changing the state of the plugin directory, leading to conflicts between concurrent compilation jobs. Therefore to mitigate this problem, this commit changes how compilation jobs are processed, by introducing a global compilation queue, and processing plugins' compilation one-by-one from this queue. This however makes such requests asynchronous, so test suites that require plugins to be compiled will now have to wait on their completion before they can start their tests. To this effect, we introduce one more convenience function that processes those errors, and automatically fails the test should one compilation job fail for any reason. |
1 year ago |
|
|
b6b0a081ad |
packer_test: add build customisation capabilities
When building a plugin, we may want some customisation capabilities beyond changing the version/pre-release/metadata, and instead run commands or change files on the filesystem. To do so, we introduce functions under the BuildCustomisation type, which have two responsabilities: changing the current state of the plugin's directory, and cleaning up afterwards. These customisations are passed as parameters to the BuildSimplePlugin function, and are called one-by-one, deferring their cleanup after the build process is finished. A first implementation of such a customisation is added with this commit, in order to change the version of a module that the plugin depends on, which we'll use to change the version of the plugin SDK in order to test how Packer behaves with different versions of the SDK for a single plugin. |
1 year ago |
|
|
3c449430e1 |
packer_test: make PluginTestDir a structure
In order for the creation of a temporary directory to install plugins into to be simpler to understand and use, we change how the directory is created, cleaned-up, and installs plugins into. Now, instead of a tuple of a string (path) and a cleanup function, we return a structure that comprises the test suite, and the temporary directory, along with methods to handle those steps independently. |
1 year ago |
|
|
31b6109430 |
packer_test: hide run and introduce Output
When using a PackerCommand, the Run function was made public as a way to access the contents of an execution. This was clumsy as it had too many responsabilities, and was not needed strictly as Assert was performing the executions, as many times as required. This could introduce cases in which one run as spent by the caller, then the remainder were executed through Assert. Therefore, we change this convention. Now, run is private to the type, and only through Assert can a command be executed. If a test needs access to a command's output, stderr, or error, it can do so through the Output function, which requires Assert to be called first. |
1 year ago |
|
|
35b2317ef3 |
packer_test: rename/split lib into common/check
The lib name for the common components for writing packer_test suites was not clear, and did not follow the convention established in Packer core and plugins. Therefore this commit does two things: first the lib is renamed into common as to follow this convention, and clearly document which components are common to all tests. Also checkers are placed in a subpackage of common, common/check, so that it is clearer what is meant to be used as checks for a command's execution status after it's been run, as part of Assert. |
1 year ago |