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

dockerfiles: adding support for linux-ppc64le #6792

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

Conversation

adilhusain-s
Copy link

  • Adding support for linux-ppc64le in CI
  • Made the changes in workflow to update platforms

Successfully tested the change on my fork.
workflow run link

src/flb_utils.c Outdated
@@ -706,7 +706,10 @@ int flb_utils_write_str(char *buf, int *off, size_t size,
encoded_to_buf(p, tmp, len);
p += len;
}
else if (c >= 0x80 && c <= 0xFFFF) {
#if defined(__powerpc64__)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the only part of this PR I want to understand better before approving it, I think I asked about it in the previous version but there was no response, could you explain why is this change necessary?

Copy link

@sumitd2 sumitd2 Feb 7, 2023

Choose a reason for hiding this comment

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

Hi @leonardo-albertovich
I remember you asked for this before. When I tried last time I could not get to the root of it in the limited time that was available. I made this change after the test failed, based on the actual value of c being received for Power. I will look at it again.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you, getting to the root of this is the only think missing from my point of view, if you need any help with it let me know, I'd be glad to assist you as much as possible.

Copy link

Choose a reason for hiding this comment

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

Hi @leonardo-albertovich
The issue is plain characters are signed on x86_64, and unsigned on ppc64le. Forcing chars on ppc64le to be signed using the gcc option -fsigned-char. So no change required to the original flb_utils.c. Will update the PR shortly.

Copy link
Collaborator

@leonardo-albertovich leonardo-albertovich Feb 8, 2023

Choose a reason for hiding this comment

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

Awesome, with that out of the way I think it's good to go as long as it runs on CI and passes the tests of course.

Edit: Thank you very much for looking into it.

@patrick-stephens
Copy link
Contributor

patrick-stephens commented Feb 8, 2023

Just need to make sure the commits are signed and use the right prefix: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes

We should also ensure it builds across all targets with the ok-package-test label.

Signed-off-by: Sumit Dubey <[email protected]>
@patrick-stephens patrick-stephens added the ok-package-test Run PR packaging tests label Feb 9, 2023
@patrick-stephens patrick-stephens temporarily deployed to unstable February 9, 2023 12:22 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:22 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr-package-test February 9, 2023 12:22 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:22 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr-package-test February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:19 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:20 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr-package-test April 4, 2023 09:27 — with GitHub Actions Inactive
@sumitd2 sumitd2 temporarily deployed to pr April 4, 2023 09:40 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jul 4, 2023
@github-actions github-actions bot removed the Stale label Jul 11, 2023
@github-actions
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@patrick-stephens
Copy link
Contributor

I think there are still some outstanding review comments to address from @leonardo-albertovich

@edsiper
Copy link
Member

edsiper commented Aug 22, 2024

let's review this @leonardo-albertovich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-required ok-package-test Run PR packaging tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants