15610 Commits

Author SHA1 Message Date
sophia
8df560d659 Set mock guest/host plugin name 2022-05-02 15:31:41 -05:00
sophia
852a87f9d0 Add mock behaviour for getting seeds 2022-05-02 14:56:27 -05:00
sophia
b381487dd2 Use testing plugins to populate testing plugin manager 2022-05-02 14:52:41 -05:00
sophia
c712afad8f Update testing plugins 2022-05-02 12:33:18 -05:00
Paul Hinze
db14bf00e2
Merge pull request #265 from hashicorp/fix-ci-invalid-key
ci: Remove invalid key from workflow
2022-04-29 13:57:18 -05:00
Paul Hinze
198649be9f
ci: Remove invalid key from workflow
See https://github.community/t/worflow-with-dispatch-and-branches-setting-suddenly-not-supported-anymore/247732/29
2022-04-29 12:41:43 -05:00
Chris Roberts
0bd1a62ac3
Merge pull request #257 from hashicorp/plugin-closers
Properly cleanup plugins
2022-04-28 09:56:42 -07:00
Chris Roberts
c0b17ae4f3 Update SDK ref 2022-04-28 09:56:29 -07:00
Chris Roberts
bd849581f6 Cache the machine instance of the target 2022-04-27 15:56:49 -07:00
Chris Roberts
4e6c24b631 Include target name in debug output 2022-04-27 15:56:27 -07:00
Chris Roberts
a80effe196 Do not set target into cache from options 2022-04-27 15:56:04 -07:00
Chris Roberts
7c93e6b0f1 Update plugin related functions for manager changes 2022-04-25 16:12:38 -07:00
Chris Roberts
eef7eca1c5 Use dedicated function to check for legacy 2022-04-25 16:12:38 -07:00
Chris Roberts
813963cb7b Update log level for trace type message 2022-04-25 16:12:38 -07:00
Chris Roberts
32807020af Update basis to use cleanup 2022-04-25 16:12:38 -07:00
Chris Roberts
f8ac4dd1a5 Close sub plugin manager when basis is closed 2022-04-25 16:12:38 -07:00
Chris Roberts
c2a912bacc Use core manager cleanup for generated internal 2022-04-25 16:12:38 -07:00
Chris Roberts
1594545d18 Remove helpers which are no longer valid 2022-04-25 16:12:38 -07:00
Chris Roberts
6d45d07f3f Update plugin to use cleanup 2022-04-25 16:12:38 -07:00
Chris Roberts
5b04ac5c35 Isolate our basis validity to single operation 2022-04-25 16:12:38 -07:00
Chris Roberts
f39e5709f4 Make plugin manager usage consistent
Updated to properly handle sub managers. Configurators
  from parent managers properly applied to instances. Instances
  are cached within requesting manager. Parent loading is also
  handled in calling manager to properly support parent caching.
  Closers implementation replaced with cleanup.
2022-04-25 16:12:38 -07:00
Chris Roberts
45e7814842 Remove parent loading and caching from plugin 2022-04-25 16:12:38 -07:00
Chris Roberts
bbf7e0fb12 Generated proto updates 2022-04-25 16:12:38 -07:00
Chris Roberts
6c7e154a92 Only register managers if legacy is loaded. Close core manager. 2022-04-25 16:01:10 -07:00
Chris Roberts
287268635a Update basis ResourceId() function to match core signature 2022-04-25 16:01:10 -07:00
Chris Roberts
1a07190bb2 Update core manager to cleanup properly, use regular mapping 2022-04-25 16:01:10 -07:00
Chris Roberts
5e277410f3 Use regular mapper for manager and properly cleanup on close 2022-04-25 16:01:10 -07:00
Chris Roberts
8b5bab5250 Update plugin manager to cache named plugins 2022-04-25 16:01:10 -07:00
Chris Roberts
234734061c Add internal interface implementation for managers 2022-04-25 16:01:10 -07:00
Chris Roberts
616e003c42 When creating a plugin instance, register closer 2022-04-25 16:01:10 -07:00
Paul Hinze
b6feb025ba
Merge pull request #261 from hashicorp/add-docker-to-ci
Add docker to Nightly CI
2022-04-25 17:47:22 -05:00
Paul Hinze
605c632734
Merge pull request #262 from hashicorp/lil-test-fix
Prevent autocomplete install test from messing with real homedir
2022-04-25 17:46:35 -05:00
Sophia Castellarin
c182824c49
Merge pull request #255 from hashicorp/path-type
Update paths to use Path type instead of string
2022-04-25 17:45:22 -05:00
sophia
2374af93bb Update tests for path changes 2022-04-25 17:17:52 -05:00
sophia
e4b2c53fc0 Bump sdk 2022-04-25 17:05:54 -05:00
Paul Hinze
f748c42921
ci: Switch to static gem build names in non-shared dirs
Having multiple different VMs building gems inside a shared dir was
causing them to collide, making the second build always fail.
2022-04-25 14:51:11 -05:00
Paul Hinze
93eaf6c885
ci: Move slack output to spam channel 2022-04-25 14:35:30 -05:00
Paul Hinze
baf1d777bc
ci: Run docker provider too 2022-04-25 14:35:30 -05:00
Paul Hinze
11a4664901
ci: Set up docker to use Go vagrant too 2022-04-25 14:35:30 -05:00
Paul Hinze
6646cf50b4
ci: Move always() from step to job so cleanup happens on failures
The `if: always()` can work on steps as well, but in this case we need
it at the job level so it modifies the `needs` clause.

See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-not-requiring-successful-dependent-jobs
2022-04-25 14:35:30 -05:00
Paul Hinze
f07ba964d3
Prevent autocomplete install test from messing with real homedir
It just so happens my `~/.bashrc` is not writable by my user (NixOS
humblebrag lol) so this test fails for me locally.

Turns out the test was touching the user's homedir which we probably
don't want anyways, so stub out a tempdir instead.
2022-04-25 14:24:06 -05:00
sophia
adf2340712 Update Ruby clients for proto changes 2022-04-25 14:12:28 -05:00
sophia
398d982408 Add decode hook for string -> path.Path 2022-04-25 14:12:28 -05:00
sophia
3b8bf20b48 go generate 2022-04-25 14:12:28 -05:00
sophia
25dfcd039f Update paths to use Path type instead of string 2022-04-25 14:12:28 -05:00
Paul Hinze
dc58438476
ci: Run spectesting nightly 2022-04-25 12:26:59 -05:00
Paul Hinze
4cf5f7c1ba
ci: quiet things down a bit 2022-04-25 12:26:59 -05:00
Paul Hinze
6ace8d5d9d
ci: Switch to a log artifact vs a noisy stdout 2022-04-25 12:26:59 -05:00
Paul Hinze
a6184cf431
ci: Use branch for vagrant-spec 2022-04-25 12:26:59 -05:00
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