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

CI: Switch to self-hosted runner #15

Merged
merged 2 commits into from
May 10, 2024
Merged

CI: Switch to self-hosted runner #15

merged 2 commits into from
May 10, 2024

Conversation

kir68k
Copy link
Owner

@kir68k kir68k commented May 9, 2024

Switch to my self-hosted runner instance, hopefully pkgcheck executes faster...?

Signed-off-by: Kirin Etheridge revelation@krxt.dev

Signed-off-by: Kirin Etheridge <revelation@krxt.dev>
@kir68k kir68k marked this pull request as draft May 9, 2024 21:23
Signed-off-by: Kirin Etheridge <revelation@krxt.dev>
@kir68k
Copy link
Owner Author

kir68k commented May 9, 2024

Alright, I'm a bit confused at socket.gaierror: [Errno -3] Temporary failure in name resolution, seems like for some reason the runner can't access the internet.

I use docker-github-actions-runner, so this is ran inside a docker container... I already had network issues I fixed, but I'm not sure why it can't resolve IPs, docker execing into the container and running ping, it works?

Edit: Happens when I make a new runner without docker as well...

@kir68k
Copy link
Owner Author

kir68k commented May 9, 2024

Oh, I think I know why, took a bit to figure it out. I noticed I always have to use --network=host on my containers to resolve DNS issues, but never knew why they happen... I realized I use DNS on a private class IP for DNS in resolv.conf, while the Docker daemon uses a different one, so they can't communicate... Gonna test if changing docker's config makes this work in a bit >_>

@kir68k
Copy link
Owner Author

kir68k commented May 10, 2024

Ight now I get a new error related to the PAT, cool

@kir68k
Copy link
Owner Author

kir68k commented May 10, 2024

For the past hour I've tried to fix the docker network issues, I really think I forgot "Edit: Happens when I make a new runner without docker as well...". I feel like this is impossible as I use nftables (screw iptables I hate it), so back to the old setup, which gives the same network errors from pkgcheck, ughhh

I think this is because of a docker run inside the build, which uses the default network... which as said fails... No idea how I'd change this lol

@kir68k
Copy link
Owner Author

kir68k commented May 10, 2024

Okay, well, this will be kept as a draft until either if this is a bug I fix it, or until nftables with docker properly works (yes, I do have iptables-nft)...

I am not giving up nftables just for this.

@kir68k kir68k added bug Something isn't working enhancement New feature or request labels May 10, 2024
@kir68k
Copy link
Owner Author

kir68k commented May 10, 2024

Alright, made everything network related work, had to hard-code an external DNS for the docker daemon but that's fine with me... New run gives a new error, but docker run arguments are different (entrypoint isn't used?), weird.

@kir68k
Copy link
Owner Author

kir68k commented May 10, 2024

Alright, this should work now... I can't understand how changing DNS would fix pings to e.g. 8.8.8.8, but I already had iptables-nft and IP forwarding enabled...

@kir68k kir68k marked this pull request as ready for review May 10, 2024 15:52
@kir68k kir68k merged commit cc2708a into stream May 10, 2024
1 check passed
@kir68k kir68k deleted the actions-selfhosted branch May 10, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant