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
[WIP] use cosmos db emulator #941
Conversation
Codecov Report
@@ Coverage Diff @@
## master #941 +/- ##
=======================================
Coverage 59.99% 59.99%
=======================================
Files 75 75
Lines 2327 2327
=======================================
Hits 1396 1396
Misses 800 800
Partials 131 131
Continue to review full report at Codecov.
|
azure-pipelines.yml
Outdated
|
||
- powershell: | | ||
go test -mod=vendor -race ./... | ||
env: | ||
ATHENS_MINIO_ENDPOINT: "127.0.0.1:9001" | ||
ATHENS_MONGO_STORAGE_URL: "127.0.0.1:27017" | ||
ATHENS_MONGO_INSECURE: "true" | ||
ATHENS_MONGO_STORAGE_URL: "mongodb://localhost:C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==@localhost:10255/admin?ssl=true" |
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.
Just a thought in mind. If we are using an emulator, we might want to check if the indices when the tests start, they should not have any documents or modules in it, so that our integration tests do not give a false success.
oops! I updated it on wrong branch! |
@@ -56,7 +56,7 @@ func (m *ModuleStore) connect() error { | |||
|
|||
func (m *ModuleStore) initDatabase() error { | |||
// TODO: database and collection as env vars, or params to New()? together with user/mongo | |||
m.d = "athens" | |||
m.d = "admin" |
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.
What do you think about fixing up the TODO
above instead of changing this? I know that this would break a lot of deployments that already use mongo storage (including https://athens.azurefd.net)
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.
👍 Sure, I couldn't figure out how to talk to the emulator and I tried things out. It wasn't meant to stay here like this.
I'm closing this - we should probably try again using docker. |
What is the problem I am trying to address?
Azure pipelines builds are slow b/c we need to install mongodb
How is the fix applied?
Use Azure Cosmos DB emulator insead
Mention the issue number it fixes or add the details of the changes if it doesn't have a specific issue.
No issue