Skip to content

The linting task is failing with invalid literal for int() with base 10: '0-alpha' #7353

Closed

Description

@suhaibmujahid
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/bugbug/.venv/bin/python', '-mnodeenv', '--prebuilt', '--clean-src', '/root/.cache/pre-commit/repozx33a7qi/node_env-default')
return code: 1
stdout:
    {'x86': False, 'risc': False, 'lts': False}
stderr:
     * Install prebuilt node (27.0.0-alpha.0.0.0) 
    Traceback (most recent call last):
      File "<frozen runpy>", line 203, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 1566, in <module>
        main()
        ~~~~^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 1148, in main
        create_environment(env_dir, args)
        ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 1002, in create_environment
        install_node(env_dir, src_dir, args)
        ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 763, in install_node
        install_node_wrapped(env_dir, src_dir, args)
        ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 779, in install_node_wrapped
        node_url = get_node_bin_url(args.node)
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 579, in get_node_bin_url
        return get_root_url(version) + filename
               ~~~~~~~~~~~~^^^^^^^^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 535, in get_root_url
        if parse_version(version_str) > (0, 5):
           ~~~~~~~~~~~~~^^^^^^^^^^^^^
      File "/bugbug/.venv/lib/python3.14/site-packages/nodeenv.py", line 182, in parse_version
        return tuple(map(int, v))
    ValueError: invalid literal for int() with base 10: '0-alpha'
Check the log at /root/.cache/pre-commit/pre-commit.log
[taskcluster 2026-10-29T19:54:53.764Z]                        Exit Code: 3

Activity

  1. updated Priority Urgent and Effort Medium on Oct 30, 2026
  2. changed the title [-]The linting task is failing on PRs with `invalid literal for int() with base 10: '0-alpha'`[/-] [+]The linting task is failing with `invalid literal for int() with base 10: '0-alpha'`[/+] on Oct 30, 2026
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

    Fields

    Priority

    Urgent

    Effort

    Medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions