Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions: issue error if mismatch ABAP <> Schema #476

Merged
merged 10 commits into from
Feb 2, 2023

Conversation

larshp
Copy link
Collaborator

@larshp larshp commented Feb 1, 2023

github action will now give an error if the ABAP code and generated schema does not match

Note that "Generate Schemas" is not a required status check, so it will not block merges

ENHO skipped due to #409

@larshp larshp changed the title testy test github actions: issue error if mismatch ABAP <> Schema Feb 1, 2023
@larshp larshp marked this pull request as ready for review February 1, 2023 14:49
@schneidermic0
Copy link
Contributor

github action will now give an error if the ABAP code and generated schema does not mismatch

I guess you mean if they "do not match" or "mismatch", don't you? ;)

@larshp
Copy link
Collaborator Author

larshp commented Feb 1, 2023

fixed 😁

@schneidermic0 schneidermic0 self-requested a review February 1, 2023 15:29
Copy link
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Cool.

Looks good to me.
@SAP/abap-file-formats-team Would someone else review this PR, too?

Copy link
Contributor

@wurzka wurzka left a comment

Choose a reason for hiding this comment

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

LGTM :)

@albertmink
Copy link
Contributor

I like the integration. But maybe we can find a better name of the action?

It took me I while to find the action in this list
Screenshot 2023-02-02 at 10 13 37

If the main purpose of the action is 'Check if ABAP type and JSON Schema align' then the 'Generate Schemas' is misleading. Actually it generates the JSON Schema but don't provide it as a download or other artefacts, right?

@schneidermic0
Copy link
Contributor

If the main purpose of the action is 'Check if ABAP type and JSON Schema align' then the 'Generate Schemas' is misleading. Actually it generates the JSON Schema but don't provide it as a download or other artefacts, right?

Suggestions:

  • Validate JSON schema against ABAP type
  • Validate JSON schema

More suggestions are welcome :)

@larshp
Copy link
Collaborator Author

larshp commented Feb 2, 2023

true, however, on longer term I'd suggest it to actually update the PR with the file

but anyhow, no trouble renaming it for now

@jhunni
Copy link
Contributor

jhunni commented Feb 2, 2023 via email

@schneidermic0
Copy link
Contributor

However, the next check in the list is called "Validate JSON"

I had this also in mind, but I think we can differentiate both.

@larshp "Executive" Decision: (as requested by you ;))
Let's keep it short and simple and start with "Validate JSON schema". We can still change it in the future if it is confusing.

@larshp
Copy link
Collaborator Author

larshp commented Feb 2, 2023

updated

Copy link
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me. 👍

@albertmink albertmink merged commit dfd1f0e into main Feb 2, 2023
@albertmink albertmink deleted the hvam/testytest0102 branch February 2, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants