FerretDB / dance

FerretDB integration testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate all dbaas_core failures

b1ron opened this issue · comments

commented

This will take considerable time as each failure will need an issue and a PR with a repro. There are currently only 351 failures but this is due https://pkg.go.dev/path/filepath#Glob not supporting globstar, i.e. match all files and zero or more directories and subdirectories.

As a side note globstar can be enabled in Bash 4 by doing shopt -s globstar but I am not sure if his will allow Go to utilize the shell option.

The dbaas_core suite has ~1k files in total, I think.

but I am not sure if his will allow Go to utilize the shell option.

Nope.

Why do we need globstar?

commented

Why do we need globstar?

To not have to manually provide all files in all directories that end with .js. I suppose we can do this manually.

But we don't need to provide all files, only directories, and there are not so many of them

commented

But we don't need to provide all files, only directories, and there are not so many of them

And all the directories inside those directories. But I believe there are not too many. I will be adding them all in any event.

I think what we should do to close that issue:

  • Split dbaas_core.yml into multiple configurations to make them run in parallel.
  • Investigate if we could run multiple files per docker compose run invocation.

The second point might be the same as or related to #294.

Investigate if we could run multiple files per docker compose run invocation.

Perhaps we could use a .mongoshrc file with predefined TestData for each test before docker compose run is executed. I will need to see if that could work.