15561 Commits

Author SHA1 Message Date
Paul Hinze
9d553412ee
Remove rubygems-bundler to address issues executing vagrant ruby
Executing the `vagrant` in the path was yielding an error:

> Could not locate Gemfile or .bundle/ directory

Traced it back to this gem making every ruby binary into a bundler shim
2022-04-25 12:26:59 -05:00
Paul Hinze
98385bd1c0
ci: Bump ulimits - gogo uses lots of open files :) 2022-04-25 12:26:59 -05:00
Paul Hinze
df3c0b6b0f
ci: install gem and use go binary for test runs 2022-04-25 12:26:59 -05:00
Paul Hinze
60a9528a82
ci: Install Ruby 2.7 and not latest, which is catching 3.x 2022-04-25 12:26:59 -05:00
Paul Hinze
b5c321e769
ci: Just run the basic component we know passes locally for now 2022-04-25 12:26:59 -05:00
Paul Hinze
e5635142db
ci: Pass hashibot creds down for private gh fetching 2022-04-25 12:26:59 -05:00
Paul Hinze
152a954266
spectesting: remove docker from matrix temporarily
For the time being to simplify test runs we'll just do vbox until we get
that working smoothly
2022-04-25 12:26:59 -05:00
Paul Hinze
8d1ac0b9a3
spectesting: need submodules to build 2022-04-25 12:26:58 -05:00
Paul Hinze
c42145ae64
spectesting: Remove repo filter to allow it to run on vagrant-ruby 2022-04-25 12:26:58 -05:00
sophia
15455b12b8
Bump sdk 2022-04-25 12:26:58 -05:00
sophia
875c44b324
go generate 2022-04-25 12:26:58 -05:00
sophia
02a0409ca8
Make core Project implement the Project interface from the sdk 2022-04-25 12:26:58 -05:00
Chris Roberts
4215232317
Include documentation on seedPlugin function 2022-04-25 12:26:58 -05:00
Chris Roberts
7e68e25994
Seed target and machine into plugins directly 2022-04-25 12:26:58 -05:00
Chris Roberts
373fc9c7b4
Helper for adding individual seed to plugin 2022-04-25 12:26:58 -05:00
Chris Roberts
1ca5872a5a
Define component types which can be cached 2022-04-25 12:26:58 -05:00
sophia
0c5d02ca53
Bump sdk 2022-04-25 12:26:58 -05:00
sophia
016a9a0efc
Remove box metadata ToMap functions
Box metadata is no longer passed around as a map. Instead it is
it's own service.
2022-04-25 12:26:57 -05:00
sophia
cddcfef0a1
Update Box#UpdateInfo to use box metadata client 2022-04-25 12:26:57 -05:00
sophia
8f23ce0d84
Return nil if box does not have an update 2022-04-25 12:26:57 -05:00
sophia
bb3da1e7db
Create box metadata from hash 2022-04-25 12:26:57 -05:00
sophia
147aa06cfd
Downcase and stringify metadata to create StringIO 2022-04-25 12:26:57 -05:00
sophia
e27e6c7871
Map box metadata 2022-04-25 12:26:57 -05:00
sophia
35c094f570
Get box update info 2022-04-25 12:26:57 -05:00
sophia
495902a5df
go generate 2022-04-25 12:26:57 -05:00
sophia
38c5dcb53c
Implement update info box endpoint 2022-04-25 12:26:57 -05:00
Chris Roberts
e3eff6b29a
Update vagrant-plugin-sdk ref and tidy up mods 2022-04-25 12:26:57 -05:00
Chris Roberts
9ab74271cf
Add some comments and expand some method documentation 2022-04-25 12:26:57 -05:00
Chris Roberts
46efcb8af8
Fix hash usage in mapper test 2022-04-25 12:26:56 -05:00
Chris Roberts
702c877aa6
Update argmapper to latest version 2022-04-25 12:26:56 -05:00
Chris Roberts
81ec1173c2
Remove symbol transformation in config 2022-04-25 12:26:56 -05:00
Chris Roberts
f220ac2f94
Add name based re-weight helper. Add documentation/comments. 2022-04-25 12:26:56 -05:00
Chris Roberts
f9e55a8f9d
Fill in vertex base methods 2022-04-25 12:26:56 -05:00
Chris Roberts
66c9fd45d6
Map key and value when converting Hash types 2022-04-25 12:26:56 -05:00
Chris Roberts
1bf4c8d090
Provide Graph#each_vertex helper to graph 2022-04-25 12:26:56 -05:00
Chris Roberts
12cb795392
Add name support for inputs 2022-04-25 12:26:56 -05:00
Chris Roberts
a8edd7a031
Generated proto update 2022-04-25 12:26:56 -05:00
Chris Roberts
86fe25a682
Update vagrant-plugin-sdk module reference 2022-04-25 12:26:56 -05:00
Paul Hinze
eacb798a71
Fix action hooks running twice in destroy_on_error scenarios
The "destroy_on_error" functionality for `vagrant up` is implemented in
the `recover()` action chain, and works by firing off a destroy action
from inside that chain.

This is all well and good, but it copies its existing `env` which has
had `action_name` set for the up action. This was causing action_hooks
for up actions to attach to this destroy action stack.

Setting the action_name explicitly in the env before firing the runner
should correct the behavior. I'm not sure if raw_action_name is used
anywhere but I figured it was better to be consistent vs conservative in
what we change.
2022-04-25 12:26:56 -05:00
Paul Hinze
e5a75b78ec
Update Environment::Remote to match Environment changes
Since the `initialize` method is copied over, we need to mirror changes
from #250 into that copy
2022-04-25 12:26:55 -05:00
Paul Hinze
b88123fab4
Add unit test for new behavior 2022-04-25 12:26:55 -05:00
Paul Hinze
2707d09181
Fix prepend/append action hooks firing multiple times
This addresses the surprising behavior that the StoreBoxMetadata hook
was running many times during a machine up, including during failed
operations where a destroy_on_error deleted the machine. This was
resulting in an error that looked like:

> No such file or directory @ rb_sysopen [...] /[...]/box_meta

Plugin action hooks using prepend/append were attaching every time a
Builder was run, including sub-Builders that show up for things like
Call actions.

To fix this, we tell Builders if they are "primary" and only run
prepend/append on those. See inline comments for more explanation.
2022-04-25 12:26:55 -05:00
sophia
9dcb9df7ff
Let mappers convert machine to proto opposed to client 2022-04-25 12:26:55 -05:00
Chris Roberts
305fddb49a
Retry cached path executions with full graph 2022-04-25 12:26:55 -05:00
Chris Roberts
f3a3bb83fd
Only register types for blind maps after a blind map 2022-04-25 12:26:55 -05:00
Chris Roberts
e8a4c35cf6
Remove any unpacking of value prior to mapping 2022-04-25 12:26:55 -05:00
Chris Roberts
2baea78820
Properly clone mappers 2022-04-25 12:26:55 -05:00
Chris Roberts
823e589a26
Freeze base mappers list to prevent direct modifications 2022-04-25 12:26:55 -05:00
Chris Roberts
2f9daa8498
Include value in error message when mappers not found 2022-04-25 12:26:55 -05:00
Chris Roberts
61b5d3549f
Don't use blind mapping when generating value 2022-04-25 12:26:54 -05:00