Feature request: Have the rspec-queue executable output the queue size
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 239
- Forks
- 36
- Avg merge
- 28m
- Merged PRs (30d)
- 3
Description
Since ci-queue cannot by necessity respect before(:all) hooks, I have a workaround to run the required setup in my CI script. However, I'd like to avoid running it if the queue is empty (i.e. other workers have already exhausted it), so it would be cool to have something like:
unless `rspec-queue --query queue-size`.chomp! == '0'
# do expensive setup
end
If there's already a straightforward programmatic way to do this, I'm happy to use that instead of adding a feature!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the rspec-queue executable and reviewing how ci-queue exposes queue state. Check whether an existing programmatic query already reports the queue size; otherwise, done means supporting --query queue-size so it outputs the current size for CI scripts, including an empty queue as 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100