Skip to content

bugfix: verify presence of the given version #48

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

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

Totktonada
Copy link
Member

The action installs tarantool using the following command.

sudo apt-get install -y tarantool=${version}* tarantool-dev=${version}*

If there is no exactly matching version, apt-get installs an available one.

For example, Ubuntu Jammy (22.04) has tarantool-2.6.0 in distro's repository and an attempt to install a non-existing tarantool version gives tarantool-2.6.0.

This behavior makes things especially confusing when the ubuntu-latest runner label changes its meaning. For example, when ubuntu-latest meant Ubuntu Focal (20.04) the action successfully installs tarantool-1.10.6. Later, ubuntu-latest was updated to Ubuntu Jammy (22.04) and the same action invocation installs 2.6.0, because there is no 1.10.6 package for Ubuntu Jammy.

After this patchset such an update doesn't lead to installation of an unexpected tarantool version: it leads to an explicit error.

The patchset also eliminates the 'unable to locate executable file' error after failed attempt to install tarantool. It makes the error diagnostics more clear.

Part of #36

@Totktonada Totktonada requested a review from grafin February 26, 2024 16:47
Copy link
Member

@grafin grafin left a comment

Choose a reason for hiding this comment

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

Thank you for the patches, only one comment from me

The action installs tarantool using the following command.

```sh
sudo apt-get install -y tarantool=${version}* tarantool-dev=${version}*
```

If there is no exactly matching version, `apt-get` installs an available
one.

For example, Ubuntu Jammy (22.04) has tarantool-2.6.0 in distro's
repository and an attempt to install a non-existing tarantool version
gives tarantool-2.6.0.

This behavior makes things especially confusing when the `ubuntu-latest`
[runner label][1] changes its meaning. For example, when `ubuntu-latest`
meant Ubuntu Focal (20.04) the action successfully installs
tarantool-1.10.6. Later, `ubuntu-latest` was updated to Ubuntu Jammy
(22.04) and the same action invocation installs 2.6.0, because there is
no 1.10.6 package for Ubuntu Jammy.

After this commit such an update doesn't lead to installation of an
unexpected tarantool version: it leads to an explicit error.

Part of #36

[1]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
Before this commit the action attempts to run `tarantool --version` even
after an error during its installation. It shows 'unable to locate
executable file' error after the root error that makes the report less
clear for a user.

Part of #36
@Totktonada Totktonada force-pushed the Totktonada/gh-36-verify-tarantool-version branch from 0731639 to e46eb36 Compare February 27, 2024 09:52
@Totktonada Totktonada merged commit d2e8f15 into master Feb 27, 2024
@Totktonada Totktonada deleted the Totktonada/gh-36-verify-tarantool-version branch February 27, 2024 10:58
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