higress
higress copied to clipboard
[frontend-gray] 重构业务逻辑,对于微前端和多版本支持更加友好
trafficstars
Ⅰ. Describe what this PR did
重构业务逻辑,重点支持微前端的能力,按照比例灰度,以及全链路灰度串联
Ⅱ. Does this pull request fix one issue?
- 设置一个随机的客户端的cookie 黏贴,并且通过hash,实现按照比例灰度
- 按照比例灰度的key值通过
uniqueGrayTag可以自定义 - skippedPaths 替换 skippedPathPrefixes ,支持glob语法
- indexPaths 替换 includePathPrefixes ,支持glob语法
- cookie存储过期时间默认为1年,默认不需要过期
请先解决冲突。
请先解决冲突。
已解决
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 43.73%. Comparing base (
ef31e09) to head (cb77971). Report is 429 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #2011 +/- ##
==========================================
+ Coverage 35.91% 43.73% +7.82%
==========================================
Files 69 79 +10
Lines 11576 12728 +1152
==========================================
+ Hits 4157 5567 +1410
+ Misses 7104 6815 -289
- Partials 315 346 +31
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.