canonical / edgex-snap-testing

4 stars 2 forks source link

Fetch errors on test failure from all available log files #167

Closed farshidtz closed 1 year ago

farshidtz commented 1 year ago

The log files have the snap name but the action looks for logs with the suite name:

image

https://github.com/canonical/edgex-snap-testing/blob/239169bca8d67a2b30593189a8e97264a3292cca/test/action.yml#L64-L76

https://github.com/canonical/edgex-snap-testing/blob/239169bca8d67a2b30593189a8e97264a3292cca/test/utils/snap.go#L127-L131

The snap name isn't available in the action. Moreover, we never fetch the platform errors. This PR changes the action to look for all log files with a pattern and the matching print errors.

farshidtz commented 1 year ago

After the change: image