Commit Graph

42 Commits

Author SHA1 Message Date
Jennifer Shehane
f251e28fd5 docs: Update branch docs are meant to be merged into. [skip ci] (#16251) 2021-04-28 09:51:21 -05:00
Gleb Bahmutov
1aa74f00ae chore: add a deployment note about release label (#15852)
* chore: add a deployment note about release label

* Update DEPLOY.md

Co-authored-by: Zach Bloomquist <github@chary.us>
2021-04-13 14:44:14 -04:00
Zach Bloomquist
0abb5efe90 build: use semantic commits to get next version (#14851) 2021-02-04 18:30:27 +00:00
Zach Bloomquist
9c51428382 chore(docs): remove binary-build-linux references 2021-01-11 16:28:54 -05:00
Zach Panzarino
5842d1dffe build: conditional CI jobs, dynamic test requirements for release, updated independent package release process (#8730) 2020-10-28 18:03:28 -04:00
Zach Panzarino
156a626b7f docs: update internal docs for monorepo (#8688)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-09-29 20:30:22 -04:00
Adam Stachowicz
3ab9643f5f docs: NPM -> npm (#8072)
https://github.com/cypress-io/cypress/pull/8071#pullrequestreview-454136175
2020-07-24 11:51:17 +06:30
Chris Breiding
7bf12dbfbb Make improvements to deploy doc (#8057) 2020-07-23 13:57:03 +06:30
Chris Breiding
eaf3f632e0 Improvements to deploy doc (#7505)
Co-authored-by: Zach Bloomquist <github@chary.us>
2020-05-27 22:09:16 -04:00
Chris Breiding
b515e036dd Improve deploy doc (#7175) 2020-04-29 16:37:20 -04:00
Zach Bloomquist
de5e672364 Update DEPLOY.md [skip ci] 2020-03-02 11:28:24 -05:00
Andrew Smith
0a6a2abcec Replace npm with yarn (#5555)
* enable using yarn

* enable lerna and yarn workspaces

No longer can reliably access node_modules via thei node_modules directory; yarn may optimize it via hoisting it up. This meant updating JS tasks that were copying files directly from node_modules directories. In these cases, pulled in a new package to resolve these correctly.

SCSS files remain impacted, but cannot easily import via JS. These paths have been modified, but it feels dangerous and incorrect to reach into a node_module to grab files like this.

Many prebuild steps were removed. I **think** the purpose of `check-deps-pre` is no longer needed, but need to confirm this.

* enabling test-unit script

removal of pretest-unit due to check-deps-pre

* removal of all  `check-deps` and `check-deps-pre`

I do not think these are needed anymore

* remove npm run all

Replaced by `lerna run` and `lerna run --scope`

* use yarn in circle CI

appveyor to soon follow

* yarn in appveyor

* remove need for bin-upplaces using bin-up have a dev dependency on some package; mostly mocha. This mocha package will be optimized by yarn workspaces by hoisting it into the root; which is effectively what bin-up usage was mimicing.

* replace npm run with yarn in package files

* replace explict paths to internal packages with yarn bin

* remove unecessary link packages script and references

* properly require package for mocha

* removing yarn test in this package as it was just a proxy for test-*

* yarn test in root now reflects what is run in circle ci

* relax yarn version requirement for circle ci

* @packages/cli is really just cypress

also run test in parallel via `yarn test`; it runs test in all 10 packages

* ensure postinstall is called before prebuild

yarn does not call postinstall when nothing has installed; such is the case when everything has been cached

* vscode config uses yarn

* cannot rely on which node_modules dir a package is in

find the right node_module dir via `resolve-pkg`

* further relax yarn version for OSX build in circle ci

* resolve failing test

Regarding direct access to node_modules

* node version in mac build not sufficient

ignoring check of node/yarn versions when installing

* preinstall script does not exist

I **think** the reason to not install packages' modules (the reason for `--ignore-scripts` may be irrelevant with yarn workspaces managing the packages)

* upgrade mocha that was using --file

`--file` was introduce in >=5

* scope test runs to correct packages

* explictly close connections; otherwise script hangs after tests run

* refactor so npm and npx commads can be created

npx is used to utlize lerna for running across all packages sans cli

* properly resolve socket.io-client node_module

We cannot reach directly into node_modules to grab the socket.io-client file. Furthermore, running it locally will require resolving from a different cwd, the repo root, as opposed to the package's dist directory.

The existence of the file deterimes whether we are building the binary or running locally.

* remove unnecessary arg in vscode debug config

enable debugging in @packages/server to troubleshoot failing test

* another npm command found to be changed to yarn

* properly print colors to terminal

`lerna run` does not appear to print colors to the terminal properly. Changed to leverage `lerna exec`

See https://github.com/lerna/lerna/issues/1168

* add missing test scripts to packages that have partially have them

'test', 'test-unit', 'test-watch', and 'test-debug'

This makes running them from the root easier and enables debugging via IDE on more packages

* properly patch package in yarn workspaces

* another package needing to postinstall

* use existing script over explicit lerna exec

* patches must be copied to dist

* return to building on postinstall

* do not hoist driver's packagesThere are too many places we need driver's packages to not be hoisted when testing. We have *.html files in test with script tags srcing node_modules.

* wait-on is used in circle-ci and needs to be a root dep

No longer hoisted by `@packages/driver`. This previously worked only because it was hoisted. Adding it to root properly.

* update documentation based on new ergonomics

* launcher has unit tests that should be runnable via top level task

* more concise way to run build within cypress scope

* fix for unit test that never seemed to work

`getPathToExample` is really `getPathToExamples`

* bust cache based on yarn.lock changing

* define intra-dependencies among packages

Due to the way we build the binary, all are considered dev dependencies.

* address `jquery.scrollto` mismatched jquery version

Tell yarn to explicitly resolve `jquery@3.1.1` for any dependencies and sub-dependencies. The root issue is that `jquery.scrollto` package specifies jquery as a dependency instead of a peer dependency (which is correct). Its jquery version is set to the `>=1.8` which then resolves to 3.4.1. In doing so, it will patch its jquery instead of ours; meaning that `$.scrollTo` is not defined.

* add/remove deps from renovate

- bin-up is gone in favor of yarn workspaces and lerna from root
- check-deps is gone in favor of `yarn check --integrity`
- lerna added

* few misc yarn lock updates

* hope that this may speed up build binary

installing several of the same dep in >1 package will likely be sped up using yarn due to its machine-wide caching.

* yarn pack prefix version with a `v`

* auto-run `yarn install` when deps become out of date

When switching to a branch with a different set of required deps, running any of the main top level tasks (as seen in the `./CONTRIBUTING.md` guide) will check for deps changes via `yarn check --integrity` and run `yarn` in root if deps are out of sync.

* add clean top level task, remove prebuild

install => build => prebuild => check => install === no good

* address code review to undo formatting changes

* favor default imports over deconstructing imports

* favor @package resolution; pr feedback

* include a specific revision

for some reason, it cannot resolve the original SHA `29dafed297142d3b8a9d8a01842cbdf249a98b72`

using the next closes SHA

* properly cache yarn packagesfollowed guide: https://circleci.com/docs/2.0/yarn/

* lower barrier for contributors to get started

relax node version to be 12.0.0 or higher; will use node version found in `.node-version` in CI

* updates required after merging latest development

was getting type errors when building. recreating the `yarn.lock` file seemed to resolve the issue.

* hidden dep on a specific type version in server

made dep explicit and now it can build.

* update request to patched version

non-breaking changes to request was updated in server, but not everywhere else. It appears that transitive deps were using the 2.88.0 request version instead of the updated one for the server package.

* missing commit from previous commit/merge

* do not force a higher version of yarn than the default on circleci

* exclude e2e.js helper from stop-only command

* trying to bust node_modules cache.https://github.com/yarnpkg/yarn/issues/6412#issuecomment-537787740

* incorrect quotation tick placement

* fix: properly postinstall parse-domain

Do not explicitly script the shell invocation of a dependency's postinstall (parse-domain). The dependency's node_modules may not be where the package thinks they are and are not properly resolved.

It appears that postinstall will automatically be called when installing with yarn.

* run all CI stages

* fix win-appveyor-build.js

* Update CONTRIBUTING.md

Co-Authored-By: Zach Bloomquist <github@chary.us>

* Update CONTRIBUTING.md

Co-Authored-By: Zach Bloomquist <github@chary.us>

* Update CONTRIBUTING.md

Co-Authored-By: Zach Bloomquist <github@chary.us>

* Server package watching a specific test works correctly.

* PR feedback

* Correctly use yarn to pack (to get package size)

* correct size calculation

`yarn pack` does not output the file name like `npm pack` does. Correct this by explictly setting the filename.

* PR feedback

* PR feedback

* update readmes and testing commands from them

* do not include this in default build

* yarn is now installed by default

https://github.com/appveyor/ci/issues/1852

* do not include server in `yarn` auto build

* a few more npm references changed to yarn

* Revert "run all CI stages"

This reverts commit 9256aed99f.

* Update circle.yml

Co-Authored-By: Zach Bloomquist <github@chary.us>

Co-authored-by: Zach Bloomquist <github@chary.us>
2020-02-11 12:40:07 +06:30
Gleb Bahmutov
48319ee802 add note to merge version branches from other repos after relea… (#6262)
* add note to merge version branches from other repos after release

* Update formatting of updating repos to bulleted list.

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-04 15:11:36 +06:30
Zach Bloomquist
f0c0917762 Update DEPLOY.md [skip ci] 2020-01-24 15:16:48 -05:00
Zach Bloomquist
981d885d98 Add further release instructions [skip ci] 2020-01-13 09:06:15 -05:00
Zach Bloomquist
6fd352ab5b Fix typo [skip ci] 2019-12-26 11:41:26 -05:00
Zach Bloomquist
9419a55c38 Document release-automations inline, fix typos [skip ci] 2019-12-26 11:40:27 -05:00
Brian Donovan
c2530ef909 docs: fix markdown syntax for link (#5976)
The `[][]` style is for reference links, but this link is supposed to use inline syntax `[]()`.
2019-12-16 16:57:25 -05:00
Zach Bloomquist
68ad722990 Add note to test dashboard before release [skip ci] 2019-12-09 10:57:07 -05:00
Zach Bloomquist
c78672c896 Add release cycle info to DEPLOY [skip ci] 2019-12-05 13:46:51 -05:00
Gleb Bahmutov
a73f2dd8b7 mention projects that need to be upgraded to new version after release 2019-12-02 09:57:55 -05:00
Gleb Bahmutov
2a095c0746 mention setting next version 2019-12-02 09:09:48 -05:00
Jennifer Shehane
5d2825c844 Add publish docker image step to Deploy.md (#5677)
- also minor updates / more internal links
2019-11-14 10:31:49 -05:00
Zach Bloomquist
696e085271 Update DEPLOY.md (#5554)
* Update DEPLOY.md

- Document kitchensink release process better
- Clarify pushing up the release commit

* Update DEPLOY.md

Co-Authored-By: Jennifer Shehane <jennifer@cypress.io>

* Update DEPLOY.md

Co-Authored-By: Jennifer Shehane <jennifer@cypress.io>

* Update DEPLOY.md

Co-Authored-By: Jennifer Shehane <jennifer@cypress.io>
2019-10-31 16:57:28 -04:00
Zach Bloomquist
621456750a Update DEPLOY.md (#4693)
* Update DEPLOY.md

* Update DEPLOY.md
2019-07-10 14:08:23 -04:00
Gleb Bahmutov
cfd577a0aa update release tasks in DEPLOY.md [skip ci] 2019-07-09 17:12:36 -04:00
Gleb Bahmutov
ebaa7a375c Copy test runner binaries before releasing new version (#4082)
* adding S3 sdk

* test binary folder

* linting

* before searching for binary

* linting

* grab folders in the given S3 prefix

* grab folders in the given S3 prefix

* find the last build

* found last builds for commit

* refactoring

* add tests for upload dir name

* create destination zip filename

* copying S3 files

* move s3 helpers into own object, prepare for testing

* add realistic test

* linting

* chore: add documentation to DEPLOY.md file
2019-05-01 10:14:25 -04:00
Zach Bloomquist
47e98fa1d0 Use 'platform-arch' naming scheme for downloads (#3998)
* use 'platform-arch' naming scheme for downloads

* do full builds for this branch

* Revert "do full builds for this branch"

This reverts commit 6d539513e7.

* update wrong comments

* chore: test upload getCDN functions

* linting js

* unit test refactored manifest

* linting
2019-04-29 12:27:41 -04:00
Gleb Bahmutov
4be880550f chore: add note about issues comments 2019-03-15 11:02:17 -04:00
Gleb Bahmutov
0e92b17fe6 Add note how to publish GitHub release note 2019-01-30 16:55:31 -05:00
Brian Mann
55cc09873f update notes [skip ci] 2018-12-01 20:09:27 -05:00
Marco Vito Moscaritolo
d02ecf0eac Move code in the bullet point (#2614) 2018-10-15 17:55:52 -04:00
Brian Mann
54c1318253 update deploy notes 2018-07-30 23:42:45 -04:00
Brian Mann
ec332a75b5 deploy notes [skip ci] 2018-05-30 00:08:11 -04:00
Brian Mann
1d0b35bd47 Cli env var changes (#1734)
* wip [skip ci] update

* wip [skip ci] update test

* [skip ci] fix env var

* bump sinon, create helper utility to always throw when a stub is called without being given stubbed behavior

* update failing specs

* fix some error messages

* update snapshot

* warning -> note, add snapshot tests

* change snapshot os.release, test env vars
2018-05-19 15:37:52 -04:00
Jennifer Shehane
5088f2a448 Grammar updates to deploy.md 2018-04-23 15:38:23 -04:00
Brian Mann
d4e293a377 deploy notes [skip ci] 2017-12-14 23:51:08 -05:00
Gleb Bahmutov
cbf1da0802 Separate bump next version command (#922)
* set set-next-ci-version script command

* use current package.json version when asking for next one

* showing actual error response from buildkite

* rename .aws-credentials.json to just aws-credentials.json file

* rename aws_credentials_json on appveyor
2017-11-16 14:12:30 -05:00
Gleb Bahmutov
1ddbb24db0 copy deploy instructions from issue to DEPLOY.md close #465 2017-10-05 15:12:34 -04:00
Brian Mann
2e422a94b9 root: deploy.md clarifications 2017-09-10 17:25:34 -04:00
Brian Mann
efe8b26df3 root: npm script conventions, specify linux docker build task 2017-09-01 02:23:08 -04:00
Gleb Bahmutov
b9dce5035d move deployment out of contributing guide (#330) 2017-08-01 11:23:00 -04:00