ci: Switch to a log artifact vs a noisy stdout
This commit is contained in:
parent
a6184cf431
commit
6ace8d5d9d
@ -29,4 +29,8 @@ echo "Running vagrant spec tests..."
|
||||
wrap_stream packet-exec run "vagrant provision" \
|
||||
"Vagrant Acceptance testing command failed"
|
||||
|
||||
echo "Pulling log..."
|
||||
packet-exec run "vagrant ssh -c \"cat /tmp/vagrant-spec.log\" > vagrant-spec.log"
|
||||
packet-exec run "cat vagrant-spec.log" > vagrant-spec.log
|
||||
|
||||
echo "Finished vagrant spec tests"
|
||||
|
||||
6
.github/workflows/spectesting.yml
vendored
6
.github/workflows/spectesting.yml
vendored
@ -64,6 +64,12 @@ jobs:
|
||||
VAGRANT_CI_LOADER_BUCKET: ${{ secrets.VAGRANT_CI_LOADER_BUCKET }}
|
||||
HASHIBOT_USERNAME: ${{ secrets.HASHIBOT_USERNAME }}
|
||||
HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}
|
||||
- name: Upload log
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vagrant-spec-${{matrix.providers}}.log
|
||||
path: ${{ github.workspace }}/vagrant-spec.log
|
||||
|
||||
cleanup:
|
||||
runs-on: self-hosted
|
||||
|
||||
@ -156,6 +156,9 @@ Vagrant.configure(2) do |global_config|
|
||||
"VAGRANT_SPEC_ARGS" => "test --components provider/#{provider_name}/basic".strip,
|
||||
"VAGRANT_SPEC_BOX" => "/vagrant/test/vagrant-spec/boxes/#{guest_box.sub('/', '_')}.#{provider_name}.#{box_version}.box",
|
||||
"VAGRANT_SPEC_GUEST_PLATFORM" => guest_platform,
|
||||
"VAGRANT_LOG" => "trace",
|
||||
"VAGRANT_LOG_LEVEL" => "trace",
|
||||
"VAGRANT_SPEC_LOG_PATH" => "/tmp/vagrant-spec.log",
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user