Commit Graph

32 Commits

Author SHA1 Message Date
Zach Bloomquist
44da3eb65a Move proxy deps to @cypress namespace, use cypress.io urls for tests (#3860)
* debugging-proxy -> @cypress/debugging-proxy

* server: move perf urls to cypress.io, also test http perf

* update low water mark for CI

* server: run perf tests on vanilla chrome proxy first to establish baseline for real tests

* fix tests
2019-04-02 19:04:22 -04:00
Zach Bloomquist
c1a345dce2 Improved proxy support (#3531)
* https-proxy: unused file

* server: wrap all https requests that use a proxy

* server: use request lib in ensureUrl if proxy is in use. this makes runs tab work behind a proxy

* electron: pass --proxy-server to app itself, so the embedded github login page works

* cli: first attempt at env vars from windows registry

* cli: api cleanup

* cli: lint

* cli: fix crash on no proxy, add tests

* add desktop-gui watch to terminals.json

* cli: pass along --proxy-source

* electron: pass --proxy-bypass-list too

* server: whitelist proxy* args

* cli: better wording

* desktop-gui: display proxy settings

* extension: force proxy [wip]

* extension: finally, i am victorious over coffeescript

* extension: add -loopback to bypasslist

* extension: revert changes

Revert "extension: force proxy [wip]"

This reverts commit 3ab6ba42a763f25ee65f12eb8b79eb597efc9b11.

* desktop-gui: skip proxysettings if there aren't any

* https-proxy, server: proxy directConnections using https-proxy-agent

* https-agent: pool httpsAgents

* https-proxy: work when they're not on a proxy

* https-proxy: ci - use agent 1.0

* https-proxy: tests

* desktop-gui: hide proxy settings when not using proxy

* https-proxy: pass req through to https-proxy-agent callback

* cli: use get-windows-proxy

* desktop-gui: always show proxy settings

* server: use get-windows-proxy

* electron, server: supply electron proxy config when window launched

* server: fix

* https-proxy: cleanup

* server: clean up ensureUrl

* https-proxy: cleanup

* cli: fix

* cli: fix destructuring

* server: enable ForeverAgent to pool HTTPS/HTTP connections

#3192

* server: updating snapshot

* https-proxy: don't crash, do error if proxy unreachable

* https-proxy:

* get-windows-proxy@1.0.0

* https-proxy: use proxy-from-env to decide on a proxy for a url

* server: fallback to HTTP_PROXY globally if HTTPS_PROXY not set

* server: proxy args test

* cli: add proxy tests

* cli: add test that loadSystemProxySettings is called during download

* cli, server: account for the fact that CI has some proxy vars set

* https-proxy: ""

* cli, https-proxy, server: ""

* desktop-gui: update settings gui

* desktop-gui: cypress tests for proxy settings

* server: strict undefined check

* cli, server: move get-windows-proxy to scope, optionalDeps

* server, cli: use new and improved get-windows-proxy

* cli, server: 1.5.0

* server: re-check for proxy since cli may have failed to load the lib

* server, cli: 1.5.1

* server: NO_PROXY=localhost by default, clean up

* https-proxy: disable Nagle's on proxy sockets

\#3192

* https-proxy: use setNoDelay on upstream, cache https agent

* https-proxy: test basic auth

* https-proxy: add todo: remove this

* server: add custom HTTP(s) Agent implementation w keepalive, tunneling

* server: typescript for agent

* add ts to zunder

* server: more ts

* ts: add missing Agent type declaration

* server: create CombinedAgent

* server: use agent in more places

* ts: more declarations

* server: make script work even if debug port not supplied

* server: begin some testing

* server, ts: agent, tests

* server: test

* server: agent works with websockets now

* server: update snapshot

* server: work out some more bugs with websockets

* server: more websockets

* server: add net_profiler

* https-proxy: fix dangling socket on direct connection

* server: fix potential 'headers have already been sent'

* https-proxy: nab another dangler

* server: update test to expect agent

* https-proxy: fix failing test

* desktop-gui: change on-link

* server: add tests for empty response case

* server: tests

* server: send keep-alive with requests

* server: make net profiler hook on socket.connect

* server: only hook profiler once

* server: update tests, add keep-alive test

* server: only regen headers if needed

* server: move http_overrides into CombinedAgent, make it proxy-proof

for #112

* server: update snapshot

* server: undo

* server: avoid circular dependency

* https-proxy, server: use our Agent instead of https-proxy-agent

* server: add dependency back

* cli: actually use proxy for download

* server, launcher, ts: typescript

* Revert "server, launcher, ts: typescript"

This reverts commit d3f8b8bbb6.

* Revert "Revert "server, launcher, ts: typescript""

This reverts commit 818dfdfd00.

* ts, server: respond to PR

* server, ts: types

* ts: really fix types

* https-proxy, server: export CA from https-proxy

* agent, server, https-proxy: move agent to own package

* agent => networking, move connect into networking

* fix tests

* fix test

* networking: respond to PR changes, add more unit tests

* rename ctx

* networking, ts: add more tests

* server: add ensureUrl tests

* https-proxy: remove https-proxy-agent

* server: use CombinedAgent for API

* server: updates

* add proxy performance tests

* add perf tests to workflow

* circle

* run perf tests with --no-sandbox

* networking, ts: ch-ch-ch-ch-changes

* server, networking: pr changes

* run networking tests in circle

* server: fix performance test

* https-proxy: test that sockets are being closed

* https-proxy: write, not emit

* networking: fix test

* networking: bubble err in connect

* networking: style

* networking: clean p connect error handling

* networking => network

* server: make perf tests really work

* server: really report

* server: use args from browser

* server: use AI to determine max run time

* server: load electron only when needed


Co-authored-by: Brian Mann <brian@cypress.io>
2019-03-31 23:39:10 -04:00
Zach Bloomquist
19a63a0f25 Only listen on loopback interfaces (#3666)
* https-proxy, server: only listen on loopback for ipv4/v6

* server: use supplied port

* https-proxy, server: remove ::1 listener

* server: add test that all servers only listen on lo, not other interfaces
2019-03-15 01:01:50 -04:00
renovate[bot]
ff9f97f5b7 fix(deps): update request-promise to 4.2.4 🌟 (#3476) 2019-02-15 16:10:45 +06:30
renovate[bot]
1e4f46dc3a fix(deps): update dependency request-promise to version 4.2.2 🌟 (#3446)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-14 12:19:15 +06:30
renovate[bot]
a83bda8a95 fix(deps): update dependency ssl-root-cas to version 1.3.1 🌟 (#3449)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-02-14 11:24:23 +06:30
renovate[bot]
a1d9e2f944 chore(deps): update dependency sinon-chai to version 3.3.0 🌟 (#3303)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| sinon-chai | devDependencies | minor | `3.2.0` -> `3.3.0` | [source](https://togithub.com/domenic/sinon-chai) |
| sinon-chai | devDependencies | major | `2.14.0` -> `3.3.0` | [source](https://togithub.com/domenic/sinon-chai) |

---

### Release Notes

<details>
<summary>domenic/sinon-chai</summary>

### [`v3.3.0`](https://togithub.com/domenic/sinon-chai/releases/3.3.0)

[Compare Source](https://togithub.com/domenic/sinon-chai/compare/v3.2.0...3.3.0)

Added support for Sinon v7.x ([@&#8203;JoeTheFkingFrypan](https://togithub.com/JoeTheFkingFrypan), [#&#8203;131](https://togithub.com/domenic/sinon-chai/issues/131))

</details>

---

### Renovate configuration

📅 **Schedule**: "after 10pm every weekday,every weekend,before 5am every weekday" in timezone America/New_York.

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#cypress-io/cypress).
2019-02-05 09:10:12 -05:00
renovate[bot]
ff5c88ada1 chore(deps): pin dependency @cypress/env-or-json-file to version 2.0.0 🌟 (#3012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-01-31 16:25:16 +06:30
Jennifer Shehane
e2705e96dd Normalize headers across package READMEs [skip ci]
- update some instructions in readmes
2019-01-24 15:07:13 +06:30
Chris Breiding
cb06741675 remove obselete @cypress/releaser deps (#3197) 2019-01-23 10:37:51 -05:00
Gleb Bahmutov
13178b01cb Pin prod dependencies 3025 (#3026)
* pin packages/electron prod dependencies

* pin packages/example

* pin packages/extension

* pin packages/https-proxy

* pin packages/launcher

* pin packages/server

* pin packages/ts
2019-01-02 13:58:20 -05:00
Brian Mann
ad26755298 prevent cross origin errors (#2787)
* synchronize lodash versions

* start driver test server on 3500 + 3501 the same way

* fixes #2784, short circuit checks to discover the DOM type when comparing value and subject

-this prevents a situation where we accidentally iterate through a
cross origin <window> object and cause cross origin issues

* fix functions not being invoked with value

* skip bad jira test derp
2018-11-15 23:46:39 -05:00
Chris Breiding
2a8478fc36 add dependency check pre-condition to all packages (#2580) 2018-10-15 16:42:32 -04:00
Noel Yoo
999c217751 Refactor buffer constructor (#2489) 2018-10-01 10:25:40 -04:00
Brian Mann
7ac3b85577 enable disabling chromeWebSecurity in chrome 67 (#2077)
fixes #1951 
fixes #2001
2018-07-01 02:58:42 -04:00
Brian Mann
8033fbf819 Issue 995 (#996)
* better explain contributing to the driver

- update npm tasks to reflect newest conventions

* better explain contributing to the desktop-gui

- update npm tasks to reflect newest conventions

* synchronize content changes

* capitalize all package readme's for consistency

* better explain contributing to the runner, synchronize content changes

* better explain contributing to the server

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* better contribution guidelines by redirecting users to package specific readme's

* synchronize content

* fix various content mistakes

* simplify contributing

* removed dead files

* bump zunder

* lock zunder to 5.1.0
2017-12-02 18:51:42 -05:00
Brian Mann
628281dd65 server / https-proxy: add more debug logs [skip ci] 2017-10-13 21:25:40 -04:00
Gleb Bahmutov
05210dc24a Update package readmes for #516 (#569)
* update packages/driver readme close #516 

* update packages/electron readme

* update packages/extension readme

* update packages/http-proxy readme and cross-env

* update packages/launcher readme

* update bin-up

* update reporter readme

* update runner readme

* update socket readme
2017-10-05 18:38:06 +00:00
Gleb Bahmutov
a5b7c20182 fix done callback 2017-08-15 15:25:13 -04:00
Gleb Bahmutov
ab4fb80c9e Ingest test artifacts from CircleCI 339 (#342)
* capture test results from CLI unit tests for #339

* add test results to packages/extension

* move mocha to root

* mocha test reporter for packages/launcher

* update socket reporter

* collect server unit test results

* store test results from server integration and e2e runs

* exclude projects from .only check
2017-08-14 15:25:49 -04:00
Gleb Bahmutov
1439976ac9 Proxy packages instead of symlinks (#245)
* all: replace symlinks with proxy modules

* replacing symlinking with copying proxy packages

* https-proxy: add missing prod dependency lodash

* put actual path to main for each package proxy

* better console log

* driver: include index.js in published files

* https-proxy was missing debug production dependency

* app built with proxied packages works

* delete existing node_modules/@packages before making proxies

* explicit async fs call

* server: remove deep paths in tests

* driver: remove nested path to @packages

* link: ensure each package has main set
2017-06-30 11:33:09 -04:00
Gleb Bahmutov
91ec7a0dd8 Move deploy scripts (#205)
* root: move deploy scripts from server to top level scripts

* remove postinstall download stop variable

* deploy: list all dev dependencies

* working on deploy run

* WIP comment out obsolete run-sequence

* add cypress-io/cypress-example-recipes

* root: enable run all to skip package or packages by name

* deploy: move coffee lint to root

* deploy: make bump async

* deploy: WIP update deploy + build processes for monorepo

* Add cypress-io/cypress-example-module-api project build to bump

* remove commas

* Add project cypress-io/cypress-test-ci-environments to list of projects to test

* deploy: WIP refactor classes -> functional

* deploy: don't copy node_modules or prune -> just npm install

* cli: consolidate important fields into monorepo root, pull out and build

* all: cleanup package.json, remove versions, license, repo information

-move some deps to devDeps

* all: convert es5 -> es6 + fix linting

* deploy: specify files to include when copying packages for dist

* deploy: convert coffee script in place + remove coffee files
2017-06-23 10:41:37 -04:00
Brian Mann
f8473537e5 https-proxy: added debug logs 2017-06-14 18:12:09 -04:00
Gleb Bahmutov
f3595761d0 all: set private true in each internal package.json 2017-06-07 16:27:00 -04:00
Gleb Bahmutov
e8d6ba6fa0 all: remove individual .gitignore files (#133)
* all: remove individual .gitignore files

* remove .gitignore from docs folder
2017-06-05 17:15:35 -04:00
Brian Mann
817758e4b6 all: symlink all cypress packages in root node_modules for easy access 2017-05-31 12:51:35 -04:00
Brian Mann
21df127ff7 https-proxy: fix failing tests in CI, give some padding for external network request 2017-05-17 18:14:44 -04:00
Brian Mann
5373f322c3 WIP circle.yml 2017-05-15 10:59:53 -04:00
Brian Mann
8a0a60c27e created coffee package, updated paths and cjsxify to prevent incorrect stack traces on errors 2017-05-14 19:07:42 -04:00
Brian Mann
a971c413c1 all: remove node version for each package 2017-05-13 12:14:09 -04:00
Chris Breiding
4a985657ba put clean-deps script in every package 2017-05-09 11:12:10 -04:00
Chris Breidng
6efcf64005 remove core- prefixes from packages 2017-04-21 10:34:19 -04:00