If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Unable to build Loop-Server loadtest due to error with requests-hawk

VERIFIED FIXED

Status

Hello (Loop)
Server
P1
major
VERIFIED FIXED
3 years ago
3 years ago

People

(Reporter: jbonacci, Assigned: tarek)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa+])

(Reporter)

Description

3 years ago
Git clone of Loop-Server master and an attempt to build the load tests results in an error against requests-hawk:

git clone https://github.com/mozilla-services/loop-server.git
cd loop-server
npm install
cd loadtests
make build

This is what I see:
...etc...
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future ./venv/bin/pip install requests-hawk
Downloading/unpacking requests-hawk
  Downloading requests-hawk-0.1.0.tar.gz
  Running setup.py egg_info for package requests-hawk
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/James/loop-server/loadtests/venv/build/requests-hawk/setup.py", line 9, in <module>
        with open(os.path.join(here, 'CHANGES.txt')) as f:
    IOError: [Errno 2] No such file or directory: '/Users/James/loop-server/loadtests/venv/build/requests-hawk/CHANGES.txt'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/James/loop-server/loadtests/venv/build/requests-hawk/setup.py", line 9, in <module>

    with open(os.path.join(here, 'CHANGES.txt')) as f:

IOError: [Errno 2] No such file or directory: '/Users/James/loop-server/loadtests/venv/build/requests-hawk/CHANGES.txt'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/James/loop-server/loadtests/venv/build/requests-hawk
Storing complete log in /Users/James/.pip/pip.log
make: *** [build] Error 1






This is a blocker for Loop-Server load testing against the third-part live server...
(Reporter)

Updated

3 years ago
Priority: -- → P1
Summary: Unable to build Loop-Server due to error with requests-hawk → Unable to build Loop-Server loadtest due to error with requests-hawk
Whiteboard: [qa+]
(Reporter)

Comment 1

3 years ago
This is what I have: /Users/James/loop-server/loadtests/venv/build
-rw-r--r--  1 James  staff  185 Jul 17 11:09 pip-delete-this-directory.txt
drwxr-xr-x  9 James  staff  306 Jul 17 11:09 requests-hawk

And here:
/Users/James/loop-server/loadtests/venv/build/requests-hawk
-rw-r--r--  1 James  staff  3300 Jul 17 11:09 PKG-INFO
-rw-r--r--  1 James  staff  2244 Jul 17 11:09 README.rst
drwxr-xr-x  2 James  staff    68 Jul 17 11:09 pip-egg-info
drwxr-xr-x  4 James  staff   136 Jul 17 11:09 requests_hawk
drwxr-xr-x  9 James  staff   306 Jul 17 11:09 requests_hawk.egg-info
-rw-r--r--  1 James  staff    59 Jul 17 11:09 setup.cfg
-rw-r--r--  1 James  staff  1160 Jul 17 11:09 setup.py


And from loadtests:
$ find . -name Changes.txt -print
returns nothing
(Assignee)

Updated

3 years ago
Assignee: nobody → tarek
(Assignee)

Comment 2

3 years ago
please update loop-server master and try again
Flags: needinfo?(jbonacci)
(Reporter)

Comment 3

3 years ago
git clone loop-server
cd loop-server
npm install
cd loadtests
make build

Same error: IOError: [Errno 2] No such file or directory: '/Users/James/loop-server/loadtests/venv/build/requests-hawk/CHANGES.txt'

loadtests$ git branch -a
* master
Status: NEW → ASSIGNED
(Reporter)

Updated

3 years ago
Flags: needinfo?(jbonacci)
(Reporter)

Comment 4

3 years ago
OK, the build works now and I did a make test to verify.
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Reporter)

Updated

3 years ago
Status: RESOLVED → VERIFIED
I released the new version of requests-hawk (with the right manifest file) and changed loop-server so that it uses it (https://github.com/mozilla-services/loop-server/commit/6c99ff1df7d5b20d8abb6f9d643a4876cf848430)
:tarek can you remove requests-hawk2 packages from PYPI?
Flags: needinfo?(tarek)
(Assignee)

Comment 7

3 years ago
removed!
Flags: needinfo?(tarek)
(Reporter)

Comment 8

3 years ago
Just reverified the unit tests after the removal of the requests-hawk2 packages.
You need to log in before you can comment on or make changes to this bug.