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

Remove integration tests #1672

Merged
merged 3 commits into from
Jun 15, 2023
Merged

Remove integration tests #1672

merged 3 commits into from
Jun 15, 2023

Conversation

jameshadfield
Copy link
Member

See commit messages for details, especially 2047696.

If you had git-lfs installed, you may uninstall it via git lfs uninstall if needed.

Beyond this PR, we should try to stop using GitHub's LFS, but this seems difficult. At the least, this PR will mean we are within the free storage & bandwidth tier.

These were used for integration tests, which will be addressed in a
subsequent commit.
Closes #1658

Steps to remove lfs largely followed [this guide](https://gist.github.com/everttrollip/198ed9a09bba45d2663ccac99e662201):

```
$ git lfs uninstall
Hooks for this repository have been removed.
Global Git LFS configuration has been removed.
```

Change `./gitattributes` to be an empty file

```
$ git lfs ls-files
a73b1c9132 * test/integration/__image_snapshots__/Color-by-author-snap.png
eb01dd8832 * test/integration/__image_snapshots__/Color-by-country-snap.png
c400158ffe * test/integration/__image_snapshots__/Color-by-date-snap.png
73cb500cb5 * test/integration/__image_snapshots__/Color-by-region-snap.png
66b12f3a86 * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-0-snap.png
1e07b30a4c * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-1-snap.png
4fe9f78c16 * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-2-snap.png
864a560bea * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-3-snap.png
f676708c91 * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-4-snap.png
397b9f6bc3 * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-5-snap.png
abfabba1d2 * test/integration/__image_snapshots__/narratives-simultaneous-tree-updates-slide-6-snap.png
```

`git lfs ls-files | cut -f 3 -d ' ' | xargs git rm --cached`
These weren't being used so I'm reluctantly removing them, so we can
remove our dependency on git-lfs, as well as simplifying the repo.
These were largely implemented by (fantastic) external collaborators
during the early stages of the SARS-CoV-2 pandemic, but we haven't
been able to keep developing this type of testing. Hopefully we can
resurrect it in the future!

Note that Auspice v2.16.0 (2020-05-29) disabled integration tests from
our GitHub CI via [PR 1148](#1148).
I haven't been running them locally, and I highly doubt anyone else has!
As prompted by `npm audit`.

As of Jest 27, jest-circus is the default test runner, so you do not
have to install it to use it. The change to jest's ignore patterns
addressed a newly introduced error, see [this issue](jestjs/jest#13173).
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-update-testing-ltx7le3 June 13, 2023 02:08 Inactive
@jameshadfield
Copy link
Member Author

jameshadfield commented Jun 13, 2023

CI failing on node14:

 /home/runner/work/auspice/auspice/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js:399
            callPuppeteer.args ??= new Map();
                               ^^^

SyntaxError: Unexpected token '??='

Because nullish coalescing assignment is unsupported. Node 14 reached "end-of-life" on 2023-04-30. I'll tackle this in a separate PR and then circle back.

@jameshadfield jameshadfield changed the base branch from master to engine-updates June 13, 2023 02:46
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-update-testing-ltx7le3 June 13, 2023 02:48 Inactive
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-update-testing-ltx7le3 June 13, 2023 04:16 Inactive
@jameshadfield jameshadfield requested a review from a team June 13, 2023 20:11
@jameshadfield jameshadfield changed the base branch from engine-updates to master June 13, 2023 21:34
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-update-testing-ltx7le3 June 13, 2023 21:34 Inactive
@jameshadfield jameshadfield mentioned this pull request Jun 13, 2023
1 task
@jameshadfield
Copy link
Member Author

Moved commit 59b6ac7 ('Update puppeteer and jest-puppeteer') to #1674 as that requires us dropping support for node.js v14, which this comment indicates might not be possible for a while. This also decouples this PR from #1673.

@jameshadfield jameshadfield merged commit 90d57dd into master Jun 15, 2023
@jameshadfield jameshadfield deleted the update-testing branch June 15, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants