Skip to content

Make sure dbc works well in CI #93

Closed

Description

@amoeba

When I build and run the actual dbc binary on GHA, I get,

2025-09-24T19:52:20.9554812Z Error running program: could not open a new TTY: open /dev/tty: no such device or address

I'm guessing we need to tweak dbc so it works in non-interactive scenarios like CI. bubbletea very likely has some example of how to do this.

Activity

  1. amoeba commented on Sep 24, 2025

    @amoeba
    MemberAuthor

    This might be enough:

    	var p *tea.Program
    		if !isatty.IsTerminal(os.Stdout.Fd()) {
    			p = tea.NewProgram(m, tea.WithoutRenderer(), tea.WithInput(nil))
    		} else {
    			p = tea.NewProgram(m)
    		}```
  2. amoeba commented on Sep 25, 2025

    @amoeba
    MemberAuthor

    This approach appears to fix my issue in https://github.com/columnar-tech/dbc/actions/runs/17995210636/job/51193100511. In local testing it seems to work too. I'll file a separate PR for this.

  3. added a commit that references this issue on Apr 17, 2026
    89adf20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions