Skip to content

Conversation

hzhao-wish
Copy link

@hzhao-wish hzhao-wish commented Apr 28, 2023

Fix integration test.

  1. bump go version to be compatible with sanity-check
  2. git diff exit-code 1 will break CI and exit. Add '&& exit 0 ' to avoid exit CI and exit if nothing to commit.
  3. Ubuntu removes mongo from their default installed database packages on Ubuntu 22.04. Integration test (jstests) relies on mongo shell tool. The legacy mongo shell is deprecated in mongo v5 and removed in mongo v6. So, we use the new mongosh, which is the new version of mongo shell
  4. Configure replicaSet for mongod so that it could be compatible with js tests. Otherwise, it will throw error: MongoServerError: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.
  5. Rewrite integrationtest/jstests/basic1.js: db.save() is deprecated in new mongosh. Replace it with updateOne. Rework assert function to be compatible with mongosh
  6. bump mongodb-github-action to the latest version

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

Successfully merging this pull request may close these issues.

1 participant