pulumi/.github/workflows
Fraser Waters 959fc6c8b4
Run integration tests with race detection (#15895)
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->
Combining #15120 and #15124 and including fixes to allow tests to pass.

Enable race detection in the binary we're using for integration tests.
This will allow us to catch more data races before they get into any
release. This does mean the binary we're using for integration tests is
slightly different from the binary we're releasing, however that's
already the case as we're running a binary with coverage enabled for
them. Later we rebuild the binary we're actually releasing.

This requires us to fix the race between snapshot code, display code,
and the step executor. I've done that by adding a lock to the State
struct. This does not feel great, but it's a quick way to fix this and
get race detection running (and unblocks #15871 which was also hitting
the race detector because it started pulling snapshot code into unit
tests as well). There's probably a more principled overhaul that doesn't
require locking at this level.

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-04-11 15:58:42 +00:00
..
ci-build-binaries.yml Run integration tests with race detection (#15895) 2024-04-11 15:58:42 +00:00
ci-build-sdks.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci-dev-release.yml Run integration tests with race detection (#15895) 2024-04-11 15:58:42 +00:00
ci-info.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci-lint.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci-prepare-release.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci-run-test.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci-test-docs-generation.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
ci.yml Run integration tests with race detection (#15895) 2024-04-11 15:58:42 +00:00
command-dispatch.yml ci: ensure trunk is always green 2022-09-13 13:38:14 -07:00
cron-direct-build.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
download-pulumi-cron.yml Fix Homebrew install test (#14082) 2023-10-02 18:42:58 +00:00
on-community-pr.yml ci: fix community contributor workflows 2022-09-21 17:39:15 -07:00
on-merge.yml do dev releases post merge (#15720) 2024-03-18 09:56:10 +00:00
on-pr-changelog.yml ci: Use latest version of peter-evans/find-comment (#15839) 2024-03-30 16:52:05 +00:00
on-pr-close.yml [ci] Add downstream codegen tests back (#14582) 2023-11-28 15:15:20 +00:00
on-pr-default.yml Move .version to /sdk and embed it (#15185) 2024-01-19 14:11:17 +00:00
on-pr.yml ci: Use latest version of dorny/paths-filter (#15834) 2024-03-30 15:53:21 +00:00
on-push.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
on-release.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
pr-test-acceptance-on-dispatch.yml ci: Use latest version of peter-evans/create-or-update-comment (#15838) 2024-03-30 15:52:42 +00:00
pr-test-codegen-downstream.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
pr-test-docs-gen-on-pr.yml ci: Clean up excess permissions, fix acceptance tests job 2022-09-15 17:48:16 -07:00
pr-test-docs-generation-on-dispatch.yml ci: Use latest version of peter-evans/create-or-update-comment (#15838) 2024-03-30 15:52:42 +00:00
rebase.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
release-homebrew-tap.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
release-pr.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
release.pub ci: ensure trunk is always green 2022-09-13 13:38:14 -07:00
release.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
sign.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00
trigger-homebrew-event.yml [ci] More fixes for the homebrew release job (#14482) 2023-11-03 02:15:57 +00:00
trigger-release-docs-event.yml ci: Use latest version of actions/checkout (#15832) 2024-03-30 15:53:47 +00:00