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

move scene check cycle #2309

Merged
merged 7 commits into from
Oct 11, 2021

Conversation

kakj-go
Copy link
Contributor

@kakj-go kakj-go commented Oct 11, 2021

What type of this PR

bug

What this PR does / why we need it:

When the application type scene is moved, it is not checked whether there is a cyclic application. If the cyclic dependency is not detected, it will cause an infinite loop during execution.

Test case:

image

@kakj-go kakj-go requested a review from sfwn October 11, 2021 08:53
@kakj-go kakj-go added bugfix dop devops plaoform labels Oct 11, 2021
@codecov
Copy link

codecov bot commented Oct 11, 2021

Codecov Report

Merging #2309 (6fb3ae8) into master (2db8837) will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2309      +/-   ##
==========================================
- Coverage   15.94%   15.84%   -0.10%     
==========================================
  Files        1182     1192      +10     
  Lines      116929   117717     +788     
==========================================
+ Hits        18641    18655      +14     
- Misses      96362    97148     +786     
+ Partials     1926     1914      -12     
Impacted Files Coverage Δ
modules/cmp/metrics/metrics.go 24.79% <0.00%> (-10.13%) ⬇️
pkg/mock/mock.go 40.40% <0.00%> (-5.06%) ⬇️
modules/cmp/cache/cache.go 67.11% <0.00%> (-2.92%) ⬇️
modules/msp/menu/menu.service.go 38.88% <0.00%> (-1.00%) ⬇️
...mponents/cmp-dashboard-nodes/common/table/table.go 15.17% <0.00%> (-0.86%) ⬇️
...omponents/cmp-dashboard-nodes/nodeFilter/render.go 34.61% <0.00%> (-0.34%) ⬇️
...dules/core/monitor/alert/alert-apis/adapt/alert.go 13.53% <0.00%> (-0.33%) ⬇️
modules/cmp/steve/schema.go 0.00% <0.00%> (ø)
modules/cmp/steve/server.go 0.00% <0.00%> (ø)
modules/extensions/loghub/index/query/routes.go 0.00% <0.00%> (ø)
... and 14 more

@sfwn
Copy link
Member

sfwn commented Oct 11, 2021

/approve

@erda-bot erda-bot merged commit f88effe into erda-project:master Oct 11, 2021
@sfwn
Copy link
Member

sfwn commented Oct 11, 2021

/cherry-pick release/1.3

erda-bot pushed a commit to erda-bot/erda that referenced this pull request Oct 11, 2021
* Automatic test configuration doc output reference (erda-project#2195)

* When the scene refers to the scene set, add the judgment of whether the reference is circular
erda-bot added a commit that referenced this pull request Oct 11, 2021
* Automatic test configuration doc output reference (#2195)

* When the scene refers to the scene set, add the judgment of whether the reference is circular

Co-authored-by: kakj <18579115540@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants