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

workaround https://github.com/actions/upload-artifact/issues/38 #51

Merged
merged 4 commits into from
Mar 23, 2020
Merged

workaround https://github.com/actions/upload-artifact/issues/38 #51

merged 4 commits into from
Mar 23, 2020

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Mar 22, 2020

The artifact is defective due to the lack of permissions :-(

This is the suggested workaround until they fix it upstream.

@ocefpaf
Copy link
Member Author

ocefpaf commented Mar 22, 2020

The diff is working but the comment back functionality is not. See https://github.com/oceanhackweek/oceanhackweek.github.io/pull/51/checks?check_run_id=525775319#step:4:229

@emiliom
Copy link
Member

emiliom commented Mar 22, 2020

The artifact is defective due to the lack of permissions :-(

This is the suggested workaround until they fix it upstream.

That's not posted as a question to me, so I assume you're referring to permissions outside your and my control? Plus, if you don't have full, unmitigated permissions on the entire https://github.com/oceanhackweek real estate, let me know and I'll fix it.

I'm also assuming you're not looking for my review or merge here 😕

@ocefpaf
Copy link
Member Author

ocefpaf commented Mar 22, 2020

That's not posted as a question to me, so I assume you're referring to permissions outside your and my control? Plus, if you don't have full, unmitigated permissions on the entire @oceanhackweek real estate, let me know and I'll fix it.

It is not a question and it is not about the permission here. This GH action creates a zipped artifact without the proper permissions for us to extract it. See the issue in the title.

This PR implements a workaround for that issue until they fix it by creating a tarball of the directory tree before the action zips the artifact. We'll have to extract it twice but the original file and directory permissions will preserved.

I'm also assuming you're not looking for my review or merge here

Nope. Just trying to fix the diff action now. It works to produce the diff but it fails to comment it back in the PR. We should be seeing this here:

--- /jekyll-diff-action/old/applicant-info.html
+++ /jekyll-diff-action/new/applicant-info.html
@@ -86 +86 @@
-<p>If you are ready to apply, please use the application form <a href=\"https://form.jotform.com/oceanhack/2019\">https://form.jotform.com/oceanhack/2019</a></p>
+<p>If you are ready to apply, please use the application form <a href=\"https://form.jotform.com/oceanhack/2020\">https://form.jotform.com/oceanhack/2020</a></p>

Which is virtually the same as looking into the markdown diff but helpful when there are more HTML changes than just simple text.

@ocefpaf
Copy link
Member Author

ocefpaf commented Mar 23, 2020

@emiliom What do you think about ocefpaf@a62cd0e? Useful or should we remove the jekyll-diff-action? BTW, before we merge this I need to revert that last commit.

@emiliom
Copy link
Member

emiliom commented Mar 23, 2020

I first need to be sure I understand what the diff GH action will do. Earlier you said this:

This PR implements a workaround for that issue until they fix it by creating a tarball of the directory tree before the action zips the artifact. We'll have to extract it twice but the original file and directory permissions will preserved.

So, between that and maybe something else you've said, my understanding is that this GH action will generate a tarball after each PR merge, that people can download and decompress to view the web site changes locally as static pages. Typically these PR merges would be on a dev/draft branch, so we're not impacting the live web site.

Am I getting that right? If so, that seems pretty useful. Specially to me! I want to encourage people to submit PR's, but still not make it hard on myself to allow others to view the suggested changes.

@ocefpaf
Copy link
Member Author

ocefpaf commented Mar 23, 2020

So, between that and maybe something else you've said, my understanding is that this GH action will generate a tarball after each PR merge, that people can download and decompress to view the web site changes locally as static pages.

Yep. We are using two GH actions here. One that builds the site and save the artifact that you can inspect. The other one is the jekyll-diff that will comment back the PR diff on the built HTML.

Typically these PR merges would be on a dev/draft branch, so we're not impacting the live web site.

This is not implemented here but I don't see the point unless we really want a live webpage for inspection in a draft website. (I was hoping for a GH action that would facilitate that but there is no such thing.)

Am I getting that right? If so, that seems pretty useful. Specially to me! I want to encourage people to submit PR's, but still not make it hard on myself to allow others to view the suggested changes.

Yep. This helps us review PRs here (jekyll-diff) and locally (built artifact).

@ocefpaf
Copy link
Member Author

ocefpaf commented Mar 23, 2020

@emiliom this is ready for a review and merge now.

@emiliom emiliom merged commit a060927 into oceanhackweek:master Mar 23, 2020
@ocefpaf ocefpaf deleted the workaround_zipfile branch March 23, 2020 22:01
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