11 Commits

Author SHA1 Message Date
Sean Kane
41e38d2b4f fix(vscode): add build tags to single functional test debugging (#7962)
## What changed?
add the `-tags=test_dep` to the VSCode launch configuration

## Why?
Debug fails with a build error
```sh
Build Error: go test -c -o /Users/seankane/git/github.com/temporalio/temporal/tests/__debug_bin1525033192 -gcflags all=-N -l .
# go.temporal.io/server/tests/testcore
testcore/onebox.go:204:39: undefined: testhooks.NewTestHooksImpl
testcore/onebox.go:857:23: undefined: testhooks.Set (exit status 1)
```

## How did you test it?
- [ ] built
- [X] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
No change to production code, only configuration
2025-06-25 10:04:10 -06:00
Chetan Gowda
0400b64995 [VSCode] Config to connect debugger to a running server instance (#6983)
## What changed?
A new config entry to allow VSCode debugger to connect to a local
running instance of server.

## Why?
Makes it easy to quickly connect and breakpoint a dev server. No need to
restart the server in debugger everytime.

## How did you test it?
Tested it manually

## Potential risks
N/A

## Documentation
N/A

## Is hotfix candidate?
No
2024-12-12 23:01:18 +00:00
Chetan Gowda
f429cfe44c fix typo (#5618) 2024-03-28 09:13:21 -07:00
Chetan Gowda
c1ed81fecb VSCode - Debug single functional test (#5599)
## What changed?
<!-- Describe what has changed in this PR -->
Added a new debug option for VSCode debugger

## Why?
<!-- Tell your future self why have you made these changes -->
This makes it easy to select and debug a single functional test.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Manual check.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
N/A

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
N/A

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
No
2024-03-27 15:10:28 -05:00
Ruslan
8a2dcec132 Update vscode launch scripts (#2898) 2022-05-25 08:51:16 -07:00
Jeremy Breiding
306eda8049 Add sqlite persistence tests (#2681)
* Add sqlite persistence tests

* fix up a test

* Remove limit on prune operation for sql plugin
2022-03-30 13:05:33 -07:00
Jeremy Breiding
f92cc93828 Sql task queue visibility (#2537)
* Adding task_queue to read/write paths
for postgresql executions_visibility

* Adding task_queue for mysql and sqlite
2022-02-24 18:22:46 -08:00
Samar Abbas
7f44f34053 Fixes MySQL persistence for workflow reset (#713)
After 2dc removal we trigger a slightly different codepath on mysql
persistence when resetting workflows.
AppendHistoryNodes when called with IsNewBranch add both
history_tree metadata and history_node.  This caused the problem
because history_node is already added when fork was called so
adding it again failed with duplicate error.  Updated
AppendHistoryNodes api to upsert instead.

Another issue was with create workflow execution never expected
to be called with `CreateWorkflowModeContinueAsNew` mode.  With
NDC now workflow reset is implemented in similar fashion as
doing continue as new.  So removed the check to disallow
`CreateWorkflowModeContinueAsNew` on create execution and added
appropriate validation.
2020-09-05 18:53:19 -07:00
Alex Shtin
c16eef677d Rename task list to task queue (#480) 2020-06-27 12:11:25 -07:00
Samar Abbas
fb986a66cd Fix replication task processor when converting to replication task (#385) 2020-05-16 21:25:40 -07:00
Ruslan
46fd32ed56 Add common vscode debug commands (#332)
* Add common vscode debug commands

* Add vscode workflow debug script

* Add showing call stack

* Make vscode launch scripts run go code directly

* Remove excess namespace arguments
2020-05-05 19:08:40 -07:00