Skip to content

Refresh check spelling#10106

Open
jsoref wants to merge 5 commits intorancher-sandbox:mainfrom
jsoref:refresh-check-spelling
Open

Refresh check spelling#10106
jsoref wants to merge 5 commits intorancher-sandbox:mainfrom
jsoref:refresh-check-spelling

Conversation

@jsoref
Copy link
Copy Markdown
Contributor

@jsoref jsoref commented Apr 7, 2026

This takes advantage of a new feature in v0.0.26: config.json for defining configuration using json instead of in workflows.

@jsoref jsoref force-pushed the refresh-check-spelling branch from 1b8eab1 to a12c271 Compare April 7, 2026 17:13
@@ -1,4 +1,5 @@
emoji
esc'd
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm still working on properly fixing it -- I've added some initial code to help with this and will write a test (but probably not today)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the actual use site is dumb, I'm going to fix this in #10122 too.

@@ -0,0 +1,29 @@
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This file can contain configuration as long as it's delegated by $INPUTS via load-config-from.pr-base-keys.

Comment on lines +111 to +112
sudo apt-get update
sudo apt-get install -y cpanminus
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(DOCKER_HOST=unix:///Users/$USER/.rd/docker.sock act --container-daemon-socket - -j spelling 2>&1) 

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, they don't have the equivalent of DEBIAN_FRONTEND=noninteractive set (and whatever else that causes auto-detect to fall over)? Having that actually in the commit message would be nice, but that's sort of cherry on top here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what's going on, they do technically have:

$ docker run ghcr.io/catthehacker/ubuntu:act-latest env |grep DEBIAN
DEBIAN_FRONTEND=noninteractive

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

@ChristopherHX ChristopherHX Apr 9, 2026

Choose a reason for hiding this comment

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

Could be that act runs docker commands via a tty, so some programs might make different assumptions.

Disabling the tty in act source code could be tried, some programs might disable their color output.

EDIT Or sudo is configured to preserve this env or due to missing tty actions/runner do not need -y, a lot of things could happen.

EDIT2 Our image could also set this: https://stackoverflow.com/questions/70236670/debian-frontend-noninteractive-not-working-inside-shell-script-with-apt-get the Question mentioned an command to set this in apt settings file instead of env

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fwiw, I tried:

        echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
        sudo apt-get install cpanminus

And that resulted in:

[Check Spelling/Check Spelling]   | Do you want to continue? [Y/n] Abort.
[Check Spelling/Check Spelling]   ❌  Failure - Main install cpanminus
[Check Spelling/Check Spelling] exitcode '1': failure
[Check Spelling/Check Spelling] ⭐ Run Complete job
[Check Spelling/Check Spelling]   ✅  Success - Complete job
[Check Spelling/Check Spelling] 🏁  Job failed
Error: job 'Check Spelling' failed

The reason this works on github is:

/etc/apt/apt.conf.d/90assumeyes has:

APT::Get::Assume-Yes "true";

See the apt artifact in https://github.com/check-spelling-sandbox/urban-train-refactored-chainsaw/actions/runs/24245952527

I'll file a PR against the act runner images repo...

Comment on lines -66 to +69
git clone --branch "$version" --depth 1 "$repo" "$checkout" >&2
git -c advice.detachedHead=false clone --branch "$version" --depth 1 "$repo" "$checkout" >&2
else
git -C "$checkout" fetch origin "$version" >&2
git -C "$checkout" checkout "$version" >&2
git -c advice.detachedHead=false -C "$checkout" checkout "$version" >&2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This reduces some noise at the start.

@jsoref jsoref marked this pull request as ready for review April 7, 2026 17:25
Comment on lines +111 to +112
sudo apt-get update
sudo apt-get install -y cpanminus
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, they don't have the equivalent of DEBIAN_FRONTEND=noninteractive set (and whatever else that causes auto-detect to fall over)? Having that actually in the commit message would be nice, but that's sort of cherry on top here.

@jsoref jsoref force-pushed the refresh-check-spelling branch from a12c271 to 1d58bfa Compare April 9, 2026 14:33
@jsoref jsoref requested a review from mook-as April 9, 2026 14:41
mook-as
mook-as previously approved these changes Apr 9, 2026
Copy link
Copy Markdown
Contributor

@mook-as mook-as left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the changes!

@@ -1,4 +1,5 @@
emoji
esc'd
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the actual use site is dumb, I'm going to fix this in #10122 too.

jsoref added 5 commits April 10, 2026 09:06
For unknown reasons, apt-get's detection fails to detmine that the
terminal is noninteractive:
- https://gitea.com/actions-oss/act-cli/issues/36

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
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.

3 participants