Skip to content

Mark LockfileCheck as completed if all gems are skipped#235

Merged
etagwerker merged 1 commit into
mainfrom
ISSUE-231-complete-all-skipped
Jun 10, 2026
Merged

Mark LockfileCheck as completed if all gems are skipped#235
etagwerker merged 1 commit into
mainfrom
ISSUE-231-complete-all-skipped

Conversation

@arielj

@arielj arielj commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Solves #231

When processing a lockfile, if all the gems are skipped (either source is not valid or version is not defined), no GemCheck background job was added to the queue, so nothing was getting processed and the LockfileCheck object was never updated.

Now, if there are no GemChecks to enqueue, we change the status to complete right away.

I used this lockfile to test this (it's the lockfile of this project but using the gems.coop source)

Gemfile.lock.zip

@arielj arielj requested a review from JuanVqz June 10, 2026 15:31

@etagwerker etagwerker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@arielj Looks good, thanks!

@etagwerker etagwerker merged commit 4f92ba9 into main Jun 10, 2026
2 checks passed
@etagwerker etagwerker deleted the ISSUE-231-complete-all-skipped branch June 10, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants