Commit Graph
9 Commits
Author SHA1 Message Date
7b6186922c Reduced log level of failed Nexus requests originating from worker (#8306)
## What changed?
- Reduced log level of failed Nexus requests originating from worker to
debug level.
- Updated CONTRIBUTING.md and testing.md to reflect current status and
to include IDE debugging.
- Added failure source setting to worker in nexus handler when dispatch
context deadline exceeded.

## Why?
- Today we log an error for every request, which pollutes server logs
and is inconsistent with activity and workflow task failures. We don't
want to completely lose visibility into these errors since some of the
errors can originate internally and may be tricky to debug.
- We've missed spots in setting worker failure source in the nexus
handler
- The docs are a bit outdated, and it's also helpful to have IDE
specific debugging instructions.

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

## Ticket
[OSS-4548](https://temporalio.atlassian.net/browse/OSS-4548)



[OSS-4548]:
https://temporalio.atlassian.net/browse/OSS-4548?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Roey Berman <[email protected]>
2025-09-11 13:41:29 -07:00
Stephan BehnkeandGitHub 999b78f087 Explain test build tags and env variables (#7991)
## What changed?

Added documentation for test-related build tags and env variables.

## Why?

So help developers with their test setup.
2025-08-20 18:19:02 -07:00
Stephan BehnkeandGitHub 0055aec702 Increase OTEL_BSP_SCHEDULE_DELAY (#7520)
## What changed?
<!-- Describe what has changed in this PR -->

Increased OTEL_BSP_SCHEDULE_DELAY from 0 to 100ms.

## Why?
<!-- Tell your future self why have you made these changes -->

Zero is too aggressive and leads to too much CPU usage.

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

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

## 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/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
2025-03-25 08:21:42 -07:00
Stephan BehnkeandGitHub 0c32f3fdd6 Upload code coverage (#7262)
## What changed?
<!-- Describe what has changed in this PR -->

Fixed code coverage reporting.
## Why?
<!-- Tell your future self why have you made these changes -->

We haven't reported code coverage in over a year.

 It stopped working when we moved away from Buildkite.

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

Checkout https://app.codecov.io/gh/temporalio/temporal

There's no data for main ("master") yet, though, until we merge.

I'll also leave the README coveralls badge there for now.

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

## 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/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
2025-03-13 10:03:12 -07:00
Stephan BehnkeandGitHub 0ef6577c90 OTEL test docs (#7449)
## What changed?
<!-- Describe what has changed in this PR -->
Document how to use OTEL in tests.
2025-03-11 10:25:18 -07:00
Stephan BehnkeandGitHub 015a3f6834 Describe softassert (#7426)
## What changed?
<!-- Describe what has changed in this PR -->

Explain use of `softassert` package.
2025-03-06 01:14:07 +00:00
Alex ShtinandGitHub 30a21c1848 Refactor: remove key parameter from testvar methods (#7040)
## What changed?
<!-- Describe what has changed in this PR -->
Remove `key` parameter from `testvar` methods.

## Why?
<!-- Tell your future self why have you made these changes -->
It turn out to be confusing for people on how to use optional `key`
parameter. @bergundy got a great idea to remove this parameter and use
different instance of `tv` when more than one entity is needed.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Run all tests. Refactoring affects test code only.

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

## 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/`? -->
Yes, updated testing docs.

## 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.
2025-01-09 16:38:53 -08:00
Stephan BehnkeandGitHub dc101ba34b Include taskpoller in test guidelines (#6959)
## What changed?
<!-- Describe what has changed in this PR -->

Added new taskpoller to project's testing guidelines.

## Why?
<!-- Tell your future self why have you made these changes -->

To recommend this behavior to newcomers.

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

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

## 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/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
2025-01-08 12:05:54 -08:00
Stephan BehnkeandGitHub 44961f8158 Testing docs (#6005)
## What changed?
<!-- Describe what has changed in this PR -->

Create new `testing.md` with test-specific developer guidance.

It's still very short, happy to add anything else now if there is any -
or just grow it over time.

## Why?
<!-- Tell your future self why have you made these changes -->

To document testing patterns and agreements.

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

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

## 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/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
2024-05-29 10:25:12 -07:00