-
-
Notifications
You must be signed in to change notification settings - Fork 595
Package-lock out of sync #1515
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
Comments
Thanks for opening this issue!
|
@parse-community/js-sdk could someone take a look at this? The tests started to fail since recently. Regenerating the package-lock file repeatedly produces the following 3 failing tests:
This could be an issue in the Parse JS SDK, but it may as well be an issue in the current Parse Server alpha branch, which is the branch that is used to run the Parse JS SDK tests. |
I really can't work out why these tests are failing due to a new package-lock. The failing tests allow Parse Object to set updated objects const geo = new Parse.GeoPoint(5, 5);
const object = new TestObject();
object.set('location', geo);
await object.save()
geo.latitude = 10;
// do not have to call .set again
await object.save();
const query = new Parse.Query(TestObject);
const o = await query.get(object.id);
assert.equal(o.get('location').latitude, 10); Not sure which dependancy would cause this. Any ideas? |
I don't think the tests are failing due to the regenerated package-lock. It seems that resolving the package-lock issue only uncovered the failing tests. |
You could either debug-step through the tests (do they pass locally and only fail remotely?), to investigate why they fail. Or you could just to back in the commit history to find the last commit where the tests pass, then look at the difference to the next commit. |
Is this still an issue @mtrezza? |
Yes, it is. I wasn't able to track this down. To replicate this:
The CI should then fail. That may be related to the fact that synk and dependabot manipulate the package-lock file and we are now in a state where the current (manipulated) file is significant differently than the file when recreated. So we are now going with the current manipulated file and doing releases, but we should be able to recreate package-lock file at any point in time and have the CI pass. |
🎉 This change has been released in version 3.5.0-alpha.4 |
🎉 This change has been released in version 3.5.0-beta.1 |
🎉 This change has been released in version 3.5.0 |
New Issue Checklist
Issue Description
CI fails in various PRs with:
Steps to reproduce
See https://github.com/parse-community/Parse-SDK-JS/runs/7474143947?check_suite_focus=true
Actual Outcome
Tests fail
Expected Outcome
Tests pass
Environment
Current alpha
n/a
Logs
n/a
The text was updated successfully, but these errors were encountered: