Repository navigation
label.InitLabels: optimize - #269
Conversation
|
Needs a rebase |
9b802cb to
d44b10a
Compare
|
Rebased; PTAL @thaJeztah |
A few shortcuts for specific usage scenarios: 1. When there are no options specified, label.InitLabels is equivalent to selinux.ContainerLabels. Return its result with no further processing. 2. When the only option specified is "disable", don't call selinux.ContainerLabels as the call is somewhat expensive and we won't use its results (moreover, we have to free the just-generated MCS). We still allow "disable" to be set together with other options for backward compatibility, but this should eventually be forbidden. Also, previously "disable:<value>" option was silently ignored, now it results in an error. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
d44b10a to
74873e2
Compare
It works by ensuring the CI run for a PR is done against the latest code. Once a year or so I am seeing a case when CI is green, but when a PR is merged everything is broken. In short, this is why I enabled this setting. |
We also have a "update via rebase" button (unfortunately I don't know how to disable the "update via merge") that can be used to rebase (and re-run CI against current HEAD). |
|
Yeah, it's really rare to happen though, and probably using a merge queue could help with that? |
Sorry for my ignorance; what is a merge queue? |
|
github allows stacking merges instead of merging directly; I think that also does a merge (and running CI) before doing the actual merge;
|

A few shortcuts for specific usage scenarios:
When there are no options specified, label.InitLabels is equivalent to selinux.ContainerLabels. Return its result with no further processing.
When the only option specified is "disable", don't call selinux.ContainerLabels as the call is somewhat expensive and we won't use its results (moreover, we have to free the just-generated MCS).
We still allow "disable" to be set together with other options for backward compatibility, but this should eventually be forbidden.
Also, previously "disable:" option was silently ignored, now it results in an error (as it should be).