Skip to content

Better Kosli CLI diagnostics suggestions based on customer-support call #354

@JonJagger

Description

@JonJagger

Bug report from a customer this morning. They pasted in the GitHub action output, as follows:

flow 'pottspillsport-lambda-rs-bet-detail-producer' was updated
trail '4652946727ba47b45f99ef8d2055518a68fad924' was begun
artifact bet-detail-producer-v0.45.0.zip was attested with fingerprint: 62ede6da090...
Error: xml: encoding "ISO-8859-15" declared but Decoder.CharsetReader is nil
  • It would be very useful if the CLI printed its version number before each fatal error message.
    I could not reproduce this particular error in the latest CLI so I wanted to install the specific version they were using.

  • It would also have been very handy if the error message also told you the filename involved.
    In this case the customer was using a kosli attest junit command and was providing an --attachments flag
    specifying a junit xml file in a subdir. The --results-dir was defaulting to . and they were somehow under the impression
    that since they had specified --attachments then that somehow took precedence over the --results-dir (which would then be ignored). But there was another junit xml file in the . dir (which had encoding problems). If we'd printed the filename we would have saved half a day debugging, and the customer might well have been able to diagnose the problem themself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions