Skip to content

Commit

Permalink
Merge pull request meshery#8649 from suhail34/ci/suhail34/8648
Browse files Browse the repository at this point in the history
[CI] Meskit Error Utility Workflow Does not fails for duplicacy
  • Loading branch information
leecalcote authored Sep 4, 2023
2 parents 742fd62 + d43b0a0 commit 924efe2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/error-codes-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@ jobs:
- name: Run Utility For Meshery Server
run: |
~/errorutil update -d . -i ./server/helpers -o ./server/helpers --skip-dirs mesheryctl
output=$(~/errorutil -d . analyze -i ./server/helpers -o ./server/helpers --skip-dirs mesheryctl | wc -c)
if [ "$output" -ne 0 ]; then
exit 1
fi
echo '{ "errors_export": "" }' | jq --slurpfile export ./server/helpers/errorutil_errors_export.json '.errors_export = $export[0]' > ./docs/_data/errorref/meshery-server_errors_export.json
- name: Run Utility For Mesheryctl
run: |
cd ./mesheryctl
~/errorutil update -d . -i ./helpers -o ./helpers
$output=$(~/errorutil -d . analyze -i ./helpers -o ./helpers | wc -c)
if [ "$output" -ne 0 ]; then
exit 1
fi
echo '{ "errors_export": "" }' | jq --slurpfile export ../server/helpers/errorutil_errors_export.json '.errors_export = $export[0]' > ../docs/_data/errorref/mesheryctl_errors_export.json
- name: Commit changes
Expand Down
2 changes: 1 addition & 1 deletion server/helpers/component_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "meshery-server",
"type": "component",
"next_error_code": 1533
"next_error_code": 1534
}
8 changes: 4 additions & 4 deletions server/models/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ const (
ErrShareDesignCode = "1530"
ErrUnreachableRemoteProviderCode = "1531"
ErrShareFilterCode = "1532"
ErrPersistEventCode = "1533"
ErrUnreachableKubeAPICode = "1534"
ErrFlushMeshSyncDataCode = "1535"
ErrPersistEventCode = "1533"
ErrUnreachableKubeAPICode = "replace_me"
ErrFlushMeshSyncDataCode = "replace_me"
)

var (
Expand Down Expand Up @@ -370,4 +370,4 @@ func ErrUnreachableKubeAPI(err error, server string) error {

func ErrFlushMeshSyncData(err error, contextName, server string) error {
return errors.New(ErrFlushMeshSyncDataCode, errors.Alert, []string{"Unable to flush MeshSync data for context %s at %s "}, []string{err.Error()}, []string{"Meshery Database handler is not accessible to perform operations"}, []string{"Restart Meshery Server or Perform Hard Reset"})
}
}

0 comments on commit 924efe2

Please sign in to comment.