Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Docker go tests runners: Unwrap commands from bash shell to inherit environment variables#7281

Merged
ocket8888 merged 2 commits intoapache:masterfrom
zrhoffman:go-path
Jan 11, 2023
Merged

Docker go tests runners: Unwrap commands from bash shell to inherit environment variables#7281
ocket8888 merged 2 commits intoapache:masterfrom
zrhoffman:go-path

Conversation

@zrhoffman
Copy link
Member

@zrhoffman zrhoffman commented Jan 10, 2023

This PR fixes an issue running the TO or TM unit tests, where go and GOPATH/bin are not in the PATH.


Which Traffic Control components are affected by this PR?

  • Automation - Docker go test runners

What is the best way to verify this PR?

Try to build and run these:

  • traffic_monitor/tests/Dockerfile-golangtest
  • traffic_ops/app/bin/tests/Dockerfile-golangtest

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

@zrhoffman zrhoffman added Traffic Ops related to Traffic Ops Traffic Monitor related to Traffic Monitor tests related to tests and/or testing infrastructure automation related to automated testing/deployment/packaging etc. labels Jan 10, 2023
Copy link
Contributor

@ericholguin ericholguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran both tests and both built and got passing results

@zrhoffman zrhoffman requested a review from ocket8888 January 11, 2023 16:10
@ocket8888 ocket8888 merged commit 1cb5ae4 into apache:master Jan 11, 2023
@zrhoffman zrhoffman deleted the go-path branch January 11, 2023 18:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automation related to automated testing/deployment/packaging etc. tests related to tests and/or testing infrastructure Traffic Monitor related to Traffic Monitor Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants