-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fga] check workspace relationships #18793
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM ✔️
Tests are failing, though... 🤔 Can check in ~40mins |
002c934
to
b57de09
Compare
Funny enough, I cannot reproduce that failure in my dev environment, but it looks like a case for the sporadic write failure we are trying to tackle. 🤔 Edit: The causing error is here. Haven't seen that before and couldn't find anything using google. |
b57de09
to
765b149
Compare
This happens reliably when running |
765b149
to
1c99024
Compare
Turned out to be a problem with the in memory mode of spicedb we use in testing. (issue) So I changed the code to write the relationships sequentially. |
/unhold |
Description
We have identified that sometimes workspace relationships are missing without any error from spicedb.
We used to write them in large chunks. This changes them taht and writes the workspace rleationship per workspace. In addition it checks if the rleationships have actually been written successfully.
Summary generated by Copilot
🤖 Generated by Copilot at 002c934
This pull request updates the authorization database migration logic and adds a temporary verification check. The changes aim to improve the robustness and consistency of the new authorization model for workspaces, organizations, and users.
Related Issue(s)
Fixes #
How to test
Documentation
Preview status
gitpod:summary
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold