question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with conda-incubator/setup-miniconda@v2 GitHub Action

See original GitHub issue

This is a terrific tool and have used it successfully in the past to debug some complex scripts. Had to debug a problem build recently, but as soon as I connect to the build server (via url link or direct ssh in a separate terminal), the connection is terminated in less than 60 seconds. Not sure if others have experienced the same.

If it helps, here are the key config elements I am working with:

jobs:
  build:
    name: Build (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: ["ubuntu-latest"]
        python-version: ["3.8"]
        
    steps:
      - uses: actions/checkout@v2
      - uses: conda-incubator/setup-miniconda@v2
        # https://github.com/marketplace/actions/setup-miniconda
        with:
          miniconda-version: "latest"
          channels: conda-forge
          auto-update-conda: true
          python-version: 3.8
          environment-file: environment.yml  
...
      # Debugging session
      - name: Setup tmate session
        uses: mxschmitt/action-tmate@v3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14

github_iconTop GitHub Comments

1reaction
gbartercommented, Feb 16, 2021

If I do type -a tmate after miniconda it fails with /home/runner/work/_temp/b2117145-5a5a-4545-8e3d-34690dd3eb68.sh: line 1: type: tmate: not found

I will try your other debugging steps in a bit.

0reactions
dschocommented, Mar 25, 2021

@mxschmitt figured out the root cause:

  // Bash profiles
  let bashExtraText: string = `
  # ----------------------------------------------------------------------------
  # Conda Setup Action: Basic configuration
  set -eo pipefail`;

This (along with other lines) will be appended to the user-wide Bash profile (i.e. to ~/.profile, but also to ~/.bash_profile, just to make sure).

The -e option, set via set -eo pipefail, is what is the bad thing here. It tells the Bash to exit whenever a command failed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conda-incubator/setup-miniconda - GitHub Action
conda -incubator/setup-miniconda. This action sets up a base conda environment by one of: locating the conda installation bundled with the available runners ...
Read more >
Creating conda env failed with exit code null #262 - GitHub
My GitHub Action step looks like this: - name: Setup Conda uses: conda-incubator/setup-miniconda@v2.2.0 with: environment-f...
Read more >
Example 9: Empty Channels in file dont crash setup - GitHub
Set up your GitHub Actions workflow with conda via miniconda - Example 9: Empty Channels in file dont crash setup · conda-incubator/setup-miniconda@059455a.
Read more >
Weird conflict errors #22 - conda-incubator/condacolab - GitHub
I can't reproduce your case but found other issues. We are planning the implementation of a new approach that does not rely on...
Read more >
Having troubles activating an environment · Issue #92 - GitHub
uses: conda-incubator/setup-miniconda@v2 with: environment-file: ... Yes, that action is not properly activating environments.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found