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

PG-1095 Add format validation CI workflow and format sources #308

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

artemgavrilov
Copy link
Collaborator

@artemgavrilov artemgavrilov commented Oct 9, 2024

PG-1095

This PR adds code format check job. Also it added Makefile target for code formatting according to PG style (pgindent)

License header check and cppcheck will be added in separate PR.

Copy link

github-actions bot commented Oct 9, 2024

Performance test results:
Normal queries: 9351
TDE queries: 8726
Percentage: 93%

@artemgavrilov artemgavrilov changed the title PG-1095 Add check CI workflow PG-1095 Add check CI workflow (cppcheck and formatting) Oct 10, 2024
@artemgavrilov artemgavrilov marked this pull request as ready for review October 10, 2024 17:03
@artemgavrilov artemgavrilov requested review from dutow, dAdAbird and codeforall and removed request for dutow and dAdAbird October 11, 2024 13:23
@artemgavrilov artemgavrilov changed the title PG-1095 Add check CI workflow (cppcheck and formatting) PG-1095 Add check CI workflow (cppcheck and formatting) and format sources Oct 11, 2024
@artemgavrilov artemgavrilov changed the title PG-1095 Add check CI workflow (cppcheck and formatting) and format sources PG-1095 Add format validation CI workflow and format sources Oct 11, 2024
Copy link
Collaborator

@dutow dutow left a comment

Choose a reason for hiding this comment

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

Generally looks good, but please exclude the versioned folders (src16, src17, and later any srcXX) from it.

The idea of them is that they only do minimal changes to the files copied from the server, to ensure that we can do minor/major version updates in an automated way using scripts.

Reformatting them would break this workflow.

If some lines/sections are completely added by us, reformatting them is okay, but this should be a manual process, not automated, because of the majority of the changes are done by sed. (the script doing this is in the tools directory)

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.

2 participants