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

mutation_test.sh fails due to a missing file or directory #19821

Closed
jdm opened this issue Jan 19, 2018 · 1 comment
Closed

mutation_test.sh fails due to a missing file or directory #19821

jdm opened this issue Jan 19, 2018 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented Jan 19, 2018

RUSTFLAGS= bash ./etc/ci/mutation_test.sh
 in dir /home/servo/buildbot/slave/linux-rel-nogate/build (timeout 1200 secs)
 watching logfiles {}
 argv: ['RUSTFLAGS=', 'bash', './etc/ci/mutation_test.sh']
 environment:
  BUILD_MACHINE=<buildbot.process.properties.Property instance at 0x7f7207b10dd0>
  CARGO_HOME=/home/servo/.cargo
  CARGO_INCREMENTAL=0
  CCACHE=/usr/bin/ccache
  DISPLAY=:0
  HOME=/home/servo
  PATH=/home/servo/.cargo/bin:/home/servo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
  PWD=/home/servo/buildbot/slave/linux-rel-nogate/build
  RUSTFLAGS=-Dwarnings
  RUST_BACKTRACE=1
  SCCACHE_IDLE_TIMEOUT=0
  SERVO_CACHE_DIR=/home/servo/.servo
  SHELL=/bin/bash
  TERM=linux
  UPSTART_INSTANCE=
  UPSTART_JOB=buildbot-slave
 using PTY: False
Upon execvpe RUSTFLAGS= ['RUSTFLAGS=', 'bash', './etc/ci/mutation_test.sh'] in environment id 140003549946216
:Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/process.py", line 430, in _fork
    environment)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/process.py", line 508, in _execChild
    os.execvpe(executable, args, environment)
  File "/usr/lib/python2.7/os.py", line 353, in execvpe
    _execvpe(file, args, env)
  File "/usr/lib/python2.7/os.py", line 380, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
program finished with exit code 1
elapsedTime=0.005613

It doesn't like the new invocation that resulted from the changes in #19806.

@highfive
Copy link

@highfive highfive commented Jan 19, 2018

bors-servo added a commit that referenced this issue Jan 27, 2018
Fix mutation test in CI by passing env vars correctly

Originally, buildbot would try to directly execute `RUSTFLAGS=` as a binary
since it was the first token in the command string, which won't work.

Fix this by using the `env` command to set the environment variables,
as there is currently no support for setting per-step environment variables
in the `buildbot_steps.yml` file.

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes should fix #19821 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they change the CI configuration

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19884)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 28, 2018
Fix mutation test in CI by passing env vars correctly

Originally, buildbot would try to directly execute `RUSTFLAGS=` as a binary
since it was the first token in the command string, which won't work.

Fix this by using the `env` command to set the environment variables,
as there is currently no support for setting per-step environment variables
in the `buildbot_steps.yml` file.

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes should fix #19821 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they change the CI configuration

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19884)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.