Giter VIP home page Giter VIP logo

Comments (12)

irphilli avatar irphilli commented on June 20, 2024 1

I ran into the same thing on Buildkite with similar setup (haven't tried the latest version just yet), but here's what showed up in the logs right before the agent would hang:

The authenticity of host 'github.com (140.82.113.3)' can't be established.
--
  | ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
  | Are you sure you want to continue connecting (yes/no/[fingerprint])?

from knapsack_pro-ruby.

camallen avatar camallen commented on June 20, 2024 1

Thanks @irphilli and apologies for the tardy reply knapsack folks.

I think this issue is related to git authentication to a private repo as the git credentials from buildkite are not available by default inside the repo. I'm asking the buildkite folks in buildkite/elastic-ci-stack-s3-secrets-hooks#58 and https://forum.buildkite.community/t/use-git-credentials-in-a-docker-container/3137

I'm not sure the use of timeout in ruby is the best solution (though it does work), https://jvns.ca/blog/2015/11/27/why-rubys-timeout-is-dangerous-and-thread-dot-raise-is-terrifying/ and the linked sidekiq author article http://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/

I'll report back what i find from buildkite as fixing this via a configuration setting will negate the need to run a timeout block on this ruby code

from knapsack_pro-ruby.

irphilli avatar irphilli commented on June 20, 2024 1

I haven't seen any build timeouts with the newer version.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024 1

@camallen I'm closing this issue for now. If you have more context, feel free to provide it or reopen the issue.

from knapsack_pro-ruby.

camallen avatar camallen commented on June 20, 2024 1

Thanks @ArturT agree to close this as it's working.

FWIW - this appears to be an issue with the use of docker containers and the git-credentials that buildkite setup on the agents not being available in the docker containers. Propagating and configuring those credentials for the containers git tooling should fix this issue.

I'll fold any solutions I discover or get from buildkite folks.

from knapsack_pro-ruby.

shadre avatar shadre commented on June 20, 2024

Apologies for the inconvenience!

Thank you for the report, and the investigation on your part. We are looking into the problem.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

@camallen When you tested your change, does the following command print anything?

git fetch --shallow-since "one month ago"
  • I suspect that maybe the repository is very large or there were a lot of commits in the past month and fetching just commits for the last month is still super slow.
  • Or there is some slow network connection to the repository.
  • Or there is no access to the repository from inside of the CI so something hangs due to lack of permissions. Logs would give us a clue. Could you provide logs to the support email? Thanks.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

@camallen We released a new knapsack_pro gem 5.3.3 version. It cancels the git fetch after 5 seconds if it takes too long. Could you try it?

If you still could provide logs that would be helpful so that we have a better understanding of the issue. Thank you.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

We also released the fix for the @knapsack-pro/jest 7.2.1 and @knapsack-pro/cypress 7.2.1 npm packages.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

@irphilli Please let us know if the latest knapsack_pro gem version work for you.

I'm not sure the use of timeout in ruby is the best solution (though it does work), https://jvns.ca/blog/2015/11/27/why-rubys-timeout-is-dangerous-and-thread-dot-raise-is-terrifying/ and the linked sidekiq author article http://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/

@camallen Thanks for the details about the potential Timeout issues. That's helpful.

I'll report back what i find from buildkite as fixing this via a configuration setting will negate the need to run a timeout block on this ruby code

Ok. Thank you.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

@irphilli Thanks for the info.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 20, 2024

@camallen ok. Thank you.

from knapsack_pro-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.