RosiKyu commented on PR #12336: URL: https://github.com/apache/cloudstack/pull/12336#issuecomment-7100425725
> Warning > > Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a `copilot-code-review.yml` file specifying one with the `runs-on` attribute. See the [docs](https://gh.io/AA11tgch) for more details. > > ## Copilot review overview > **4 open issues** > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [`getVariableNamesInErrorKey` explicitly supports whitespace inside placeholders (`{{ var }}`), but…](https://github.com/apache/cloudstack/pull/12336#discussion_r4313873115) · New > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [Avoid committing auto-generated TODO stubs in test utilities. Either implement this method…](https://github.com/apache/cloudstack/pull/12336#discussion_r4313873187) · New > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [The line numbers reported for missing opening/closing braces are incorrect when the file has…](https://github.com/apache/cloudstack/pull/12336#discussion_r4313873245) · New > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [The CLI exit code behavior for `fix`/`sort` doesn’t match the module docstring (“fix was a no-op” →…](https://github.com/apache/cloudstack/pull/12336#discussion_r4313873295) · New > > **10 resolved since last review** > * <img alt="High severity" width="62" height="18" src="https://camo.githubusercontent.com/9c0cde422fad508ba32001d32aff9e03628698080e0e469cb49a00c7e0c6cc01/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f686967682d76322d6c696768742e706e67"> [This section has invalid indentation (the `if` under `except` is not indented) and the…](https://github.com/apache/cloudstack/pull/12336#discussion_r3528457672) > * <img alt="High severity" width="62" height="18" src="https://camo.githubusercontent.com/9c0cde422fad508ba32001d32aff9e03628698080e0e469cb49a00c7e0c6cc01/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f686967682d76322d6c696768742e706e67"> [This block has two issues: (1) the `else:` branch references `ex`, which is only defined in the…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839799) > * <img alt="High severity" width="62" height="18" src="https://camo.githubusercontent.com/9c0cde422fad508ba32001d32aff9e03628698080e0e469cb49a00c7e0c6cc01/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f686967682d76322d6c696768742e706e67"> [Syntax error: the `except` clause is missing a trailing colon, which will prevent the test file…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839757) > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [INCLUDE_RESOURCE_ID_FOR_ADMINS_IN_METADATA is currently unused: admin callers will always get the…](https://github.com/apache/cloudstack/pull/12336#discussion_r3528457738) > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [In the fallback path (when AccountService bean is missing), the computed result is not cached into…](https://github.com/apache/cloudstack/pull/12336#discussion_r3528457716) > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [Template variable is malformed: `{{nicId}` is missing a closing `}`. This will prevent placeholder…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839884) > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [`String.replace()` only replaces the first occurrence, so templates with the same placeholder more…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839850) > * <img alt="Medium severity" width="62" height="18" src="https://camo.githubusercontent.com/7dc8929f1372d7be218d83fe61e6c3fb67ed8bc61cd50c1e8e4696827da90595/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6d656469756d2d76322d6c696768742e706e67"> [This assertion compares the expected message _key_ to `exception.getMessage()`. Since this test was…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839828) > * <img alt="Low severity" width="62" height="18" src="https://camo.githubusercontent.com/2e8987a2fc4f02d25f9b6b7e5875dc9332cc93fdc58a140b40910ba3fbc50079/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6c6f772d76322d6c696768742e706e67"> [The error key name contains what looks like a typo (`sunning` instead of `running`). Since keys are…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839944) > * <img alt="Low severity" width="62" height="18" src="https://camo.githubusercontent.com/2e8987a2fc4f02d25f9b6b7e5875dc9332cc93fdc58a140b40910ba3fbc50079/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f7374617469632f696d616765732f69636f6e732f636f70696c6f742d636f64652d7265766965772f6c6f772d76322d6c696768742e706e67"> [Typo in message text: "scalling" → "scaling" (also reads more naturally as "only scaling up is…](https://github.com/apache/cloudstack/pull/12336#discussion_r3518839916) > > Review effort: Lite @shwstppr , could you please have a look at the Copilot comments and check if any of these need to be addressed? Thank you! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
