Skip to content

Conversation

sbliven
Copy link
Member

@sbliven sbliven commented Jul 11, 2025

Description

The error message for misconfigured switch actions in jobConfig.yaml was copy-pasted from the validate action. This updates it to clarify the source of the error. Similar errors for other job actions have also been updated to be consistent.

Motivation

We ran into such an error in paulscherrerinstitute/scicat-ci#285.

Fixes

  • Improve error reporting from jobConfig.yaml

Changes:

Tests included

  • Included for each change/fix? N/A
  • Passing?

Documentation

  • swagger documentation updated (required for API changes) N/A
  • official documentation updated N/A

official documentation info

@sbliven sbliven changed the title Improve error message for misconfigured switch actions bug: improve error message for misconfigured switch actions Jul 11, 2025
@sbliven sbliven changed the title bug: improve error message for misconfigured switch actions fix: improve error message for misconfigured switch actions Jul 11, 2025
@sbliven sbliven requested a review from despadam July 11, 2025 16:02
@sbliven sbliven added the bug Something isn't working label Jul 11, 2025
@sbliven sbliven self-assigned this Jul 11, 2025
@sbliven sbliven changed the title fix: improve error message for misconfigured switch actions Improve error messages for misconfigured job actions Jul 12, 2025
@sbliven sbliven force-pushed the switch-error-message branch from 52cb3b3 to eb2f0fe Compare July 13, 2025 14:15
@sbliven sbliven changed the title Improve error messages for misconfigured job actions fix: improve error messages for misconfigured job actions Jul 13, 2025
Copy link
Member

@despadam despadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, but tests are failing - I believe for an irrelevant reason.

@Junjiequan Junjiequan force-pushed the switch-error-message branch from eb2f0fe to 4f43825 Compare July 17, 2025 13:33
sbliven added 2 commits July 18, 2025 09:21
All actions now dump their options if options are invalid, making
it easier to track down bugs.
@Junjiequan Junjiequan force-pushed the switch-error-message branch from 4f43825 to be36286 Compare July 18, 2025 07:21
@sbliven
Copy link
Member Author

sbliven commented Jul 21, 2025

Thanks @Junjiequan for fixing the tests

@sbliven sbliven enabled auto-merge (squash) July 21, 2025 12:36
@sbliven sbliven merged commit 00f0074 into SciCatProject:master Jul 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants