Skip to content
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

Simplify datastore construction #317

Merged
merged 3 commits into from Dec 8, 2021
Merged

Conversation

ecordell
Copy link
Contributor

@ecordell ecordell commented Dec 2, 2021

Simpler to build datastores from CLI args

@github-actions github-actions bot added the area/datastore Affects the storage system label Dec 2, 2021
@github-actions github-actions bot added the area/CLI Affects the command line label Dec 6, 2021
@ecordell ecordell force-pushed the ds-builder branch 4 times, most recently from 30ec2dd to a92942b Compare December 6, 2021 20:46
@ecordell ecordell changed the title WIP: simplify datastore construction Simplify datastore construction Dec 6, 2021
@github-actions github-actions bot added the area/dependencies Affects dependencies label Dec 7, 2021
@github-actions github-actions bot removed the area/dependencies Affects dependencies label Dec 7, 2021
@ecordell ecordell force-pushed the ds-builder branch 2 times, most recently from 1def5da to 1783cec Compare December 7, 2021 15:15
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Dec 7, 2021
@ecordell ecordell force-pushed the ds-builder branch 2 times, most recently from 7ab53fe to 3bbcb1c Compare December 7, 2021 15:49
@github-actions github-actions bot added area/dependencies Affects dependencies and removed area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Dec 7, 2021
@ecordell ecordell marked this pull request as ready for review December 7, 2021 15:53
@@ -0,0 +1,135 @@
// Code generated by github.com/ecordell/optgen. DO NOT EDIT.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we name this file with a regex that we can add to .gitattributes?

internal/datastore/datastore.go Outdated Show resolved Hide resolved
@@ -0,0 +1,156 @@
package serve
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be places other than serve that needs the datastore to be initialized. This might be best in pkg/cmd top-level

jzelinskie
jzelinskie previously approved these changes Dec 7, 2021
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Dec 8, 2021
occasionally the number of iterations picked will take longer than the
timeout for the test suite. capping it means that we sometimes will not
run the full iterations to be convincing, but the effect should be
amortized over PR runs. The cap (and timeout) can be removed for any
change that we suspect may have implications for the test.
@ecordell ecordell merged commit efdb8ad into authzed:main Dec 8, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/datastore Affects the storage system area/dependencies Affects dependencies area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants