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

[$500] Update the package "jest" to the latest version #9941

Closed
adelekennedy opened this issue Jul 15, 2022 · 50 comments
Closed

[$500] Update the package "jest" to the latest version #9941

adelekennedy opened this issue Jul 15, 2022 · 50 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review Task

Comments

@adelekennedy
Copy link

adelekennedy commented Jul 15, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


coming from this issue https://github.com/Expensify/Expensify/issues/218314

Snyk reported a HIGH severity vulnerability in Expensify/App:package.json.

More information about this issue can be found here.

Snyk ID: SNYK-JS-JSONSCHEMA-1920922
Package: json-schema
Version: 0.2.3
Language: js
Date Introduced: 2022-07-04

from @flodnv:

$ npm list jest-cli [12:26:37]
[email protected] /Users/flo/Expensidev/App
├─┬ [email protected]
│ └── [email protected] deduped
└── [email protected]

View all open jobs on GitHub

@adelekennedy adelekennedy added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Jul 15, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 15, 2022

Triggered auto assignment to @greg-schroeder (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Jul 15, 2022
@greg-schroeder
Copy link
Contributor

Ah yes, we should update the package "jest" to the latest version, of course

@melvin-bot
Copy link

melvin-bot bot commented Jul 15, 2022

Triggered auto assignment to @sketchydroide (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@jeet-dhandha-lio
Copy link

https://github.com/Expensify/Expensify/issues/218314

Getting a 404 not found page on this link.

@melvin-bot melvin-bot bot added the Overdue label Jul 18, 2022
@sketchydroide
Copy link
Contributor

Not sure if this is supposed to be an internal or extenal issue, asking on slack

@melvin-bot melvin-bot bot removed the Overdue label Jul 18, 2022
@sketchydroide sketchydroide added the External Added to denote the issue can be worked on by a contributor label Jul 18, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2022

Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@sibelius
Copy link

what is hard about it ?

just upgrade, fix the breaking changes and make the tests pass ?

@jboniface jboniface assigned adelekennedy and unassigned jboniface Jul 19, 2022
@jboniface
Copy link

@adelekennedy this needs an upwork job when you get a chance (i unassigned myself since you were assigned to manage this in the E/E repo)

@flodnv
Copy link
Contributor

flodnv commented Jul 19, 2022

@sibelius nothing hard per se (hopefully), indeed it's just about:

  • Reading the changelog, figuring out problems
  • Upgrading, fixing problems
  • Testing everything
  • Shipping it

@melvin-bot melvin-bot bot added the Overdue label Jul 25, 2022
@adelekennedy
Copy link
Author

internal
external

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 25, 2022
@parasharrajat
Copy link
Member

parasharrajat commented Sep 7, 2022

Am I eligible for compensation here? I actually created the PR #10300. I can still upgrade this if needed.

@flodnv
Copy link
Contributor

flodnv commented Sep 7, 2022

Do you think we should "cut our losses" and compensate you $500, or that you should continue investigating this for a while and we'll see later?

@parasharrajat
Copy link
Member

I am happy to keep tracking the state of the fix on the reanimated repo. Currently, I am checking it on weekly basis.

But I understand, that upgrading jest has no apparent advantage, a working version of jest should be fine.

Any decision is fine with me.

@flodnv
Copy link
Contributor

flodnv commented Sep 8, 2022

Ah, ok. I guess we can keep tracking for a little while and see what happens

@flodnv flodnv reopened this Sep 8, 2022
@flodnv flodnv added Monthly KSv2 and removed Weekly KSv2 labels Sep 8, 2022
@parasharrajat
Copy link
Member

There is a new PR with the fix on react-native-reanimated.

@sketchydroide
Copy link
Contributor

@parasharrajat any update on this?

@melvin-bot melvin-bot bot removed the Overdue label Oct 19, 2022
@parasharrajat
Copy link
Member

The new PR is not yet merged software-mansion/react-native-reanimated#3559.

@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 19, 2022
@adelekennedy
Copy link
Author

@parasharrajat @sketchydroide I see the above PR is merged - from the above I think you're due for compensation from the work you've done - does this need to be stay open or can we pay and close?

@parasharrajat
Copy link
Member

Thanks for the bump. Let me check the latest state of the PR and I will update you.

@adelekennedy
Copy link
Author

@parasharrajat going through my issues before ooo, what are next steps?

@parasharrajat
Copy link
Member

Tried the new version. There are a few errors. I will try to fix those. PR is updated to the latest.

@kevinksullivan
Copy link
Contributor

👋 just want to confirm what next steps look like here. @parasharrajat there are errors with the new version, which you will fix in your existing PR? Is that accurate?

@parasharrajat
Copy link
Member

Yes, I will try to fix those and share an update as soon as possible.

@parasharrajat
Copy link
Member

parasharrajat commented Nov 19, 2022

Tried a few things but had no luck. Will look more into this later. Or I will let you know if we should close this.

@parasharrajat
Copy link
Member

This is not blocking anything ATM. I will share an update asap. Working on some priorities.

@flodnv flodnv removed the Bug Something is broken. Auto assigns a BugZero manager. label Nov 23, 2022
@sketchydroide
Copy link
Contributor

any update @parasharrajat, just trying to keep this updated.

@parasharrajat
Copy link
Member

let me just check it now.

@parasharrajat
Copy link
Member

parasharrajat commented Dec 12, 2022

I tried to solve the issue but unfortunately, I have no solution to the following error.

   Test suite failed to run

    TypeError: setImmediate is not a function

      22 | }
      23 |
    > 24 | LogBox.ignoreLogs([
         |        ^

setImmediate is directly used in RN and jsdom does not contain setImmediate. It is supported in node testEnvironment. But Tests will fail in node testEnvironment so we can't switch.

The latest changes can be seen here #10300.

Now, the jest 29 version is available which has many changes so I think there is no advantage of upgrading to jest 28.

For now, I think jest 26 is working great with the project and we don't need to upgrade as there are breaking changes.

I suggest we drop this upgrade.

@sketchydroide
Copy link
Contributor

sketchydroide commented Dec 12, 2022 via email

@sketchydroide
Copy link
Contributor

That seems ok, we might as well upgrade to the next one, and it seems everything is still working, if we need we can open it again

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review Task
Projects
None yet
Development

No branches or pull requests