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 1 commit 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.

@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
@patrick-stephens patrick-stephens temporarily deployed to pr February 9, 2023 12:23 — 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 Stale and removed Stale labels Jul 4, 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

@patrick-stephens
Copy link
Contributor

I need to investigate the ol' PR fork pushing images failures but fundamentally the images build - they just fail to upload with 403 errors for permissions (I'm guessing because it is from a fork).

@patrick-stephens
Copy link
Contributor

I need to investigate the ol' PR fork pushing images failures but fundamentally the images build - they just fail to upload with 403 errors for permissions (I'm guessing because it is from a fork).

This is why: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

The token has write permissions to a number of [API endpoints](https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token) except in the case of pull requests from forks which are always read.

It means we cannot push images for PRs run via forks.

@patrick-stephens
Copy link
Contributor

Once #10106 is merged we can rebase this PR to confirm all is green with container builds now.

@sumitd2
Copy link

sumitd2 commented Mar 20, 2025

Hi @patrick-stephens Let us know if you need our help. cc: @seth-priya

@patrick-stephens
Copy link
Contributor

@adilhusain-s could you rebase from master so we can remove the messy merge commits?

@sumitd2
Copy link

sumitd2 commented Mar 21, 2025

@patrick-stephens My bad, I have messed up the branch while trying to rebase. Looks like a new PR is the only option now.

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