Skip to content

Conversation

@Martin-Zeithaml
Copy link
Contributor

@Martin-Zeithaml Martin-Zeithaml commented Apr 10, 2025

build/zwelMessages.js

JS definition of ZWEL messages - move out of the header file to keep it small.

build/buildZwelMessages.js

Two functions

  1. Run without any parameter to get the MD of the ZWEL messages.
  2. Run with --check parameter to test if messages are unique and documented. This check is run in a new workflow.

Others

New Workflow and Readme file with some details.

How it works

New message and doc update is made, run the script to generate MD:

PS C:\Users\Martin\Git\zowe\launcher\launcher.workflow\build> node .\buildZwelMessages.js
# Error Message Codes

The following error message codes may appear on Zowe Launcher SYSPRINT. Use the following message code references and the corresponding reasons and actions to help troubleshoot issues.

## Zowe Launcher informational messages

### ZWEL0001I

  component %s started

  **Reason:**

  The component `<component-name>` was started.

  **Action:**

  No action required.

### ZWEL0002I

  component %s stopped

  **Reason:**

  The component `<component-name>` was stopped.

  **Action:**

  No action required.
...

New workflow is triggered automatically for each pull request.

  Build and Test Workflow / build-test (pull_request)
  Build and Test Workflow / build-test (pull_request) Successful in 1m
+ Build and Test Workflow / check_messages (pull_request)
+ Build and Test Workflow / check_messages (pull_request) Successful in 6s
  Build and Test Workflow / check-permission (pull_request)
  Build and Test Workflow / check-permission (pull_request) Successful in 3s
  DCO
  DCOSuccessful in 1s — DCO

Small test here.

Signed-off-by: Martin Zeithaml <[email protected]>
Martin-Zeithaml and others added 13 commits April 10, 2025 16:56
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
@Martin-Zeithaml Martin-Zeithaml marked this pull request as draft April 15, 2025 13:11
@Martin-Zeithaml Martin-Zeithaml changed the title [TEST] Workflow for ZWEL messages Workflow for ZWEL messages Apr 15, 2025
Signed-off-by: Martin Zeithaml <[email protected]>
Signed-off-by: Martin Zeithaml <[email protected]>
@Martin-Zeithaml Martin-Zeithaml marked this pull request as ready for review April 17, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants