Skip to content

Warnings on VSM if pipeline built with incompatible revisions#2136

Merged
jyotisingh merged 1 commit intogocd:masterfrom
maheshp:warnings_on_vsm
May 10, 2016
Merged

Warnings on VSM if pipeline built with incompatible revisions#2136
jyotisingh merged 1 commit intogocd:masterfrom
maheshp:warnings_on_vsm

Conversation

@maheshp
Copy link
Contributor

@maheshp maheshp commented Apr 26, 2016

  • Partial fix for Weak Fan-In Issues #1924
  • VSM for a pipeline shows warning message if built with incompatible revisions
  • SCM Nodes list MaterialRevisions instead modifications.

@srinivasupadhya
Copy link
Contributor

srinivasupadhya commented Apr 26, 2016

Will this work in the below case:

    /-> p1 -- \
git            -> p3 -> p4
  \ \-> p2 -- /      /
   \----------------/

current pipeline is p3. p1-1 built off of g1, p2-1 built off of g1. p4-1 built off of g2.

@jyotisingh
Copy link
Contributor

@srinivasupadhya - what's the build cause for P3 here? Did you mean to say that current pipeline was p4? If current pipeline is p3, then the build-cause for p4 will not affect P3 in anyway!

@srinivasupadhya
Copy link
Contributor

srinivasupadhya commented Apr 26, 2016

@jyotisingh yes. it wont. but if im not wrong we will show the warning on p3 since material revisions for git will be g1 & g2.
also, p3 is current & build cause is p1-1 & p2-1.

@jyotisingh
Copy link
Contributor

if the current pipeline is p3, then g1 will be the only revision for git. P4 being a downstream, will not cause revisions to get added to the scm nodes, ie. git in this case. Thats how it has been all this while and I do not see any of that changed in this PR.
Is there some code in specific that you think could potentially cause issue? Can you point it out.

@srinivasupadhya
Copy link
Contributor

ok. i forgot we populate SCM data only for upstream pipelines. ignore 👍

@maheshp maheshp force-pushed the warnings_on_vsm branch 2 times, most recently from de13ec9 to fe40fd5 Compare April 26, 2016 10:10
@zabil zabil added this to the Release 16.5 milestone Apr 26, 2016
@arvindsv
Copy link
Member

ok. i forgot we populate SCM data only for upstream pipelines. ignore 👍

shocked :)

@arvindsv
Copy link
Member

@maheshp: Adding a little screenshot to this might help everyone get an idea about how it looks.

@arvindsv
Copy link
Member

Also, this is related to #1924. Commenting so that GitHub links the two together.

@maheshp
Copy link
Contributor Author

maheshp commented Apr 27, 2016

screen shot 2016-04-27 at 9 58 29 am

If the current pipeline is built from incompatible revisions a warning is shown and the SCM node lists all the revisions responsible for the build.

@jyotisingh
Copy link
Contributor

@FredrikWendt - thought you might be interested in this

@FredrikWendt
Copy link

YAY! \o/

I assume this only looks at SCM revisions, and not the case where two different run instances of any pipeline?

    /-> p1 -- \
p0            -> p3 -> p4
  \ \-> p2 -- /      /
   \----------------/

If p1 was run with p0:1 and p2 with p0:2, would p3 be red flagged?

@maheshp
Copy link
Contributor Author

maheshp commented Apr 28, 2016

@FredrikWendt

If p1 was run with p0:1 and p2 with p0:2, would p3 be red flagged?

Yes p3 would be red flagged if p3 is triggered with p1(p0:1) and p2(p0:2) assuming p0:1 and p0:2 SCM revisions differ

@maheshp
Copy link
Contributor Author

maheshp commented Apr 28, 2016

@FredrikWendt

I assume this only looks at SCM revisions, and not the case where two different run instances of any pipeline?

Adding some context about the implementation.

  • The build cause for any pipeline run boils down to a set of SCM modifications(revisions), this can be represented as MaterialRevision(basically a Material with one or more modifications).
  • While building a VSM for a pipeline we traverse through all the upstream pipelines and list all the MaterialRevisions responsible for the run. If the MaterialRevisions differ we flag the pipeline and list the MaterialRevisions as part of the SCM node.
  • In case of manual trigger there could be instances where the MaterialRevisions differ.

@maheshp maheshp force-pushed the warnings_on_vsm branch from fe40fd5 to baffaf4 Compare May 10, 2016 04:31
* Partial fix for  gocd#1924
* VSM for a pipeline shows warning message if built with incompatible revisions
* SCM Nodes list MaterialRevisions instead modifications.
@maheshp maheshp force-pushed the warnings_on_vsm branch from baffaf4 to 9df832f Compare May 10, 2016 06:17
@jyotisingh jyotisingh merged commit d067473 into gocd:master May 10, 2016
@maheshp maheshp deleted the warnings_on_vsm branch May 10, 2016 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants