Commit Graph

41 Commits

Author SHA1 Message Date
quobix
79d49faf70 Addressed https://github.com/daveshanley/vacuum/issues/459
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
3d5ab30755 resolver hits are different between load on CPU runs, with no extra value in output.
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
2f82a69d6c A clean sweep around resolving during model builds.
Really hammering on this model using all available examples of crazy references used in crazy ways. The fixes mean I can delete the recent patch added to handle lost indexes.

I spent two days on this commit.

Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
6c8e03d36f Resolution for https://github.com/pb33f/libopenapi/issues/248
A new codepath created a double dip into the index, which skews the working path. A short circuit is required, and a new block of code catches it.

Signed-off-by: quobix <dave@quobix.com>
2024-02-09 10:10:15 -05:00
quobix
7afb1e9d11 Addressed #159
Cleaned up all interesting static checks. All that is left is cosmetics.

Signed-off-by: quobix <dave@quobix.com>
2024-02-06 22:13:41 -05:00
quobix
4a9f048ebe cleaned up remote file loader tests
The remote file loader is no longer going to care about anything other that explicit http links, trying to figure out where things should be loaded form using an overridden basepath and host is too complex of a usecase that I cannot be sure even exists.

Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
c55527066a Addressed invalid polymorphic circular reference issue.
If a polymorphic type was used incorrectly (as a map and not an array) then the logic was getting a little upset. This fixes that issue and adds some tests to validate correct handling.

Signed-off-by: quobix <dave@quobix.com>
2024-01-30 16:44:06 -08:00
Ilja Lapkovskis
b01b967433 Fix issue with non-working IgnorePoly flag. 2024-01-26 06:20:29 -05:00
quobix
2bc6e9f028 Added ‘bundler’ module
resolves a v3 document or a model into a single document.

Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
1da99d7efe bumped coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
292d1d8bff one more swing at windows compatibility
before I lose my mind.
2024-01-18 15:11:39 -05:00
quobix
1f21f1432d build working on windows again
ping pong.
2024-01-18 15:11:39 -05:00
quobix
7026e83f7c adding in path overlap feature
discovered glitch when reworking test for pipeline

Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
e699968768 Working through windows support 2024-01-18 15:11:39 -05:00
quobix
961fe76e7f fixed flaky test
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
7917e6c285 Removed digital ocean rolodex size check from test
it keeps on changing, which it should, but updating the tests each time is dumb. Moved to a fixed size test.

Signed-off-by: quobix <dave@quobix.com>
2023-12-12 13:38:03 -05:00
quobix
71e0552279 added error check for local FS
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
ff93d99fcb added humaize test
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
f56cdeae9e Tuned up local file handling and cleaned things up
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
7d63fe3262 Added new node map capability
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
784954e208 Defaulting localFS to be recursive
currently it pre-indexes everything in the root. This behavior is undesirable out of the box, so it now looks recursively by default.

Signed-off-by: quobix <dave@quobix.com>
2023-11-07 11:29:24 -05:00
quobix
54450edf6c Adding convenience methods and glitch fixes for 0.13
Testing inside vacuum is throwing up a couple of small glicthes that need adding/tuning

Signed-off-by: quobix <dave@quobix.com>
2023-11-04 16:22:48 -04:00
quobix
713aeecdfa Tuning parameter exraction for circular ref handling
Lots and lots of variations. means lots of branches to check.

Signed-off-by: quobix <dave@quobix.com>
2023-11-02 15:04:47 -04:00
quobix
0b08a63e63 more coverage bumps
Signed-off-by: quobix <dave@quobix.com>
2023-10-31 13:58:58 -04:00
quobix
9746f51a0e bumping up coverage of the rolodex
Signed-off-by: quobix <dave@quobix.com>
2023-10-31 11:30:39 -04:00
quobix
9302f7c6dd whoops.
Signed-off-by: quobix <dave@quobix.com>
2023-10-31 10:25:20 -04:00
quobix
0b24a5b5b7 flaky test fixed.
well, it’s not fixed, there is an async bug somewhere.

Signed-off-by: quobix <dave@quobix.com>
2023-10-31 10:19:20 -04:00
quobix
5d41427960 more coverage, bumping up rolodex coverage
fixing small glitches now as we go.

Signed-off-by: quobix <dave@quobix.com>
2023-10-31 10:15:19 -04:00
quobix
fde9ede4ac Working through more coverage
adding more tests.

Signed-off-by: quobix <dave@quobix.com>
2023-10-31 08:25:56 -04:00
quobix
ba8b5ac776 more coverage tuning
Signed-off-by: quobix <dave@quobix.com>
2023-10-30 15:50:33 -04:00
quobix
0cc66982f6 Adding more logic to resolver to handle mixed usecases
Signed-off-by: quobix <dave@quobix.com>
2023-10-30 15:02:00 -04:00
quobix
aca3ed66d7 Adding more use-cases for resolving remote docs
Signed-off-by: quobix <dave@quobix.com>
2023-10-30 10:43:51 -04:00
quobix
d8dfafd0a4 Working through test cases
There are still gaps to be found based on various combinations of crazy references.

Signed-off-by: quobix <dave@quobix.com>
2023-10-30 10:03:02 -04:00
quobix
3ee631c748 working on more tests
Signed-off-by: quobix <dave@quobix.com>
2023-10-27 16:41:50 -04:00
quobix
7cf93e83b4 bumping coverage
Signed-off-by: quobix <dave@quobix.com>
2023-10-26 16:22:22 -04:00
quobix
765c7e2e14 Working through rolodex coverage.
Signed-off-by: quobix <dave@quobix.com>
2023-10-25 14:54:32 -04:00
quobix
eff416603e fixed flaking test
Signed-off-by: quobix <dave@quobix.com>
2023-10-25 08:16:11 -04:00
quobix
a87d9236d8 bumping test coverage
more to go, more cleaning inbound also

Signed-off-by: quobix <dave@quobix.com>
2023-10-25 08:09:33 -04:00
quobix
afe89454ac More fine tuning, handling resolving and edge cases now.
Signed-off-by: quobix <dave@quobix.com>
2023-10-20 17:50:51 -04:00
quobix
de85651414 Performing some major surgery on the index
To make this work correctly, this needs completely shaking up and a transfer of ownership. The index is now local,
the rolodex is now global.

Signed-off-by: quobix <dave@quobix.com>
2023-10-13 15:51:41 -04:00
quobix
81902efddc working through rolodex build
Signed-off-by: quobix <dave@quobix.com>
2023-10-12 17:32:04 -04:00