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

fix(deps): Update dependency lazy-ass to version 2.x 🌟 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 30, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lazy-ass 1.6.0 -> 2.0.3 age adoption passing confidence

Release Notes

bahmutov/lazy-ass (lazy-ass)

v2.0.3

Compare Source

Bug Fixes
  • remove dependencies badges (2bd8f2f)

v2.0.2

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - "after 2am and before 4am" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Copy link

PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

CI Failure Feedback 🧐

Action: ci

Failed stage: Run npm test [❌]

Failed test name: getBranch

Failure summary:

The action failed because multiple tests encountered a TypeError indicating that la is not a
function. This error suggests that there might be a missing or incorrect import or definition of the
la function in the test files or the code being tested. The error occurred in the following
contexts:

  • getBranch function tests
  • commit-info function tests
  • git-api function tests
  • utils function tests

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    167:  > standard --verbose --fix src/*.js
    168:  > @khulnasoft/commit-info@0.0.0-development test
    169:  > npm run unit
    170:  > @khulnasoft/commit-info@0.0.0-development unit
    171:  > mocha src/*-spec.js
    172:  getBranch
    173:  1) is a function
    174:  2) returns null for empty output
    175:  3) returns null on git error
    ...
    
    198:  14) overwrites first string
    199:  R.mergeWith
    200:  15) keeps non-empty string
    201:  firstFoundValue
    202:  16) finds first value
    203:  17) finds second value
    204:  18) finds nothing
    205:  2 passing (36ms)
    206:  18 failing
    207:  1) getBranch
    208:  is a function:
    209:  TypeError: la is not a function
    210:  at Context.<anonymous> (src/commit-info-spec.js:16:5)
    211:  at processImmediate (node:internal/timers:466:21)
    212:  2) getBranch
    213:  returns null for empty output:
    214:  TypeError: la is not a function
    215:  at runGitCommand (src/git-api.js:31:3)
    216:  at getGitBranch (src/git-api.js:62:10)
    217:  at getBranch (src/utils.js:27:10)
    218:  at Context.<anonymous> (src/commit-info-spec.js:21:12)
    219:  at processImmediate (node:internal/timers:466:21)
    220:  3) getBranch
    221:  returns null on git error:
    222:  TypeError: la is not a function
    223:  at runGitCommand (src/git-api.js:31:3)
    224:  at getGitBranch (src/git-api.js:62:10)
    225:  at getBranch (src/utils.js:27:10)
    226:  at Context.<anonymous> (src/commit-info-spec.js:32:12)
    227:  at processImmediate (node:internal/timers:466:21)
    228:  4) getBranch
    229:  returns null on git HEAD:
    230:  TypeError: la is not a function
    231:  at runGitCommand (src/git-api.js:31:3)
    232:  at getGitBranch (src/git-api.js:62:10)
    233:  at getBranch (src/utils.js:27:10)
    234:  at Context.<anonymous> (src/commit-info-spec.js:43:12)
    235:  at processImmediate (node:internal/timers:466:21)
    236:  5) commit-info
    237:  no environment variables
    238:  returns information:
    239:  TypeError: la is not a function
    ...
    
    241:  at getGitBranch (src/git-api.js:62:10)
    242:  at getBranch (src/utils.js:27:10)
    243:  at commitInfo (src/index.js:23:13)
    244:  at Context.<anonymous> (src/commit-info-spec.js:83:14)
    245:  at processImmediate (node:internal/timers:466:21)
    246:  6) commit-info
    247:  no environment variables
    248:  returns nulls for missing fields:
    249:  TypeError: la is not a function
    ...
    
    251:  at getGitBranch (src/git-api.js:62:10)
    252:  at getBranch (src/utils.js:27:10)
    253:  at commitInfo (src/index.js:23:13)
    254:  at Context.<anonymous> (src/commit-info-spec.js:94:14)
    255:  at processImmediate (node:internal/timers:466:21)
    256:  7) commit-info
    257:  no environment variables
    258:  has getRemoteOrigin method:
    259:  TypeError: la is not a function
    260:  at Context.<anonymous> (src/commit-info-spec.js:105:7)
    261:  at processImmediate (node:internal/timers:466:21)
    262:  8) commit-info
    263:  combination with environment variables
    264:  returns information:
    265:  TypeError: la is not a function
    ...
    
    267:  at getGitBranch (src/git-api.js:62:10)
    268:  at getBranch (src/utils.js:27:10)
    269:  at commitInfo (src/index.js:23:13)
    270:  at Context.<anonymous> (src/commit-info-spec.js:149:14)
    271:  at processImmediate (node:internal/timers:466:21)
    272:  9) git-api
    273:  getGitBranch
    274:  "before all" hook for "is a function":
    275:  TypeError: la is not a function
    276:  at runGitCommand (src/git-api.js:31:3)
    277:  at getGitBranch (src/git-api.js:62:10)
    278:  at Context.<anonymous> (src/git-api-spec.js:21:14)
    279:  at processImmediate (node:internal/timers:466:21)
    280:  10) git-api
    281:  subject and body
    282:  gets subject and body:
    283:  TypeError: la is not a function
    284:  at runGitCommand (src/git-api.js:31:3)
    285:  at Context.<anonymous> (src/git-api-spec.js:76:18)
    286:  at processImmediate (node:internal/timers:466:21)
    287:  11) git-api
    288:  getting commit info
    289:  works:
    290:  TypeError: la is not a function
    291:  at runGitCommand (src/git-api.js:31:3)
    292:  at Context.<anonymous> (src/git-api-spec.js:106:18)
    293:  at processImmediate (node:internal/timers:466:21)
    294:  12) utils
    295:  getFields
    296:  returns list of fields:
    297:  TypeError: la is not a function
    298:  at Context.<anonymous> (src/utils-spec.js:14:7)
    299:  at processImmediate (node:internal/timers:466:21)
    300:  13) utils
    301:  Object.assign
    302:  replaces empty strings with non-empty:
    303:  TypeError: la is not a function
    304:  at Context.<anonymous> (src/utils-spec.js:21:7)
    305:  at processImmediate (node:internal/timers:466:21)
    306:  14) utils
    307:  Object.assign
    308:  overwrites first string:
    309:  TypeError: la is not a function
    310:  at Context.<anonymous> (src/utils-spec.js:26:7)
    311:  at processImmediate (node:internal/timers:466:21)
    312:  15) utils
    313:  R.mergeWith
    314:  keeps non-empty string:
    315:  TypeError: la is not a function
    316:  at Context.<anonymous> (src/utils-spec.js:33:7)
    317:  at processImmediate (node:internal/timers:466:21)
    318:  16) utils
    319:  firstFoundValue
    320:  finds first value:
    321:  TypeError: la is not a function
    322:  at Context.<anonymous> (src/utils-spec.js:48:7)
    323:  at processImmediate (node:internal/timers:466:21)
    324:  17) utils
    325:  firstFoundValue
    326:  finds second value:
    327:  TypeError: la is not a function
    328:  at Context.<anonymous> (src/utils-spec.js:53:7)
    329:  at processImmediate (node:internal/timers:466:21)
    330:  18) utils
    331:  firstFoundValue
    332:  finds nothing:
    333:  TypeError: la is not a function
    334:  at Context.<anonymous> (src/utils-spec.js:58:7)
    335:  at processImmediate (node:internal/timers:466:21)
    336:  ##[error]Process completed with exit code 18.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @renovate renovate bot force-pushed the renovate/major-2-team-npm-packages branch from fb4b102 to f0f76a7 Compare February 2, 2025 18:10
    Copy link

    coderabbitai bot commented Feb 2, 2025

    Important

    Review skipped

    Bot user detected.

    To trigger a single review, invoke the @coderabbitai review command.

    You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


    Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

    ❤️ Share
    🪧 Tips

    Chat

    There are 3 ways to chat with CodeRabbit:

    • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
      • I pushed a fix in commit <commit_id>, please review it.
      • Generate unit testing code for this file.
      • Open a follow-up GitHub issue for this discussion.
    • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
      • @coderabbitai generate unit testing code for this file.
      • @coderabbitai modularize this function.
    • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
      • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
      • @coderabbitai read src/utils.ts and generate unit testing code.
      • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
      • @coderabbitai help me debug CodeRabbit configuration file.

    Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

    CodeRabbit Commands (Invoked using PR comments)

    • @coderabbitai pause to pause the reviews on a PR.
    • @coderabbitai resume to resume the paused reviews.
    • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
    • @coderabbitai full review to do a full review from scratch and review all the files again.
    • @coderabbitai summary to regenerate the summary of the PR.
    • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
    • @coderabbitai resolve resolve all the CodeRabbit review comments.
    • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
    • @coderabbitai help to get help.

    Other keywords and placeholders

    • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
    • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
    • Add @coderabbitai anywhere in the PR title to generate the title automatically.

    CodeRabbit Configuration File (.coderabbit.yaml)

    • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
    • Please see the configuration documentation for more information.
    • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

    Documentation and Community

    • Visit our Documentation for detailed information on how to use CodeRabbit.
    • Join our Discord Community to get help, request features, and share feedback.
    • Follow us on X/Twitter for updates and announcements.

    Copy link

    CI Feedback 🧐

    A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

    Action: ci

    Failed stage: Run npm test [❌]

    Failed test name: getBranch

    Failure summary:

    The action failed due to multiple test failures in the JavaScript codebase. The root cause is a
    TypeError where la is not defined as a function but is being called as one. This error occurs across
    multiple test files:

  • In git-api.js: The runGitCommand function at line 31 is trying to call la as a function
  • The error cascades through various tests including getBranch, commit-info, and utility tests
  • Out of 20 tests, 18 failed with the same TypeError
  • The error appears to originate from a core utility that's used throughout the codebase

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    171:  > standard --verbose --fix src/*.js
    172:  > @khulnasoft/commit-info@0.0.0-development test
    173:  > npm run unit
    174:  > @khulnasoft/commit-info@0.0.0-development unit
    175:  > mocha src/*-spec.js
    176:  getBranch
    177:  1) is a function
    178:  2) returns null for empty output
    179:  3) returns null on git error
    ...
    
    202:  14) overwrites first string
    203:  R.mergeWith
    204:  15) keeps non-empty string
    205:  firstFoundValue
    206:  16) finds first value
    207:  17) finds second value
    208:  18) finds nothing
    209:  2 passing (35ms)
    210:  18 failing
    211:  1) getBranch
    212:  is a function:
    213:  TypeError: la is not a function
    214:  at Context.<anonymous> (src/commit-info-spec.js:16:5)
    215:  at processImmediate (node:internal/timers:466:21)
    216:  2) getBranch
    217:  returns null for empty output:
    218:  TypeError: la is not a function
    219:  at runGitCommand (src/git-api.js:31:3)
    220:  at getGitBranch (src/git-api.js:62:10)
    221:  at getBranch (src/utils.js:27:10)
    222:  at Context.<anonymous> (src/commit-info-spec.js:21:12)
    223:  at processImmediate (node:internal/timers:466:21)
    224:  3) getBranch
    225:  returns null on git error:
    226:  TypeError: la is not a function
    227:  at runGitCommand (src/git-api.js:31:3)
    228:  at getGitBranch (src/git-api.js:62:10)
    229:  at getBranch (src/utils.js:27:10)
    230:  at Context.<anonymous> (src/commit-info-spec.js:32:12)
    231:  at processImmediate (node:internal/timers:466:21)
    232:  4) getBranch
    233:  returns null on git HEAD:
    234:  TypeError: la is not a function
    235:  at runGitCommand (src/git-api.js:31:3)
    236:  at getGitBranch (src/git-api.js:62:10)
    237:  at getBranch (src/utils.js:27:10)
    238:  at Context.<anonymous> (src/commit-info-spec.js:43:12)
    239:  at processImmediate (node:internal/timers:466:21)
    240:  5) commit-info
    241:  no environment variables
    242:  returns information:
    243:  TypeError: la is not a function
    ...
    
    245:  at getGitBranch (src/git-api.js:62:10)
    246:  at getBranch (src/utils.js:27:10)
    247:  at commitInfo (src/index.js:23:13)
    248:  at Context.<anonymous> (src/commit-info-spec.js:83:14)
    249:  at processImmediate (node:internal/timers:466:21)
    250:  6) commit-info
    251:  no environment variables
    252:  returns nulls for missing fields:
    253:  TypeError: la is not a function
    ...
    
    255:  at getGitBranch (src/git-api.js:62:10)
    256:  at getBranch (src/utils.js:27:10)
    257:  at commitInfo (src/index.js:23:13)
    258:  at Context.<anonymous> (src/commit-info-spec.js:94:14)
    259:  at processImmediate (node:internal/timers:466:21)
    260:  7) commit-info
    261:  no environment variables
    262:  has getRemoteOrigin method:
    263:  TypeError: la is not a function
    264:  at Context.<anonymous> (src/commit-info-spec.js:105:7)
    265:  at processImmediate (node:internal/timers:466:21)
    266:  8) commit-info
    267:  combination with environment variables
    268:  returns information:
    269:  TypeError: la is not a function
    ...
    
    271:  at getGitBranch (src/git-api.js:62:10)
    272:  at getBranch (src/utils.js:27:10)
    273:  at commitInfo (src/index.js:23:13)
    274:  at Context.<anonymous> (src/commit-info-spec.js:149:14)
    275:  at processImmediate (node:internal/timers:466:21)
    276:  9) git-api
    277:  getGitBranch
    278:  "before all" hook for "is a function":
    279:  TypeError: la is not a function
    280:  at runGitCommand (src/git-api.js:31:3)
    281:  at getGitBranch (src/git-api.js:62:10)
    282:  at Context.<anonymous> (src/git-api-spec.js:21:14)
    283:  at processImmediate (node:internal/timers:466:21)
    284:  10) git-api
    285:  subject and body
    286:  gets subject and body:
    287:  TypeError: la is not a function
    288:  at runGitCommand (src/git-api.js:31:3)
    289:  at Context.<anonymous> (src/git-api-spec.js:76:18)
    290:  at processImmediate (node:internal/timers:466:21)
    291:  11) git-api
    292:  getting commit info
    293:  works:
    294:  TypeError: la is not a function
    295:  at runGitCommand (src/git-api.js:31:3)
    296:  at Context.<anonymous> (src/git-api-spec.js:106:18)
    297:  at processImmediate (node:internal/timers:466:21)
    298:  12) utils
    299:  getFields
    300:  returns list of fields:
    301:  TypeError: la is not a function
    302:  at Context.<anonymous> (src/utils-spec.js:14:7)
    303:  at processImmediate (node:internal/timers:466:21)
    304:  13) utils
    305:  Object.assign
    306:  replaces empty strings with non-empty:
    307:  TypeError: la is not a function
    308:  at Context.<anonymous> (src/utils-spec.js:21:7)
    309:  at processImmediate (node:internal/timers:466:21)
    310:  14) utils
    311:  Object.assign
    312:  overwrites first string:
    313:  TypeError: la is not a function
    314:  at Context.<anonymous> (src/utils-spec.js:26:7)
    315:  at processImmediate (node:internal/timers:466:21)
    316:  15) utils
    317:  R.mergeWith
    318:  keeps non-empty string:
    319:  TypeError: la is not a function
    320:  at Context.<anonymous> (src/utils-spec.js:33:7)
    321:  at processImmediate (node:internal/timers:466:21)
    322:  16) utils
    323:  firstFoundValue
    324:  finds first value:
    325:  TypeError: la is not a function
    326:  at Context.<anonymous> (src/utils-spec.js:48:7)
    327:  at processImmediate (node:internal/timers:466:21)
    328:  17) utils
    329:  firstFoundValue
    330:  finds second value:
    331:  TypeError: la is not a function
    332:  at Context.<anonymous> (src/utils-spec.js:53:7)
    333:  at processImmediate (node:internal/timers:466:21)
    334:  18) utils
    335:  firstFoundValue
    336:  finds nothing:
    337:  TypeError: la is not a function
    338:  at Context.<anonymous> (src/utils-spec.js:58:7)
    339:  at processImmediate (node:internal/timers:466:21)
    340:  ##[error]Process completed with exit code 18.
    

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    0 participants