Skip to content

Fails to download Proxy Verifier #9045

Closed

Description

@maskit

If you get a snapshot of the repo as a zip file or one of official releases, autest.sh fails to download proxy verifier, and the failure doesn't stop autest.sh.

$ curl -LO https://github.com/apache/trafficserver/archive/refs/heads/master.zip
$ unzip master.zip
$ cd trafficserver-master/tests/
$ ./autest.sh
fatal: not a git repository (or any of the parent directories): .git
cat: /tests/proxy-verifier-version.txt: No such file or directory
mkdir: /tests: Read-only file system
Warning: Failed to open the file /tests/proxy-verifier/proxy-verifier-.tar.gz:                                                                                                            
Warning: No such file or directory
#################################################################################################################################################################################### 100.0%curl: (23) Failure writing output to destination

./prepare_proxy_verifier.sh: line 56: /tests/proxy-verifier/sha1: No such file or directory
shasum: /tests/proxy-verifier/sha1: No such file or directory
SHA1 mismatch for downloaded proxy-verifier-.tar.gz.
Python 3.6 or newer detected!
python3-dev/devel detected!
pipenv detected!
Installing a new virtual environment via pipenv
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project...
{snip}

Activity

  1. maskit commented on Aug 18, 2022

    @maskit
    MemberAuthor

    I could set $ROOT beforehand to avoid the issue, but I don't understand why the path for "proxy-verifier-version.txt" is checked like this. Is there a case that we want to have "prepare_proxy_verifier.sh" and "proxy-verifier-version.txt" in different directories?

  2. bneradt commented on Aug 19, 2022

    @bneradt
    Contributor

    This is a good observation. I've never tried to work with this from a non-git directory. When I wrote prepare_proxy_verifier.sh, I borrowed its logic from our pre-commit hooks which is why it is written as it is. I'll work on making the prepare_proxy_verifier.sh logic more generic.

  3. self-assigned this
    on Aug 19, 2022
  4. added a commit that references this issue on Aug 19, 2022
    c6d88c3
  5. added a commit that references this issue on Aug 22, 2022
    a40bc0f
  6. added a commit that references this issue on Aug 23, 2022
    2bb3f65
  7. added a commit that references this issue on Aug 23, 2022
    5d43828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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