Repository navigation
Simplify generate-site workflow with explicit Jekyll dependencies and standard GitHub Actions - #30
Conversation
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/1de5a3b1-4237-4116-a453-4dfadf60b97b Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/1de5a3b1-4237-4116-a453-4dfadf60b97b Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
|
The checks are failing @copilot please fix. |
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/3a11a65a-b8e1-45f0-86a0-2bd117c704db Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/3a11a65a-b8e1-45f0-86a0-2bd117c704db Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/3a11a65a-b8e1-45f0-86a0-2bd117c704db Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Fixed in 905eb82. The failing check was hitting a Bundler permission error under |
|
@copilot please keep debugging and making changes until the tests pass. |
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/362739f5-f47b-4dac-abbf-a92637d94f65 Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Fixed in 99d94a5. I traced the current failure past Bundler into a Ruby 3 incompatibility in Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot it is still failing. You are not very good at this it seems. |
Agent-Logs-Url: https://github.com/rse-ops/landscape/sessions/919421ec-328d-4d55-84b9-fa04e365bacc Co-authored-by: vsoch <814322+vsoch@users.noreply.github.com>
Fixed in 2ddc73d. The remaining failure was that |
This PR replaces the previous custom Jekyll container patching flow with a simpler, standard GitHub Actions-based site build and deploy workflow.
Changes Made
github-pagesmeta-gem with explicit pinned site dependencies:jekyll ~> 4.4jekyll-scholar ~> 7.3Gemfile.lockso Bundler resolves a reproducible gem set in CI.actions/checkout@v4ruby/setup-ruby@v1with Ruby 3.2bundle exec jekyll build --futuregh-pagesbranch shell script withpeaceiris/actions-gh-pages@v4.bibtex-rubycompatibility patching and the manual Docker-based Jekyll build recipe.The existing
latex2mdcontent-generation step is preserved, but the Jekyll build and deploy path now uses a supported Ruby/Jekyll toolchain instead of runtime patching inside the workflow.Testing
bundle exec jekyll build --futuresucceeds on Ruby 3.2Original prompt
The GitHub Actions job in
rse-ops/landscapeis failing while building the Jekyll site.Context:
.github/workflows/generate-site.yamljekyll/builder:4.0:jekyll build --futurejekyll 3.10.0 | Error: tried to create Proc object without a blockRelevant files:
.github/workflows/generate-site.yamlGemfile_config.ymlRequested change:
bundle installandbundle exec jekyll build --futureinside the container.Implementation guidance:
.github/workflows/generate-site.yamlin the "Build Jekyll site" step.jekyll build --futureinvocation with a Bundler-based invocation.bundle execshould fix it.Acceptance criteria:
jekyll buildwithout Bundler.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is most likely caused by a Jekyll version mismatch in the workflow.
Root cause
The workflow builds the site with the Docker image
jekyll/builder:4.0:.github/workflows/generate-site.yaml:27-29https://github.com/rse-ops/landscape/blob/b113dae7093e098e3be550ea476c16046bc828d2/.github/workflows/generate-site.yaml
But the job log shows the build actually failing inside Jekyll 3.10.0 with:
jekyll 3.10.0 | Error: tried to create Proc object without a blockThe repository also pins its site dependencies through
github-pagesandjekyll-scholar:Gemfile:19-20https://github.com/rse-ops/landscape/blob/b113dae7093e098e3be550ea476c16046bc828d2/Gemfile
That combination is a common source of breakage when the container’s preinstalled gems don’t match the project’s Gemfile/Bundler lock expectations.
Fix
Build the site with Bundler inside the container instead of calling
jekyll builddirectly.Recommended workflow change
Replace:
with:
Why this solves it
bundle exec jekyll buildforces the build to use the gem versions defined by the repo rather than whatever Jekyll/gems happen to be preinstalled in the image.If the error persists
The next likely issue is that
github-pagesandjekyll-scholarmay be resolving to incompatible versions together. In that case, the cleanest repo-side fix is to pin versions explicitly inGemfile, for example:and commit the resulting
Gemfile.lock.Most targeted change
If you want the smallest possible fix, update only
.github/workflows/generate-site.yamlso the build step uses:instead of:
User: Can you open a pr to start working on this
Assistant: I’ve prepared the PR creation request and we’re waiting for your confirmation in the GitHub prompt before I can continue.
This pull request was created from Copilot chat.