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

Fixed CI configuration: adapted folder structure #539

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

Dscano
Copy link
Contributor

@Dscano Dscano commented Jan 26, 2025

Moved the folder from docs/v1/build to docs/v1 and separately copied the generated files.
@chrispsommers

.gitignore Outdated Show resolved Hide resolved
Copy link
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

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

LGTM

@chrispsommers chrispsommers merged commit 6af490f into p4lang:main Jan 27, 2025
5 checks passed
@chrispsommers
Copy link
Collaborator

@jafingerhut @Dscano The build finally went through, until it encountered upload auth issues. Does anybody know the solution?

@Dscano
Copy link
Contributor Author

Dscano commented Jan 27, 2025

@jafingerhut @Dscano The build finally went through, until it encountered upload auth issues. Does anybody know the solution?

I compared the logs from main-branch-uploads-success and main-branch-uploads-fails. It seems that in the main-branch-uploads-fails run, the deletion of old files is performed, but we are unable to do this due to permission issues. These permissions are related to the AWS_S3 user that runs the command.

Based on the arguments and this guide, It should be fine, but further investigation is needed.

@jafingerhut
Copy link
Contributor

I don't know the solution, but perhaps this CI task does not have access to the secret credentials required to update that S3 storage account?

@chrispsommers
Copy link
Collaborator

@antoninbas Any ideas here? Thanks.

@chrispsommers
Copy link
Collaborator

@fruffy we're having S3 access issues, do you have any advice?

@antoninbas
Copy link
Member

I have added the missing permission so it should work now.

Also, please modify the job definition so that only the required files are uploaded (build outputs), not all the source files. cc @Dscano

On a side note, this is my personal AWS account. I am happy to keep it going the way it is, but feel free to switch to a p4.org account if such a thing exists.

Finally, it seems that the build outputs are no longer "copied" to the gh-pages branch, which means the official p4.org links are no longer up-to-date.

@fruffy
Copy link
Contributor

fruffy commented Jan 31, 2025

Can check this over the weekend if it isn't resolved by then.

@chrispsommers
Copy link
Collaborator

Thanks @antoninbas. @fruffy we should probably have p4.org account for this and not depend upon personal accounts, although Antonin has graciously extended his use of his.

@chrispsommers
Copy link
Collaborator

@Dscano Could you please take a look at @antoninbas's comments? Thanks!

@Dscano Dscano mentioned this pull request Jan 31, 2025
@Dscano
Copy link
Contributor Author

Dscano commented Jan 31, 2025

Hi @chrispsommers, I’ve addressed Antoinnin’s comment in this PR #541 (comment)

@fruffy
Copy link
Contributor

fruffy commented Feb 1, 2025

@AdarshRawat1 You did a great job with automated documentation and CI for P4C. We have similar problem here with P4Runtime. Do you think you could set up a similar structure for p4runtime? We do not need Doxygen etc, html and pdf previews for a branch are enough. If you are interested we can discuss with @chrispsommers, @Dscano, and @jafingerhut. I do not think it will be a big time investment.

@antoninbas Trying to understand the current setup. Why do we need AWS, to upload the html and PDF files. Is github pages not enough?

@AdarshRawat1
Copy link
Member

@AdarshRawat1 You did a great job with automated documentation and CI for P4C. We have similar problem here with P4Runtime. Do you think you could set up a similar structure for p4runtime?

I'll be happy to help! I'm looking into the current setup and will update you soon.

@antoninbas Trying to understand the current setup. Why do we need AWS, to upload the html and PDF files. Is github pages not enough?

+1 on this.

@AdarshRawat1
Copy link
Member

Finally, it seems that the build outputs are no longer "copied" to the gh-pages branch, which means the official p4.org links are no longer up-to-date.

@antoninbas Could you help me understand why the latest GitHub Pages deployment is pointing to this?

image

Even the June 7, 2024 deployment leads to an empty page. Has it been like this from the start, or did something change recently?
image

@AdarshRawat1
Copy link
Member

AdarshRawat1 commented Feb 1, 2025

Do you think you could set up a similar structure for p4runtime? We do not need Doxygen etc, html and pdf previews for a branch are enough.

Based on the docs, I'm assuming that we'll be working with AsciiDoc for rendering the output on GitHub Pages. Is this what you have in mind?

@fruffy
Copy link
Contributor

fruffy commented Feb 1, 2025

Do you think you could set up a similar structure for p4runtime? We do not need Doxygen etc, html and pdf previews for a branch are enough.

Based on the docs, I'm assuming that we'll be working with AsciiDoc for rendering the output on GitHub Pages. Is this what you have in mind?

Davide set this up in #510. Afaik this is already working but I have not kept up with the developments in this repository.

@Dscano
Copy link
Contributor Author

Dscano commented Feb 2, 2025

Do you think you could set up a similar structure for p4runtime? We do not need Doxygen etc, html and pdf previews for a branch are enough.

Based on the docs, I'm assuming that we'll be working with AsciiDoc for rendering the output on GitHub Pages. Is this what you have in mind?

Yes, so basically, AsciiDoc is the text processor used to generate the .pdf and .html files. You can generate these files via the make command within the p4runtime/docs/v1/.

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.

6 participants