ci: Switch to a log artifact vs a noisy stdout

This commit is contained in:
Paul Hinze 2022-04-19 16:58:06 -05:00
parent a6184cf431
commit 6ace8d5d9d
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
3 changed files with 13 additions and 0 deletions

View File

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

View File

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

View File

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