Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Misc monorepo testing improvements #884

Merged
merged 8 commits into from
May 18, 2018
Merged

Misc monorepo testing improvements #884

merged 8 commits into from
May 18, 2018

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented May 18, 2018

  • Ensure the monorepo .neutrinorc.js is included in linting
  • Remove unused random package.json lifecycle script
  • Add --registry option to create-project
  • Remove unnecessary 'yarn config set registry' from test-create-project-ci.sh
  • Fix test-create-project-ci.sh shebang whitespace
  • Adjust settings used for lerna publish in CI
  • Make verdaccio more resilient to NPM flakiness + prevent NPM published Neutrino packages from accidentally being used instead of the local versions (by disabling proxying for them)
  • Remove neutrino packages from Travis yarn cache after testing to prevent cache churn

These are some of the changes split out from #852, plus some others to ensure the verdaccio testing works even when used later on release branches. See individual commit messages for more details.

edmorley added 5 commits May 18, 2018 16:15
Since it simplifies trying it out against `master` locally.
Since `create-project/test/cli_test.js` passes the registry setting
itself, so it's not necessary to change the global setting. This
saves having to remember to change the setting back if running
the `test-create-project-ci.sh` script locally.
@edmorley edmorley self-assigned this May 18, 2018
@edmorley
Copy link
Member Author

I ended up dropping the ava upgrade for now, since it broke one of the tests and it's not clear if it's an ava bug or something daft in the master Neutrino API. The upgrade should be trouble-free after #884, since the problematic test is being rewritten anyway.

* Re-uses the `yarn release` command for reduced duplication and to
  prevent them from getting out of sync.
* Uses `--canary` which replaces `--skip-git` and `--cd-version`,
  and automatically bumps the minor version but also adds a pre-release
  suffix. eg `8.2.3` -> `8.3.0-alpha.7559e25f`. This will prevent
  issues when we eventually have verdaccio running on release branches,
  where the major version bump could clash with that of an actual
  published newer major version.
* Reorders the package definitions, since the first match takes
  priority (and previously the wildcard was first).
* Remove the `proxy` config from the Neutrino packages, meaning that
  the NPM published packages will never be used, meaning there can
  never be any clashes / accidentally using an older version, plus
  no dependency on NPM being online to be able to publish.
* Adjust the proxy timeout/max failure counts, so non-Neutrino
  package downloads are less likely to fail if NPM is being flaky.
* Removes unnecessary htaccess auth config since we're using anon.
* Removes unnecessary `storage` .gitignore entry since we're using
  memory storage.
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit LGTM too.

To prevent:
* Travis cache churn since the Git SHA changes a lot.
* The old packages accidentally being recycled in a later job.
@edmorley edmorley merged commit 9e73636 into neutrinojs:master May 18, 2018
@edmorley edmorley deleted the testing-tweaks branch May 18, 2018 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants