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

Version bump of json-schema #18603

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mjknight50
Copy link
Contributor

@mjknight50 mjknight50 commented Sep 24, 2024

Summary

  • This work is behind a feature toggle (flipper):NO

  • There is a bug within json-schema where a schema version can be cached. This was Reference resolution issue voxpupuli/json-schema#514.

  • I have not been able to reproduce the error since it is cached related. I'll admit that I'm not sure if this change will fix the schema issues we have seen.

  • As part of the change apivore needed to be bumped up too.

  • Since there is no packaged release of json-schema, I've pointed to master

Related issue(s)

Testing done

  • None

Acceptance criteria

  • If this solves the issue, it is a success.

Gemfile.lock Outdated
@@ -1274,8 +1266,6 @@ DEPENDENCIES
shoulda-matchers
shrine
sidekiq (~> 7.2.0)
sidekiq-ent!
sidekiq-pro!
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think sidekiq things should be removed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have not. Thanks for the link.

@va-vfs-bot va-vfs-bot temporarily deployed to feature/bump-json-schema-gem-version-knight/main/main September 24, 2024 20:13 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to feature/bump-json-schema-gem-version-knight/main/main September 25, 2024 05:34 Inactive
Gemfile.lock Outdated
sidekiq-pro (>= 7.2.0, < 8)
sidekiq-pro (7.2.1)
base64
sidekiq (>= 7.2.0, < 8)
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be deleted, either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

100% agree.

@va-vfs-bot va-vfs-bot temporarily deployed to feature/bump-json-schema-gem-version-knight/main/main September 25, 2024 20:00 Inactive
Gemfile.lock Outdated
@@ -1254,7 +1265,7 @@ DEPENDENCIES
rspec-retry
rspec-sidekiq
rspec_junit_formatter
rswag-specs
rswag-specs!
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a linting error. Is it because of this line? Here's the error:

 > bundle install
/opt/hostedtoolcache/Ruby/3.3.3/x64/bin/bundle config --local path /home/runner/work/vets-api/vets-api/vendor/bundle
/opt/hostedtoolcache/Ruby/3.3.3/x64/bin/bundle config --local deployment true
Cache key: setup-ruby-bundler-cache-v6-ubuntu-22.04-x64-ruby-3.3.3-wd-/home/runner/work/vets-api/vets-api-with--without--only--Gemfile.lock-c9ad2785870190f70805105221380591329b5bba52f0e3f536054a375884bfcf
Received 0 of 194032542 (0.0%), 0.0 MBs/sec
Received 92274688 of 194032542 (47.6%), 44.0 MBs/sec
Cache Size: ~185 MB (194032542 B)
/usr/bin/tar -xf /home/runner/work/_temp/47c590d2-ec4a-49e0-949c-559c0514bb78/cache.tzst -P -C /home/runner/work/vets-api/vets-api --use-compress-program unzstd
Received 194032542 of 194032542 (100.0%), 61.7 MBs/sec
Cache restored successfully
Found cache for key: setup-ruby-bundler-cache-v6-ubuntu-22.04-x64-ruby-3.3.3-wd-/home/runner/work/vets-api/vets-api-with--without--only--Gemfile.lock-8523844df877ba4654c21875ffe959ac1b2147f0c65a9b095e3b0c09a3f244fa
/opt/hostedtoolcache/Ruby/3.3.3/x64/bin/bundle install --jobs 4
Your lockfile does not satisfy dependencies of "rswag-specs", but the lockfile
can't be updated because frozen mode is set

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The exclamation point is just for fetching via git instead of http, from what I can tell.

@va-vfs-bot va-vfs-bot temporarily deployed to feature/bump-json-schema-gem-version-knight/main/main September 26, 2024 21:08 Inactive
@@ -216,7 +216,7 @@ group :development, :test do
gem 'rspec-instrumentation-matcher'
gem 'rspec-its'
gem 'rspec-rails'
gem 'rswag-specs'
gem 'rswag-specs', git: 'https://github.com/rswag/rswag', branch: 'master'
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this line is causing the issue? Since it's not a repo we own we might not want to point to master for security reasons. Is there a tag we can do instead of master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants