Skip to content

[#192] Implement MacOS compatibility - #189

Merged
jesperpedersen merged 1 commit into
pgexporter:mainfrom
botirkhaltaev:main
Mar 27, 2025
Merged

jesperpedersen merged 1 commit into
pgexporter:mainfrom
botirkhaltaev:main

Conversation

@botirkhaltaev

@botirkhaltaev botirkhaltaev commented Mar 20, 2025 •

Copy link
Copy Markdown

This PR proposes adding Mac OS compatibility for pgexporter.

Fixes #192

@botirkhaltaev

Copy link
Copy Markdown
Author

Not sure why the formatting is so messed up, I used uncrustify, for context I am on neovim

@jesperpedersen

Copy link
Copy Markdown
Contributor

First of all, you need to squash your commits.
Second - you didn't discuss this, and it is impossible to see what you changed, so maybe start over and only do the actual changes you need, and then force push

@jesperpedersen jesperpedersen added the enhancement Enhancement to an existing feature label Mar 20, 2025
@botirkhaltaev

Copy link
Copy Markdown
Author

First of all, you need to squash your commits. Second - you didn't discuss this, and it is impossible to see what you changed, so maybe start over and only do the actual changes you need, and then force push

Hi Jesper, thanks for the feedback. The first thing I would like to ask is where I can find the formatting guidelines as in tabs spaces etc. Secondly, where can I discuss these features before I raise PRs for them? For that I apologize, I should have discussed before hand.

@jesperpedersen

Copy link
Copy Markdown
Contributor

3 spaces - uncrustify should do it for you.

Our forum for development is here: https://github.com/pgexporter/pgexporter/discussions/categories/ideas

@botirkhaltaev

Copy link
Copy Markdown
Author

First of all, you need to squash your commits. Second - you didn't discuss this, and it is impossible to see what you changed, so maybe start over and only do the actual changes you need, and then force push

Done, I squashed the commits, now the files are a lot more readadble

Comment thread src/admin.c Resolved
@resyfer

resyfer commented Mar 21, 2025 •

Copy link
Copy Markdown
Collaborator

LGTM except the small nitpick.

Thanks for the contribution @botirk38. However, please ensure any future PRs are not trying to include 5-6 different features under the guise of one!

Also please rebase, your branch is lagging by one commit.

@jesperpedersen

Copy link
Copy Markdown
Contributor

Please, check your patch again - you are changing stuff that isn't needed.

We have to go over this and spend time on it - you are making it more difficult for us

@botirkhaltaev

botirkhaltaev commented Mar 23, 2025 •

Copy link
Copy Markdown
Author

Please, check your patch again - you are changing stuff that isn't needed.

We have to go over this and spend time on it - you are making it more difficult for us

Hi Jesper, removed the uncrustify config changes, I got a deprecation notice, but I realize perhaps this is not within the scope of this PR

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread CONTRIBUTING.md Resolved
Comment thread CONTRIBUTING.md Resolved
@jesperpedersen

Copy link
Copy Markdown
Contributor

and so on...

@jesperpedersen

Copy link
Copy Markdown
Contributor

What are the fewest number of changes you can do in order to implement your idea ?

@botirkhaltaev

Copy link
Copy Markdown
Author

What are the fewest number of changes you can do in order to implement your idea ?

Right thanks for your feedback on this issue, most of it was raised, from my lsp reformatting the file, maybe if that works for you I can make a follow-up PR to establish coding standards, so devs that use LSPs can contribute more easily.

Comment thread .github/workflows/ci.yml Resolved
Comment thread src/admin.c Resolved
Comment thread src/libpgexporter/utils.c Resolved
Comment thread src/libpgexporter/utils.c Resolved
@jesperpedersen

Copy link
Copy Markdown
Contributor

@botirk38 CI

@botirkhaltaev

Copy link
Copy Markdown
Author

@botirk38 CI

Yea fixed that issue, but macos is really annoying because I can't run github workflows locally using act, so I apologize for the back and forth CI issues

Comment thread CONTRIBUTING.md Resolved
Comment thread src/CMakeLists.txt Resolved
Comment thread src/CMakeLists.txt Resolved
Comment thread src/admin.c Resolved
Comment thread src/include/utils.h Resolved
Comment thread src/libpgexporter/utils.c Resolved
@jesperpedersen

Copy link
Copy Markdown
Contributor

You need to add yourself to the author files - see DEVELOPERS.md

@botirkhaltaev

Copy link
Copy Markdown
Author

You need to add yourself to the author files - see DEVELOPERS.md

Done

@jesperpedersen

Copy link
Copy Markdown
Contributor

Please, reference the issue in the commit subject, and amend the message with a short message

@resyfer

resyfer commented Mar 26, 2025

Copy link
Copy Markdown
Collaborator

Like this.

@botirkhaltaev botirkhaltaev changed the title Feat: Add Macos compatbility [#192] Feat: Add Macos compatbility Mar 26, 2025
@botirkhaltaev botirkhaltaev changed the title [#192] Feat: Add Macos compatbility [#192] Implement MacOS compatibility Mar 26, 2025
@botirkhaltaev

Copy link
Copy Markdown
Author

Please, reference the issue in the commit subject, and amend the message with a short message

Is this ok?

@resyfer

resyfer commented Mar 26, 2025 •

Copy link
Copy Markdown
Collaborator

@botirk38 You need to add it to the commit. Though it's fine to mirror the commit and PR names.

@botirkhaltaev

Copy link
Copy Markdown
Author

Like this.

@botirk38 You need to add it to the commit. Though it's fine to mirror the commit and PR names.

Ah man sorry got back from work, didn't read through that properly, should be ok now

@jesperpedersen

Copy link
Copy Markdown
Contributor

Please, reference the issue in the commit subject, and amend the message with a short message

You need to fix this

@botirkhaltaev

Copy link
Copy Markdown
Author

Please, reference the issue in the commit subject, and amend the message with a short message

You need to fix this

Ok, so I tried to mirror conventions in saurav's commit. could you clarify? I think I'm not seeing what your seeing.

@jesperpedersen

Copy link
Copy Markdown
Contributor

Its

[#192] Implement MacOS compatibility

Short description of the changes...

Max 4 lines

- Ported linux macros to darwin compatible
- Removed linux specific compiler flags when building for MacOS
- Added CI to keep track of compatibility with MacOS
- Removed linux specific apis when running on mac
@botirkhaltaev

Copy link
Copy Markdown
Author

Its

[#192] Implement MacOS compatibility

Short description of the changes...

Max 4 lines

Would bullet points work as I have done now?

@jesperpedersen
jesperpedersen merged commit 759a2e1 into pgexporter:main Mar 27, 2025
@jesperpedersen

Copy link
Copy Markdown
Contributor

Merged.

Thanks for your contribution !

@jesperpedersen

Copy link
Copy Markdown
Contributor

Yes, a lot better.

Now, you can look at pgmoneta and pgagroal that they work with MacOS too

@botirkhaltaev

Copy link
Copy Markdown
Author

Yes, a lot better.

Now, you can look at pgmoneta and pgagroal that they work with MacOS too

Ok will do thanks alot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MacOS Compatibility

3 participants