Skip to content

Fix action not working on debians and in containers #45

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 7 commits into from
Feb 25, 2024

Conversation

grafin
Copy link
Member

@grafin grafin commented Feb 22, 2024

There are two problems preventing this action working on debian (not ubuntu) and in containers. This PR fixes them, as well as some issues in our CI, preventing the tests to pass. See commit messages for more info.

Closes #44

@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch 13 times, most recently from c2d3ea2 to dbb5503 Compare February 22, 2024 16:14
@grafin grafin mentioned this pull request Feb 22, 2024
@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch 3 times, most recently from a5d6d13 to 7069e81 Compare February 24, 2024 07:08
@grafin grafin requested a review from Totktonada February 24, 2024 07:11
@Totktonada
Copy link
Member

Thank you for the decent work!

I would like to comment a situation with 'disappearing' of the tarantool-1.10.12 package (described by this commit from the PR). CI jobs that experience the problem use runs-on: ubuntu-latest. At the time of writing it meant Ubuntu Focal (20.04), but now it is Ubuntu Jammy (22.04). Tarantool 1.10 release series supports Ubuntu Jammy since the 1.10.14 release. There is no 1.10.12 package for Ubuntu Jammy.

I think we can build such package and deploy it to download.tarantool.org for convenience, but nothing actually stops us from using 1.10.14 in CI. I agree with your fix.

Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

The patchset looks nice. I've nothing to add here except a few nits (see above).

Let's resolve them (or let me know that you're out of free time) and I'll proceed with the pull request.

@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch 3 times, most recently from b2d8475 to c052c70 Compare February 25, 2024 12:01
@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch 2 times, most recently from cd46117 to 95201ed Compare February 25, 2024 12:31
@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch from 95201ed to 16f0e17 Compare February 25, 2024 12:34
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
In manpages-dev package there is a know bug with broken symlinks in
/usr/share/man/man3/. There is no hope that it will be fixed. Let's add
a hack to bypass it.

More info:
https://groups.google.com/g/linux.debian.bugs.dist/c/w5HiAxl7e7Y
Previously it was trying to install 1.10.12, which looks like it is
not in our repository right now.
@grafin grafin force-pushed the grafin/distro-and-docker-fixes branch from 16f0e17 to 5a4e664 Compare February 25, 2024 13:28
@grafin
Copy link
Member Author

grafin commented Feb 25, 2024

Thanks for in-depth review and help with figuring out some details! I've fixed everything you mentioned in your review, feel free merge if you have no further comments. I would also suggest rewriting .github/workflows/test.yml to use latest-version and verify-version now that they are fixed, but this is out of the scope of current PR.

@grafin grafin requested a review from Totktonada February 25, 2024 13:34
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

Looks good for me. Thanks!

@Totktonada Totktonada merged commit 9d614ab into master Feb 25, 2024
@Totktonada Totktonada deleted the grafin/distro-and-docker-fixes branch February 25, 2024 14:13
Totktonada added a commit that referenced this pull request Feb 26, 2024
Running the action on a self-hosted runner or in a container job is
supported since PR #45, but it requires a few additional steps. Let's
describe them in the README.md file.

Fixes #47
Totktonada added a commit that referenced this pull request Feb 26, 2024
Running the action on a self-hosted runner or in a container job is
supported since PR #45, but it requires a few additional steps. Let's
describe them in the README.md file.

Fixes #47
Totktonada added a commit that referenced this pull request Feb 26, 2024
Running the action on a self-hosted runner or in a container job is
supported since PR #45, but it requires a few additional steps. Let's
describe them in the README.md file.

Fixes #47
Totktonada added a commit that referenced this pull request Feb 27, 2024
Running the action on a self-hosted runner or in a container job is
supported since PR #45, but it requires a few additional steps. Let's
describe them in the README.md file.

Fixes #47
Totktonada added a commit that referenced this pull request Feb 27, 2024
Running the action on a self-hosted runner or in a container job is
supported since PR #45, but it requires a few additional steps. Let's
describe them in the README.md file.

Fixes #47
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.

Unable to run the action inside docker
2 participants