Commit 8427681
committed
Summarize package statistics, not jobs
To date, the colcon task model has always had a one-to-one relationship
between packages and jobs, despite separation at the code level. All
jobs are associated with a single package, but it is possible to
associate multiple jobs with a single job.
Likely because of this one-to-one relationship, the job identifier and
package name have often been used interchangeably throughout the colcon
codebase. Because all job identifiers must be unique, we'll need to
break this pattern.
This change re-orients the statistics presented in the `console_summary`
event handler around packages by treating multiple jobs for a single
package as if they were a single job, meaning that a package isn't
finished building until ALL of the jobs finish.
Because all _current_ use cases maintain the one-to-one relationship,
this change should not result in any difference in behavior today.1 parent e44b5c1 commit 8427681
1 file changed
Lines changed: 32 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
79 | | - | |
80 | | - | |
| 95 | + | |
| 96 | + | |
81 | 97 | | |
82 | 98 | | |
83 | 99 | | |
84 | | - | |
85 | | - | |
| 100 | + | |
| 101 | + | |
86 | 102 | | |
87 | 103 | | |
88 | 104 | | |
89 | | - | |
90 | | - | |
| 105 | + | |
| 106 | + | |
91 | 107 | | |
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 111 | + | |
| 112 | + | |
98 | 113 | | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
102 | | - | |
103 | | - | |
| 117 | + | |
| 118 | + | |
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
107 | 122 | | |
108 | 123 | | |
109 | 124 | | |
110 | | - | |
| 125 | + | |
111 | 126 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
| |||
0 commit comments