Skip to content

chore(lambda-nodejs): fix test broken in CodeBuild (backport #17884)#17885

Merged
mergify[bot] merged 1 commit intov2-mainfrom
mergify/bp/v2-main/pr-17884
Dec 7, 2021
Merged

chore(lambda-nodejs): fix test broken in CodeBuild (backport #17884)#17885
mergify[bot] merged 1 commit intov2-mainfrom
mergify/bp/v2-main/pr-17884

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Dec 7, 2021

This is an automatic backport of pull request #17884 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

This test fails in our CodeBuild environment with the following error:

```
FAIL test/util.test.js
  ● extractDependencies › with file dependency
    expect(received).toEqual(expected) // deep equality
    - Expected  - 1
    + Received  + 1
      Object {
    -   "my-module": StringMatching /aws-cdk\/packages\/@aws-cdk\/core/,
    +   "my-module": "file:/codebuild/output/src777018412/src/packages/@aws-cdk/core",
      }
      130 |     }));
      131 |
    > 132 |     expect(extractDependencies(pkgPath, ['my-module'])).toEqual({
          |                                                         ^
      133 |       'my-module': expect.stringMatching(/aws-cdk\/packages\/@aws-cdk\/core/),
      134 |     });
      135 |
      at Object.<anonymous> (test/util.test.ts:132:57)
 ```

This is due to the source being located in .../src instead of .../aws-cdk. Fix
the test by stopping the check at the 'packages' directory.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*

(cherry picked from commit d5c249f)
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Dec 7, 2021

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 340802d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 50011bb into v2-main Dec 7, 2021
@mergify mergify bot deleted the mergify/bp/v2-main/pr-17884 branch December 7, 2021 14:30
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Dec 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

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.

3 participants