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

Failed to detect version of Xtensa Rust, reinstalling it #29

Open
rowanfr opened this issue Dec 5, 2024 · 5 comments
Open

Failed to detect version of Xtensa Rust, reinstalling it #29

rowanfr opened this issue Dec 5, 2024 · 5 comments

Comments

@rowanfr
Copy link

rowanfr commented Dec 5, 2024

Whenever I try to use the default action from the ESP no-std template with act I keep running into the repeated issue:

| [info]: Installing 'rust' component for Xtensa Rust toolchain
| [info]: Uninstalling Xtensa Rust toolchain
| [warn]: Installation for 'Xtensa Rust' failed, retrying
| [warn]: Failed to detect version of Xtensa Rust, reinstalling it
| [info]: Uninstalling Xtensa Rust toolchain
| [info]: Installing Xtensa Rust 1.82.0.3 toolchain

This is even after I specify a version in the YAML file such as version: "1.82.0.3" or earlier or leave it undefined. Any ideas on what's causing this or how to solve it?

@rowanfr
Copy link
Author

rowanfr commented Dec 5, 2024

This seems to be related to the code snippet here:
https://github.com/esp-rs/espup/blob/c0801b9f0acf5e1355b9400223eed45b598f81fa/src/toolchain/rust.rs#L197-L214

where the rustc version is not succeeding for whatever reason

@rowanfr
Copy link
Author

rowanfr commented Dec 5, 2024

For further clarification as well the YAML job file is:

name: Continuous Integration

on:
  push:
    paths-ignore:
      - "**/README.md"
  pull_request:
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  rust-checks:
    name: Rust Checks
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        action:
          - command: build
            args: --release
          - command: fmt
            args: --all -- --check --color always
          - command: clippy
            args: --all-features --workspace -- -D warnings
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Setup Rust
        uses: esp-rs/[email protected]
        with:
          default: true
          buildtargets: esp32
          ldproxy: false
      - name: Enable caching
        uses: Swatinem/rust-cache@v2
      - name: Run command
        run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}

and the used command is act -s GITHUB_TOKEN=private_token

@SergioGasquez
Copy link
Member

Do you have gh installed? I always use act -s GITHUB_TOKEN="$(gh auth token)" as recommended in https://nektosact.com/usage/index.html?#github_token and works fine for me. I tried reproducing your issue with no luck.

@rowanfr
Copy link
Author

rowanfr commented Dec 10, 2024

act -s GITHUB_TOKEN="$(gh auth token)" yields the same result where I get errors at:

[Continuous Integration/Rust Checks-3]   | [warn]: Installation for 'Xtensa Rust' failed, retrying
[Continuous Integration/Rust Checks-3]   | [warn]: Failed to detect version of Xtensa Rust, reinstalling it

The full log is attached with associated external warnings:

INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock' 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /Users/rowanfr/Documents/git/esp-aranya): remote not found 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /Users/rowanfr/Documents/git/esp-aranya): remote not found 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /Users/rowanfr/Documents/git/esp-aranya): remote not found 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /Users/rowanfr/Documents/git/esp-aranya): remote not found 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /Users/rowanfr/Documents/git/esp-aranya): remote not found 
Error: Job 'Rust Checks' failed

output_log.txt

@SergioGasquez
Copy link
Member

Are you behind a limited network?? Have you tried running the workflow in GH Actions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants