Граф коммитов

62 Коммитов

Автор SHA1 Сообщение Дата
Connor Peet 364d00b70d
feat: make retry tests more configurable 2020-01-08 14:47:02 -08:00
Connor Peet 777a78bf00
feat: initial implementation of hit condition breakpoints (#200)
* feat: initial implementation of hit condition breakpoints

First of all, apologies for the churn. While this change is relatively
simple, I realized that hit condition breakpoints further diverges the
user-defined breakpoints and the managed 'entrypoint' breakpoints (as
of #174), where we don't have hit conditions or DAP representations.

Therefore, there's now a base "Breakpoint" class which implements the
purely CDP-side of things, which a `UserDefinedBreakpoint` extends with
metadata around DAP, and the `EntryBreakpoint` extends in a minimal way.
After doing the split there was almost no changes the existing code
around the breakpoints, which is good evidence that we are indeed
dealing with two different types of things!

That done, there's a new `HitBreakpoint` class whose parsing logic is
copied from the existing debug adapters. The UserDefinedBreakpoint
optionally includes a HitBreakpoint, and we check on these when we hit
a location to see whether we should automatically continue, or not.

This works in my quick manual tests. Haven't had a chance to write unit
tests for this, but I wanted to get it in PR before I head out for the
holidays.

* fixup! entrypoint breakpoint behavior

Added fixes and unit tests while looking into #204.

 - Our nice new entrypoint breakpoint interfered with user-defined
   breakpoints. CDP errors if we try to set multiple breakpoints at the
   same locations, so if we see the user has a BP on the first line, we
   omit setting our automatic breakpoint. We also tweak behavior to
   treat any first-line breakpoint as an entrypoint breakpoint.
 - We were unnecessarily deduplicating breakpoint application requests
   which caused breakpoints which resolved to the exact same location in
   transpiled code to not get set.

* fixup! only retry in ci

* fixup! update the test assertions now that offsets are fixed
2020-01-06 11:25:44 -08:00
Rob Lourens 6d3243b969 Add CG task 2019-12-17 15:18:51 -08:00
Rob Lourens 35716e9d7e Clean up test data directories in CI after build and test
(to prevent CG from looking at older non-shipping dependencies)
2019-12-17 15:04:11 -08:00
Connor Peet 37e1d7b5ce
refactor: apply linting 2019-12-11 10:37:04 -08:00
Rob Lourens e3e6e8bcad Don't run tests in the nightly build 2019-11-21 18:51:24 -08:00
Rob Lourens e64bef3ff9
Enable tests in CI (#110)
* Enable test in CI

* Update infra test baseline

* Stop writing to stream after "end"
which is sent before "close", to prevent test flakiness.
Alternatively we could add an error handler to the stream, but this lets us associate the error with the actual code that called 'send' (like to try/catch specific cases)

* Run CI for all branches

* Shorter test timeout

* Suppress pipe errors, e.g. EPIPE when pipe is destroyed with buffered data

* Disable smartStep on some tests, update baseline

* Use mocha-junit-reporter for tests, and publish test results in CI

* Disable telemetry entirely during test

* Disable remaining failing tests

* Disable more failing tests

* Turn off "continueOnError" to get red builds when tests fail

* Disable tests for Darwin, where the npm task is mysteriously failing

* Disable more tests
2019-11-20 16:50:46 -08:00
Rob Lourens c2af1879fa Always build from scratch before publishing to the marketplace 2019-11-13 20:44:48 -06:00
Rob Lourens 6dafc56fdc Change nightly to publish prefixed type.
This will make it easier to run the two extensions side by side.
And added the setting debug.node.useV3 to node-debug to allow dispatching to pwa-node
2019-11-13 19:09:56 -06:00
Connor Peet e2a216845e
Merge branch 'feat/generate-debuggers' into feat/nightly 2019-11-08 13:30:55 -08:00
Connor Peet f5d6abe2e9
feat: add nightly build pipeline 2019-11-08 13:07:46 -08:00
Rob Lourens b5fd913226 Enable Azure Devops 2019-10-21 17:23:43 -07:00