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

17 spin forumula test rebase #22

Merged
merged 9 commits into from
Nov 14, 2023

Conversation

dimitrilw
Copy link
Contributor

for issue #18

Copy link
Collaborator

@kate-goldenring kate-goldenring left a comment

Choose a reason for hiding this comment

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

Just need to update the test for latest version.

Formula/spin.rb Outdated
@@ -40,6 +40,6 @@ def post_install
end

test do
system "#{bin}/spin", "--version"
assert_match "spin 1.5.1 (8d4334e 2023-09-26)", shell_output("#{bin}/spin --version")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be updated to the latest version of Spin (2.0.1) but for simplicity, this can be made generic as follows once you've pulled in the latest commit that parametrizes version

Suggested change
assert_match "spin 1.5.1 (8d4334e 2023-09-26)", shell_output("#{bin}/spin --version")
assert shell_output("#{bin}/spin --version").start_with?("spin #{version}")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spin version check updated to fixed 2.0.1 string, but using the start_with function in anticipation of parameterized formulas. Bart formula updated too.

@dimitrilw
Copy link
Contributor Author

Re test-bot fail -- I ran it on my system (MacOS) and it was happy. 😂
image
So, looking at error to fix it & resubmit.

@dimitrilw
Copy link
Contributor Author

dimitrilw commented Nov 14, 2023

newlines added to end of both spin.rb & bart.rb -- I must have something in my VS-Code configs that is stripping them when I push from within VS-Code. 🤷🏻 More little details for me to look for.

But good ol' terminal (vim & git-CLI) to the rescue! :)

@dimitrilw
Copy link
Contributor Author

Oh! Wait... resubmitting. I see now that the version is already parameterized. I apologize. Fixing....

@dimitrilw
Copy link
Contributor Author

@kate-goldenring , I believe it's good now. 😊

@dimitrilw
Copy link
Contributor Author

Ok, I have to admit that the test-bot is confounding. It failed me because I did not have a trailing new-line. So I added them, and it passed. ...then I realized the version parameters were already in-place, so I edited to reflect that and kept the new-line in. Now it fails on the existence of a new-line. 🤦🏻 ......fixing. I think. We'll see if test-bot agrees.

Signed-off-by: Dimitri <[email protected]>
@dimitrilw
Copy link
Contributor Author

dimitrilw commented Nov 14, 2023

for ref, here's the fail message after commit 47bc4af ... I did not screenshot the previous pass (after adding newlines) or the previous fail (stating newlines needed to be added); not sure why test-bot hates contributors named Dimitri. 😄
image

@kate-goldenring kate-goldenring merged commit cbc66f5 into fermyon:main Nov 14, 2023
3 checks passed
@dimitrilw dimitrilw deleted the 17-spin-forumula-test-rebase branch November 14, 2023 23:34
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