-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from dwnusbaum/robust-action-deserialization
Use lists instead of arrays for `FlowNode` actions to make deserialization more robust
- Loading branch information
Showing
26 changed files
with
473 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...BulkFlowNodeStorageTest/actionDeserializationShouldBeRobust/jobs/test0/builds/1/build.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.1" encoding="UTF-8"?> | ||
<flow-build plugin="[email protected]"> | ||
<actions/> | ||
<queueId>1</queueId> | ||
<timestamp>1714512454761</timestamp> | ||
<startTime>1714512454774</startTime> | ||
<duration>0</duration> | ||
<charset>UTF-8</charset> | ||
<keepLog>false</keepLog> | ||
<execution class="org.jenkinsci.plugins.workflow.cps.CpsFlowExecution"> | ||
<result>SUCCESS</result> | ||
<script>stage('test') { | ||
sleep 120 | ||
} | ||
</script> | ||
<loadedScripts class="map"/> | ||
<durabilityHint>PERFORMANCE_OPTIMIZED</durabilityHint> | ||
<timings class="map"> | ||
<entry> | ||
<string>flowNode</string> | ||
<long>3116376</long> | ||
</entry> | ||
<entry> | ||
<string>classLoad</string> | ||
<long>125882830</long> | ||
</entry> | ||
<entry> | ||
<string>run</string> | ||
<long>80228333</long> | ||
</entry> | ||
<entry> | ||
<string>parse</string> | ||
<long>213222375</long> | ||
</entry> | ||
</timings> | ||
<internalCalls class="sorted-set"/> | ||
<sandbox>true</sandbox> | ||
<iota>5</iota> | ||
<head>1:5</head> | ||
<start>2</start> | ||
<done>false</done> | ||
<resumeBlocked>false</resumeBlocked> | ||
</execution> | ||
<completed>false</completed> | ||
<checkouts class="hudson.util.PersistedList"/> | ||
</flow-build> |
6 changes: 6 additions & 0 deletions
6
...orage/BulkFlowNodeStorageTest/actionDeserializationShouldBeRobust/jobs/test0/builds/1/log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Started | ||
[8mha:////4Er24oWfBBiEN/Wa7id5o9M/o5Uqubl8YTcDNNanS4ZDAAAAoh+LCAAAAAAAAP9tjTEOwjAQBM8BClpKHuFItIiK1krDC0x8GCfWnbEdkooX8TX+gCESFVvtrLSa5wtWKcKBo5UdUu8otU4GP9jS5Mixv3geZcdn2TIl9igbHBs2eJyx4YwwR1SwULBGaj0nRzbDRnX6rmuvydanHMu2V1A5c4MHCFXMWcf8hSnC9jqYxPTz/BXAFEIGsfuclm8zQVqFvQAAAA==[0m[Pipeline] Start of Pipeline | ||
[8mha:////4P/BX1JLzbsCrvx6yk49claR+ti0ovHPJGy4iulK196/AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycohUghExsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jduZBmjwAAAAA==[0m[Pipeline] stage | ||
[8mha:////4JdiHwYzioWlo2ROxl2Zlo74y53NN96hzyE6iT+69Eh0AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0gA0xsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jfoP95RwAAAAA==[0m[Pipeline] { (test) | ||
[8mha:////4IbbNcCvGzKmOkFNSNkP4IRFXNaMMv4VDyWQd8mj5yT1AAAAoh+LCAAAAAAAAP9tjTEOAiEURD9rLGwtPQTbaGWsbAmNJ0AWEZb8zwLrbuWJvJp3kLiJlZNMMm+a93rDOic4UbLcG+wdZu14DKOti0+U+lugiXu6ck2YKRguzSSpM+cFJRUDS1gDKwEbgzpQdmgLbIVXD9UGhba9lFS/o4DGdQM8gYlqLiqVL8wJdvexy4Q/z18BzLEA29ce4gdpL1fxvAAAAA==[0m[Pipeline] sleep | ||
Sleeping for 2 min 0 sec |
1 change: 1 addition & 0 deletions
1
...BulkFlowNodeStorageTest/actionDeserializationShouldBeRobust/jobs/test0/builds/1/log-index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1231 5 |
106 changes: 106 additions & 0 deletions
106
...geTest/actionDeserializationShouldBeRobust/jobs/test0/builds/1/workflow/flowNodeStore.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.1" encoding="UTF-8"?> | ||
<linked-hash-map> | ||
<entry> | ||
<string>2</string> | ||
<Tag> | ||
<node class="org.jenkinsci.plugins.workflow.graph.FlowStartNode" plugin="[email protected]_"> | ||
<parentIds/> | ||
<id>2</id> | ||
</node> | ||
<actions> | ||
<org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<value>42</value> | ||
</org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<wf.a.TimingAction plugin="[email protected]_"> | ||
<startTime>1714512455074</startTime> | ||
</wf.a.TimingAction> | ||
</actions> | ||
</Tag> | ||
</entry> | ||
<entry> | ||
<string>3</string> | ||
<Tag> | ||
<node class="cps.n.StepStartNode" plugin="[email protected]_3a_6988277b_2"> | ||
<parentIds> | ||
<string>2</string> | ||
</parentIds> | ||
<id>3</id> | ||
<descriptorId>org.jenkinsci.plugins.workflow.support.steps.StageStep</descriptorId> | ||
</node> | ||
<actions> | ||
<s.a.LogStorageAction/> | ||
<cps.a.ArgumentsActionImpl plugin="[email protected]_3a_6988277b_2"> | ||
<arguments> | ||
<entry> | ||
<string>name</string> | ||
<string>test</string> | ||
</entry> | ||
</arguments> | ||
<sensitiveVariables/> | ||
<isUnmodifiedBySanitization>true</isUnmodifiedBySanitization> | ||
</cps.a.ArgumentsActionImpl> | ||
<wf.a.TimingAction plugin="[email protected]_"> | ||
<startTime>1714512455144</startTime> | ||
</wf.a.TimingAction> | ||
<org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<value>42</value> | ||
</org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
</actions> | ||
</Tag> | ||
</entry> | ||
<entry> | ||
<string>4</string> | ||
<Tag> | ||
<node class="cps.n.StepStartNode" plugin="[email protected]_3a_6988277b_2"> | ||
<parentIds> | ||
<string>3</string> | ||
</parentIds> | ||
<id>4</id> | ||
<descriptorId>org.jenkinsci.plugins.workflow.support.steps.StageStep</descriptorId> | ||
</node> | ||
<actions> | ||
<wf.a.BodyInvocationAction plugin="[email protected]_"/> | ||
<wf.a.LabelAction plugin="[email protected]_"> | ||
<displayName>test</displayName> | ||
</wf.a.LabelAction> | ||
<wf.a.TimingAction plugin="[email protected]_"> | ||
<startTime>1714512455148</startTime> | ||
</wf.a.TimingAction> | ||
<org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<value>42</value> | ||
</org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
</actions> | ||
</Tag> | ||
</entry> | ||
<entry> | ||
<string>5</string> | ||
<Tag> | ||
<node class="cps.n.StepAtomNode" plugin="[email protected]_3a_6988277b_2"> | ||
<parentIds> | ||
<string>4</string> | ||
</parentIds> | ||
<id>5</id> | ||
<descriptorId>org.jenkinsci.plugins.workflow.steps.SleepStep</descriptorId> | ||
</node> | ||
<actions> | ||
<cps.a.ArgumentsActionImpl plugin="[email protected]_3a_6988277b_2"> | ||
<arguments> | ||
<entry> | ||
<string>time</string> | ||
<long>120</long> | ||
</entry> | ||
</arguments> | ||
<sensitiveVariables/> | ||
<isUnmodifiedBySanitization>true</isUnmodifiedBySanitization> | ||
</cps.a.ArgumentsActionImpl> | ||
<wf.a.TimingAction plugin="[email protected]_"> | ||
<startTime>1714512455155</startTime> | ||
</wf.a.TimingAction> | ||
<org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<value>42</value> | ||
</org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorageTest_-MyAction> | ||
<s.a.LogStorageAction/> | ||
</actions> | ||
</Tag> | ||
</entry> | ||
</linked-hash-map> |
Empty file.
1 change: 1 addition & 0 deletions
1
.../BulkFlowNodeStorageTest/actionDeserializationShouldBeRobust/jobs/test0/builds/permalinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lastSuccessfulBuild -1 |
Oops, something went wrong.