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

Builds failing with v1.3.1 #51

Open
impressiver opened this issue Jan 5, 2022 · 13 comments
Open

Builds failing with v1.3.1 #51

impressiver opened this issue Jan 5, 2022 · 13 comments

Comments

@impressiver
Copy link

Upgrading to unsplash/[email protected] causes our builds to fail w/ the following error:

/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Downgrading to unsplash/[email protected] fixed our builds for now.

ebrett added a commit to DFE-Digital/early-years-foundation-reform that referenced this issue Jan 6, 2022
ebrett added a commit to DFE-Digital/early-years-foundation-reform that referenced this issue Jan 6, 2022
@aaronklaassen
Copy link
Member

I don't have time to address this right now but reverted the breaking PR on master in the meantime.

@nubcake94
Copy link

@aaronklaassen 1.3.0 breaks as well now with the following error
image

@drewbrew
Copy link

drewbrew commented Jan 6, 2022

FWIW, 1.2.0 builds but does not run:

/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/request/retry (LoadError)
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:28:in `block in <module:Default>'
	from /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/rack_builder.rb:76:in `build'
	from /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/rack_builder.rb:65:in `initialize'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:27:in `new'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:27:in `<module:Default>'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:9:in `<module:Octokit>'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:6:in `<top (required)>'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit.rb:4:in `<top (required)>'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
	from /entrypoint.sh:4:in `<main>'
/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- octokit (LoadError)
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /entrypoint.sh:4:in `<main>'

@kirach
Copy link

kirach commented Jan 6, 2022

looks like 1.3.0 stopped working too due to the same error @drewbrew posted above

@impressiver
Copy link
Author

looks like 1.3.0 stopped working too due to the same error @drewbrew posted above

Broke for us too for a short time this morning, but builds are building again pinned to v1.3.0

@jbuettnerbild
Copy link

v1.3.0 stopped working since yesterday and v1.3.1 dosnt work also.
Please fix this.

@drewbrew
Copy link

drewbrew commented Jan 7, 2022

builds are building again pinned to v1.3.0

Same here, luckily

ebrett added a commit to DFE-Digital/early-years-foundation-reform that referenced this issue Jan 27, 2022
* remove conditional so Articles link always displays (#527)

Co-authored-by: Adam Goldstone <[email protected]>

* v1.3.1 causes failure so downgrading to v1.3.0 (#533)

see unsplash/comment-on-pr#51

* update page title, now responsive to article title and correctly ends with "GOV.UK" (#537)

* change deletion notice to accepted wording (#539)

* Hfeyp 597 remove back button on edit page screen (#530)

* remove back button from edit page screen

* update syntax to newer form of key value assignment, move class assignment outside data assignment

* changed behaviour so clicking cancel returns to previous screen

* Add space to end of hash

Co-authored-by: Rob Nichols <[email protected]>

Co-authored-by: Rob Nichols <[email protected]>

* Move sentry configuration file to initializers to ensure it is loaded on app start (#546)

* Update of gems (#548)

* aws-sdk-s3
* devise-security
* rails gems to 6.1.4.4
  actioncable
  actionmailbox
  actionmailer
  actionpack
  actiontext
  actionview
  activejob
  activemodel
  activerecord
  activestorage
  activesupport
  railsties
* govspeak

* Update tracking id for preprod to use new value (#547)

* remove other useful resources section (#542)

* remove other useful resources section

* add newline at end of file

* HFEYP-623 change from flexbox to grid so last line of grid aligns left (#545)

* change from flexbox to grid so last line of grid aligns left

* change column width to correct calculation

* add gem-c-govspeak class to articles (#532)

* add gem-c-govspeak class to articles

* move gem-c-govspeak class to govuk-body, add to article preview

* HFEYP-626 Adds alt text to article feature image with helper (#538)

* Add feature image helper to properly format images for articles

Added proper styling to the admin preview page, which was missing

* Include thumbnail images on index page

* Add guard to helper

* Use alt text for title attribute

* Cms refactor (#506)

* refactor content blocks into admin namespace

* WIP: refactor content assets into admin namespace

* refactor content blocks into admin namespace

* remove commented out code

* refactor contentPage & versions to admin namespace

* minor changes to back button positions

* fix rubocop issues

* refactor specs

* refactor specs

* delete routing specs

* fix typo

* add 404 redirect

* refactor feature specs for admin paths

* refactor request specs for admin path

* refactor view specs for admin paths

* refactor for admin path

* correct path

* add description

* fix syntax errors

* fix content_pages rspec

* remove unnecessary comments

* HFEYP-651 Update javascript packages and listen gem (#551)

* Update using `yarn upgrade --latest`

* Update listen gem

* Upgrade using bundle update

* Preprod uses staging credentials, not production (#553)

* HFEYP-652 remove duplicate spec (#554)

* remove duplicate and flaky spec

* remove empty spec

* Updated with suggestion to remove unused class (#555)

Still some concern with the issue that Youtube snippets will not go
go through the sanitize method

* HFEYP-604 Update styles for contents list (#550)

* Add styling from govuk_publishing_component

* Move contents list style within govspeak

* Revert to using the margins on li elements

* add target _blank to open in new tab (#567)

* Hfeyp 612 preview labels (#560)

* add preview of live to controller and route

* add preview label to draft preview page

* update links to preview of live page

* update preview of live page link

* add preview of live page

* add preview live spec

* correct id

* correct path

* move to one line

* add newline

* remove creation of new copy of content page

* add aria labels for context

Co-authored-by: Brett McHargue <[email protected]>

* Hfeyp 199 editor sign in page update (#571)

* change header text

* change label classes so now smaller text

* move line break inside conditional, remove unnecessary line break

* change call to action wording

Co-authored-by: Brett McHargue <[email protected]>

* HFEYP 36 CMS - Change Log out to take user to sign in page (#572)

* change sign out redirect to page that user was previously on

* add rubocop suggestions

* - update failing specs with new behaviour
- remove duplicate specs

Co-authored-by: Brett McHargue <[email protected]>

* Use main as integration branch, rather than develop (#575)

* Update gems and packages (#577)

Co-authored-by: Adam Goldstone <[email protected]>
Co-authored-by: Adam Goldstone <[email protected]>
Co-authored-by: Rob Nichols <[email protected]>
Co-authored-by: tunde-anddigital <[email protected]>
@dgrenner
Copy link

@aaronklaassen, would it be possible to create a new tag (v1.3.2) from master? With automatic dependency updates (using Renovate bot / dependabot) it's easy to end up on v1.3.1.

@wblondel
Copy link

A new tag would indeed be really useful.

@ruudk
Copy link

ruudk commented May 6, 2022

For anyone trying to work around this broken action, I decided to use the gh cli instead:

-   name: Add comment on PR
    run: |
        cat << EOF | gh pr comment ${{ github.event.pull_request.number }} --body-file -
        Hello from
        GitHub Actions
        EOF
    env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Unfortunately, there is no duplication check in the gh cli.

@sjortiz
Copy link

sjortiz commented Dec 15, 2022

any updates?

@Lockyy
Copy link

Lockyy commented Feb 6, 2023

This also broke our deploys when we upgraded from 1.3.0 to 1.3.1 with the error from the OP:

To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Reverting to 1.3.0 fixed the issue.

I noticed looking through the commits for the change from 1.3.0 to 1.3.1 that there's been a major refactor, would that be worthy of a major/minor version bump rather than a patch version change.

@apotek
Copy link

apotek commented Nov 4, 2024

This also broke our deploys when we upgraded from 1.3.0 to 1.3.1 with the error from the OP:

To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Reverting to 1.3.0 fixed the issue.

I noticed looking through the commits for the change from 1.3.0 to 1.3.1 that there's been a major refactor, would that be worthy of a major/minor version bump rather than a patch version change.

This exact issue is happening for us too, but it was already happening in 1.3.0 and I was hoping 1.3.1 would fix it :(.

" "true" "" ""
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Looks like the CLI route is the way to go.

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

No branches or pull requests