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

TR Ultimate Test Harness GHA workflow#6588

Merged
ocket8888 merged 44 commits intoapache:masterfrom
zrhoffman:truth-gha
Apr 12, 2022
Merged

TR Ultimate Test Harness GHA workflow#6588
ocket8888 merged 44 commits intoapache:masterfrom
zrhoffman:truth-gha

Conversation

@zrhoffman
Copy link
Member

This PR adds a GitHub Actions workflow for the Traffic Router Ultimate Test Harness, which runs when Traffic Router-related files are modified.


Which Traffic Control components are affected by this PR?

  • Dev CDN in a Box
  • Automation - GitHub Actions

What is the best way to verify this PR?

Check the GHA result

PR submission checklist

@zrhoffman zrhoffman added automation related to automated testing/deployment/packaging etc. dev-ciab Related to CDN in a Box for Developers labels Feb 28, 2022
@zrhoffman zrhoffman force-pushed the truth-gha branch 2 times, most recently from a179c1d to f770fb7 Compare February 28, 2022 16:28
@zrhoffman zrhoffman changed the title TR Utlimate Test Harness GHA workflow TR Ultimate Test Harness GHA workflow Feb 28, 2022
@zrhoffman zrhoffman marked this pull request as draft February 28, 2022 20:33
@zrhoffman
Copy link
Member Author

Drafting because it doesn't start up and takes awhile to build

@zrhoffman
Copy link
Member Author

zrhoffman commented Feb 28, 2022

Rebased to remove cb4b4247c8, as it is already covered by #6591

@ocket8888 ocket8888 self-assigned this Mar 3, 2022
@zrhoffman zrhoffman marked this pull request as ready for review March 17, 2022 19:51
@zrhoffman zrhoffman added the tests related to tests and/or testing infrastructure label Mar 28, 2022
@zrhoffman
Copy link
Member Author

zrhoffman commented Mar 30, 2022

#6588 is rebased onto #6699 for now
Edit: Removed #6699 workflow in fab34c4a3c so that #6588 does not build it

@zrhoffman zrhoffman force-pushed the truth-gha branch 3 times, most recently from dc32b06 to bc105cb Compare March 30, 2022 20:57
@zrhoffman
Copy link
Member Author

#6588 is rebased onto #6699 for now

Rebased onto master again now that #6699 is merged

@zrhoffman zrhoffman force-pushed the truth-gha branch 2 times, most recently from 0b7befa to f20c947 Compare April 7, 2022 23:21
@zrhoffman
Copy link
Member Author

Rebased onto #6729, since it includes a TR fix

@zrhoffman zrhoffman force-pushed the truth-gha branch 2 times, most recently from 672439e to 919f4ec Compare April 7, 2022 23:57
@zrhoffman
Copy link
Member Author

The GHA passes now, #6588 is ready for rereview

@zrhoffman
Copy link
Member Author

Rebased onto master now that #6729 is merged

@zrhoffman
Copy link
Member Author

Rebased to fix a conflict with #6727 now that #6588 modifies seed.psql

@zrhoffman
Copy link
Member Author

Moving the volume like that is going to necessitate updating file-protocol paths in the snapshot/Parameters

Updated file-protocol paths in the snapshot/parameters in ab21073

@zrhoffman zrhoffman requested a review from ocket8888 April 12, 2022 13:07
@ocket8888 ocket8888 merged commit b63bd96 into apache:master Apr 12, 2022
@zrhoffman zrhoffman deleted the truth-gha branch April 12, 2022 18:01
@ocket8888 ocket8888 mentioned this pull request Jun 8, 2022
4 tasks
zrhoffman added a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
* compose file version 3.8

* Enable IPv6

* TR Ultimate Test Harness GHA workflow

* Set TO API version in API_VERSION

* Use nonzero exit code on failure

* Make API_VERSION read-only

* No pull

* Build with buildkit

* Store logs and fail if Traffic Ops does not start within 10 minutes

* Vendor go dependencies

* Build docker-compose services in a separate step

* Validate service IP addresses

* Write logs in a separate step

* Cache local Maven repository

* Cache Node modules

* Use user ID to chown

* Use the GHA runner UID for trafficrouter image user

* Do not run tests until the Delivery Service is available

* Revert "Make API_VERSION read-only"

* Increase root logger threshold to WARN

* Reuse to-access.sh functions for requests to Traffic Ops

* Revert "Set TO API version in API_VERSION"

* Wait for Traffic Monitor's snapshot before waiting for the Delivery Service

* CDN in a Box: Quote data strings

* Increase timeouts, just in case

* Adjust thresholds for GitHub Actions performance

* Fetch environment variables in advance

* Remove commented lines

* Start the Dev CDN in a Box in a separate step

* Set interface IP addresses in a separate step

* Wait for Traffic Monitor to serve a snapshot in a separate step

* Wait for Delivery Service to become available in a separate step

* Compile the tests in a separate step

* Run Traffic Router Ultimate Test Harness directly from workflow file

* Wait until Traffic Ops is ready to accept requests in separate step

* Run HTTP and DNS tests in separate steps

* Change flag to --delivery-service

* Print usage message from here document

* Print flag descriptions on next line

* One environment variable or port per line

* Set UID and GID from file ownership at runtime

* /root/go -> /go in parameters

* Only indent once

* Remove unused USER and UID exports
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. dev-ciab Related to CDN in a Box for Developers tests related to tests and/or testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants