Commit Graph

887 Commits

Author SHA1 Message Date
Tristan Cartledge
e6afbe2af0 fix: boost coverage 2023-12-03 21:07:42 +00:00
Tristan Cartledge
d56bc91272 fix: boost coverage 2023-12-03 20:55:30 +00:00
quobix
7a5a4bcb2d Tuned circular reference handling
stopped rolodex looking up root file, looking in components schemas for a reference also. Dropped stripe circular refs down by one. seems to be catching the duplicate now.

Signed-off-by: quobix <dave@quobix.com>
2023-12-03 15:54:20 -05:00
Tristan Cartledge
369540a825 fix 2023-12-03 20:47:19 +00:00
Tristan Cartledge
64245216b3 Merge branch 'main' into ordered-libopenapi 2023-12-03 20:43:45 +00:00
Tristan Cartledge
6904f4d459 fix: cleanup tests 2023-12-03 20:41:54 +00:00
quobix
1e9b42a1ce catching circular references that spin out of control
This builds on the last patch, by also catching the issue in the resolver and then allowing it to bubble up to applications.
no new fixes, no new featuers, just better integration so vacuum can report the issues.

Signed-off-by: quobix <dave@quobix.com>
2023-12-03 11:06:43 -05:00
quobix
afe5c1213b Added a safety check to resolver
If the number of relatives exceeds 500  deep when resolving, libopenapi will now log a warning and escape that path from continuing. There is no reason on earth for a depth this large. It most likely indicates a circular reference that was ignored and then resolved.

Signed-off-by: quobix <dave@quobix.com>
2023-12-03 09:23:18 -05:00
Tristan Cartledge
d669ada7b6 Merge branch 'main' into ordered-libopenapi 2023-12-02 22:23:19 +00:00
Tristan Cartledge
b419d95c6b chore: clean up interfaces 2023-12-02 22:22:43 +00:00
Tristan Cartledge
137db075d8 fix: for all tests 2023-12-02 16:16:40 +00:00
quobix
82c9e21df1 fixed tests.
Signed-off-by: quobix <dave@quobix.com>
2023-12-01 18:11:54 -05:00
quobix
3715938ce8 fixed resolving issue, not all refs being resolved.
This got tucked in somehow, the sequence is what is used by the resolver to replace refs. This fixes an issue in vacuum.

Signed-off-by: quobix <dave@quobix.com>
2023-12-01 18:11:54 -05:00
Tristan Cartledge
94fb310643 fix: tests 2023-12-01 18:25:15 +00:00
Tristan Cartledge
6661f3a4e3 fix: test 2023-12-01 18:11:44 +00:00
Tristan Cartledge
00e1544abd Merge branch 'main' into ordered-libopenapi 2023-12-01 17:57:05 +00:00
Tristan Cartledge
1a384fd982 fix: cleanup 2023-12-01 17:47:55 +00:00
Tristan Cartledge
a4ad09aab3 fix: continued moving everything to orderedmaps plus cleaned up most the tests 2023-12-01 17:37:07 +00:00
quobix
190330ca9b Added in fix for stackoverflow issue
discovered while running tests, vacuum explodes with the new stripe spec. It’s a `FullDefintion` vs `Definition` misfire.

Signed-off-by: quobix <dave@quobix.com>
2023-11-30 12:59:59 -05:00
quobix
5c372820fc updated test values as spec changes in the wild.
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
8be6a66070 added benchmark to force codecov to stop being dumb.
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -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
ce1b9f2399 added test for nill mock generator item
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
396b4509b9 added nil check to mock generator
stops it blowing up when there is no mock to render.

Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
831e5ad9c6 warn the user if there is no local file system configured =
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
839c7d9795 if the app freezes, we will know why.
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
f8154c5db2 added logic to handle variations of reference lookup for resolver
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
803e9337b5 updated digital ocean tests
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
Tristan Cartledge
0f3d0cb28f Merge branch 'main' into ordered-libopenapi 2023-11-28 08:59:00 +00:00
Tristan Cartledge
85928613f5 chore: fix issues with timezone differences in tests 2023-11-27 15:18:15 -05:00
Tristan Cartledge
785824a271 fix: fixed tests after merge 2023-11-27 17:05:37 +00:00
Tristan Cartledge
2de65e4ca0 Merge branch 'main' into Baliedge/PIP-2552-consistent-ordering 2023-11-27 12:06:39 +00:00
quobix
ae93af8efa updated readme
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:20:20 -05:00
quobix
8335db72e2 added coverage for fixed remote unsupported handler
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
a0d9204099 added logger check to remote loader
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
6082f3ccdc added correct error handling for unsupported remote files
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
76c9c2cafb added valid check to avoid a panic
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
95022c5a24 updated logger message to be more helpful
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
ff93d99fcb added humaize test
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
af1ee6c620 added tests for file size and total files.
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
14f992cb93 added rolodex size methods
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
b2616dde29 updated remote loaders
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 21:09:21 -05:00
quobix
0d76e517a5 disabling channel close, looks like it causes a panic.
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
aada30d83c looking for leaks
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
ed7b2a2bf7 added a test to capture new usecase exposed by vacuum
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
95338f2536 More tuning and working on vacuum support
noticed a couple of stange things with vacuum

Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
a8ff2f5dee Tuning things up a little more
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
8370bafd04 Added multi file test for file loader
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
0b1a147a26 Add ‘disable required check’ switch on renderer #200
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
ee2783e6e7 more coverage bumps
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00