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

Log most recent error when OpenWhisk readiness times out #783

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

hparra
Copy link
Contributor

@hparra hparra commented Mar 29, 2024

Description

waitForOpenWhiskReadiness timeout now include most recent error in throw, e.g. FetchError: request to http://localhost:3233/api/v1 failed, reason: connect ECONNREFUSED ::1:3233

Motivation and Context

Subsequent OpenWhisk local runs keep timing out after initial runs were working. I had to debug in this way to understand why.

OT: createFetch cannot access local port suggesting OW is not running, but it is and my browser can access. Definitely some unrelated bug.

How Has This Been Tested?

  • unit test
  • monkeypatch manual test:
Error: local openwhisk stack startup timed out after 60000ms due to FetchError: request to http://localhost:3233/api/v1 failed, reason: connect ECONNREFUSED ::1:3233
    at Object.error (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli-plugin-app/node_modules/@oclif/core/lib/errors/index.js:27:15)
    at Run.error (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli-plugin-app/node_modules/@oclif/core/lib/command.js:139:23)
    at Run.catch (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli-plugin-app/src/BaseCommand.js:38:10)
    at async Run._run (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli-plugin-app/node_modules/@oclif/core/lib/command.js:121:13)
    at async Config.runCommand (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli/node_modules/@oclif/core/lib/config/config.js:329:25)
    at async run (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli/node_modules/@oclif/core/lib/main.js:89:16)
    at async AIOCommand.run (/Users/hgpa/hgpa/git/git.corp.adobe.com/wcms/seotech/node_modules/@adobe/aio-cli/src/index.js:30:12)
?2 seotech (MWPW-142722) %  

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a4bf919) to head (cafb167).
Report is 1 commits behind head on master.

❗ Current head cafb167 differs from pull request most recent head 097f3d8. Consider uploading reports for the commit 097f3d8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #783   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         3232      3234    +2     
  Branches       614       614           
=========================================
+ Hits          3232      3234    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shazron
Copy link
Member

shazron commented Apr 9, 2024

although the required check did not return any status, the Codecov bot reported in a comment that it is 100% coverage so ✅

@purplecabbage purplecabbage merged commit 53aa50e into adobe:master Apr 9, 2024
6 checks passed
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.

None yet

3 participants