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

ci: check plugin order #804

Merged
merged 4 commits into from
Dec 2, 2024
Merged

ci: check plugin order #804

merged 4 commits into from
Dec 2, 2024

Conversation

spacewander
Copy link
Member

No description provided.

@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.75%. Comparing base (5affbd8) to head (653c2f5).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #804      +/-   ##
==========================================
- Coverage   87.07%   85.75%   -1.33%     
==========================================
  Files         145      141       -4     
  Lines        8715     8341     -374     
==========================================
- Hits         7589     7153     -436     
- Misses        877      933      +56     
- Partials      249      255       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
@spacewander spacewander marked this pull request as ready for review November 21, 2024 13:06
Comment on lines 18 to 21
# TODO: This file only show the plugin's registried order. We should consider a fact that
# some plugins may not be executed in the DecodeHeaders phase. For example, a plugin called when
# processing response which is registried in an early place is executed after a plugin called
# when processing request which is registried in a later place.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the version I modified. WDYT?

This file only shows the plugin's registered order. Some plugins may not be executed in the DecodeHeaders phase. 

For example, the plugin called when processing the response but is registered earlier is executed behind the plugin invoked when processing the request but is registered later.

Copy link
Member Author

Choose a reason for hiding this comment

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

@zll600
Updated. Thank you!

api/pkg/plugins/plugins_test.go Show resolved Hide resolved
spacewander and others added 3 commits November 27, 2024 10:41
Co-authored-by: zll600 <71714656+zll600@users.noreply.github.com>
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
@spacewander spacewander merged commit 1ee7a36 into main Dec 2, 2024
19 checks passed
@spacewander spacewander deleted the order_plugin branch December 2, 2024 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants