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

Add TO Go remap.config#3688

Merged
ocket8888 merged 8 commits intoapache:masterfrom
rob05c:to-go-atsconfig-remap
Oct 2, 2019
Merged

Add TO Go remap.config#3688
ocket8888 merged 8 commits intoapache:masterfrom
rob05c:to-go-atsconfig-remap

Conversation

@rob05c
Copy link
Copy Markdown
Member

@rob05c rob05c commented Jun 19, 2019

What does this PR (Pull Request) do?

Based on #3762 - highly recommend merging that first.

Converts remap.config to Traffic Ops Golang.

As with the other ATS configs, the code isn't ideal in some places, because it transliterates the Perl as closely as possible, for safety. I'm hoping we can convert these endpoints in two phases, transliterating, then refactoring, to be as safe as possible.

I've parity tested, against the old Perl for every production edge and mid we have, and they all diff identical (after sorting).

No documentation change, doesn't change the interface.

  • This PR is not related to any other issue

Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Request the remap.config endpoint for a server, request it from an older TO, make sure they're identical after sorting (for ATS, map lines can be in any order, and on each line, plugin directives can be in any order as long as the associated pparam directives following them are the same).

If this is a bug fix, what versions of Traffic Ops are affected?

Not a bug fix.

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

@rob05c rob05c added new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops WIP "Work-in-Progress" - do not merge! (use 'draft' pull requests from now on) cache-config Cache config generation labels Jun 19, 2019
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jun 19, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3877/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 432a02c to 8c609e6 Compare July 1, 2019 21:27
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 1, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3924/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 8c609e6 to 4feaeaf Compare July 1, 2019 23:07
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 2, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3925/
Test FAILed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 4feaeaf to a9060f1 Compare July 3, 2019 00:40
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 3, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3935/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from a9060f1 to 2ead12a Compare July 3, 2019 14:57
@rob05c rob05c removed the WIP "Work-in-Progress" - do not merge! (use 'draft' pull requests from now on) label Jul 3, 2019
@rob05c rob05c marked this pull request as ready for review July 3, 2019 15:41
@rob05c rob05c force-pushed the to-go-atsconfig-remap branch 2 times, most recently from 366cb53 to 516293c Compare July 3, 2019 15:50
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 3, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3936/
Test FAILed.

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 3, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3937/
Test FAILed.

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 3, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3938/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 516293c to cf35a4c Compare July 18, 2019 16:06
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jul 18, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3986/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from cf35a4c to cc778a2 Compare August 6, 2019 15:45
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Aug 6, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4105/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch 4 times, most recently from 2aa3fe0 to 0b72e5f Compare August 27, 2019 15:46
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Aug 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4180/
Test FAILed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Aug 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4181/
Test FAILed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 18, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4279/
Test PASSed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch 2 times, most recently from c007818 to 21fd6a9 Compare September 26, 2019 21:02
Adds error logging whenever the config gen inserts multiple cacheurl
or cachekey plugins on the same line.

This isn't supported in ATS, and will usually do the wrong thing.
But, we've always generated config like this, so for now, this
doesn't change the config gen, but it logs the error
@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 19b8d39 to 406f040 Compare September 26, 2019 21:35
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4320/
Test PASSed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4321/
Test FAILed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4323/
Test FAILed.

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 406f040 to d099a22 Compare September 26, 2019 21:47
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4324/
Test FAILed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4325/
Test PASSed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4344/
Test PASSed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4345/
Test PASSed.

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Sep 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4346/
Test PASSed.

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

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

I feel like there could be a lot more GoDoc comments in here, but then we don't have a style guide that enforces it (yet).

@rob05c rob05c force-pushed the to-go-atsconfig-remap branch from 171aeee to e71ec72 Compare October 1, 2019 21:26
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 1, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4375/

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 2, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4376/

@ocket8888 ocket8888 merged commit efef336 into apache:master Oct 2, 2019
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 2, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4377/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cache-config Cache config generation new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants