-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Conversation
class Speedread < Formula | ||
desc "Simple terminal-based rapid serial visual presentation (RSVP) reader" | ||
homepage "https://github.com/pasky/speedread" | ||
url "https://github.com/pasky/speedread/archive/6d1c5ebf276af5432ae9639cdd5f452c00c5e888.tar.gz" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a tagged release here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I asked the upstream maintainer to add a version tag. The last commit to the project is 2014 so I don't know whether this is gonna happen.
Changing the
|
@BrewTestBot test this please. |
The test is still erroring out, at least on Travis: https://travis-ci.org/Homebrew/homebrew/jobs/101895620 |
@bfontaine I changed all the things you wanted (tagged release and test) but now it doesn't build on Travis anymore (though the test success locally). What should I do now? |
desc "Simple terminal-based rapid serial visual presentation (RSVP) reader" | ||
homepage "https://github.com/pasky/speedread" | ||
url "https://github.com/pasky/speedread/archive/v1.0.tar.gz" | ||
version "1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this line; Homebrew detects it from the URL 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. What about the test now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try adding a newline at the end of the test string: "This is a test\n"
. Maybe speedread
waits for a full line, and the original test did have a newline (echo
adds a newline by default).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BrewTestBot test this please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hashier It won’t work if you’re not a maintainer 😉
The build has been triggered but there are some PRs before it in the queue so we have to wait.
@MikeMcQuaid / @bfontaine What shall I do? Travis clearly has a problem building this formula. |
@hashier You can try prefixing the test command with pipe_output("script -q /dev/null #{bin}/speedread -w 1000", "This is a test\n") |
@bfontaine That doesn't even finish/work/passes the test locally |
Well, I'll push it now anyway sigh |
@hashier Sorry about the delay. I was able to get a working test like so: test do
ENV["TERM"] = "xterm"
pipe_output("#{bin}/speedread -w 1000", "This is a test\n")
end |
The test is hanging indefinitely here on CI. Build finishes inside ~20 minutes and then for the next 100 minutes it gets stuck on |
@DomT4 Yeah we often get this issue with CLI tools that require user input. Setting You can reproduce the CI error by doing the following:
(using two prompts to differenciate between the current and the |
And why is this test "better" than the one I had in the very first pull request? Which didn't need any environment hacks at all to work. |
Still seems to be hanging indefinitely sadly. Aborted after 70 minutes to give the queue some opportunity to make progress. |
@hashier The original test used something like There’s an upstream issue about that: pasky/speedread#14 |
If these are (supposedly) equivalent why can't we just use the first one that works? (: I understand it's nice to fix bugs but it's even nicer to ship something if you can it working and then care about the bug. Sent from my iPhone
|
@hashier I originally thought these were equivalent but I was proven wrong: the first one spawns an interactive shell while the second one doesn’t.
That’s true in some contexts; but I don’t think it applies here. Homebrew is a package manager with a very limited number of maintainers. We get issues when things are broken, so shipping a formula for something with a (known) bug is not a good strategy if we want to optimize our time. I, however, agree it’s a minor bug because it doesn’t occur in normal (i.e. interactive) usage.
Note that the new test doesn’t only test for existence, it’s executing cc @DomT4 @MikeMcQuaid for other opinions. |
I'm OK with any test that's green on both |
@hashier You can reuse your first test; I’ll try the |
A simple terminal-based open source Spritz-alike. This command line filter shows input text as a per-word RSVP (rapid serial visual presentation) aligned on optimal reading points. This kind of input mode allows reading text at a much more rapid pace than usual as the eye can stay fixed on a single place.
Just needed some time to find the old commit in |
I can see it was pushed (and passed the tests). Thank you for your contribution to Homebrew! 🎉 |
Thanks @bfontaine with your patience as well (: Hope you manage to find the bug in the test. |
A simple terminal-based open source Spritz-alike.
This command line filter shows input text as a per-word RSVP (rapid
serial visual presentation) aligned on optimal reading points. This kind
of input mode allows reading text at a much more rapid pace than usual
as the eye can stay fixed on a single place.