Conversation
jecluis
left a comment
There was a problem hiding this comment.
@UweSchwaeke I've left some comments on the various commits.
Additionally, we need a proper description on this Pull Request, including what you are attempting to do. I'm a bit lost on what you are actually trying to achieve (maybe I forgot some of our initial chat on this).
So it would be nice to have the context on the PR description so we know what we are aiming for.
d7afa8f to
6c0c518
Compare
I added a description. |
|
@UweSchwaeke on the commits' subjects, I'll need you to add a colon ( |
just a moment i will fix it |
|
Also, please check the commit messages for typos. One example, the first commit shows:
s/allready/already/ Additionally, ensure the commit messages are properly capitalized where it makes sense. While we don't want subject lines to be capitalized (unless required, e.g., to describe a |
6c0c518 to
6ec1cfe
Compare
i added a better description ( mostly reviewed with gemini) |
6ec1cfe to
00b6e12
Compare
jecluis
left a comment
There was a problem hiding this comment.
This looks sound, but I think we'll want to add some sort of functional tests to go along with it to make sure and validate.
crt/src/crt/cmds/crt.py
Outdated
| is_flag=True, | ||
| default=False, | ||
| required=False, | ||
| help="run without accessing remotes", |
There was a problem hiding this comment.
Capitalize "Run", add a period (.) at the end, following what other options' help messages are doing.
crt/src/crt/cmds/release.py
Outdated
| summary_table.add_row("From Base Reference", f"{base_ref} from {base_ref_repo}") | ||
| summary_table.add_row("Release base branch", release_base_branch) | ||
| summary_table.add_row("Release base tag", release_base_tag) | ||
| summary_table.add_row("Is local", str(run_locally)) |
There was a problem hiding this comment.
I'm not entirely sure if we should make this conditional. I wonder if it will be confusing for someone who's not using it as a local tool.
There was a problem hiding this comment.
You mean, if someone let the script run through ssh or if its get called by a server or something?
Maybe i could make 2 Options:
- Remove the line, so its quiet and the user doesn't get informed.
- Rename "Is local" to something like "Ran without access to Remote repositories" and make it not part of the table instead a pinfo output.
What do you prefer? Or am i missing another option?
00b6e12 to
5f6327f
Compare
5f6327f to
91de79d
Compare
7a200a6 to
5b1511b
Compare
avoid accessing remotes if the flag is set and the subcommand doesn't require remote access. affected subcommands: * start: * skip adding remote URLs. * skip checking if the release already exists on the remote. * create a local release branch from base_ref (which must exist locally). * do not push the created branch or tag to the remote. * list: * skip adding remote urls. * skip fetching from remotes. other subcommands will ignore the flag. Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
ef460ae to
44ebc4d
Compare
don't access remotes if the flag is set and the subcommand doesn't require remote access. affected subcommands: * patchset add: * don't add remote urls and don't fetch patch branch (assume branch exists locally) * validate: * don't add remote urls and don't fetch from remote other subcommands will ignore the flag Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
1e2f124 to
f95accd
Compare
don't access remotes if the flag is set and the subcommand doesn't require remote access. affected subcommands: * add: * don't add remote url and don't fetch Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
don't access remotes if the flag is set and the subcommand doesn't require remote access. affected subcommands: * add: * don't add remote url and don't fetch * create branch from an existing local branch * publish: * don't add remote url and don't fetch * create branch from an existing local branch other subcommands will ignore the flag Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
f95accd to
d64c217
Compare
crt: introduce --local-run option
what:
introduce an option flag signaling the crt tool to run locally. "locally" means the tool will not access remote repositories. commands and subcommands that explicitly require remote access will simply ignore the flag.
why:
this enables the crt tool to operate without a connection to remote repositories or the internet. it allows users to perform preparatory tasks—such as starting a release adding, removing manifests or adding patches, using only local data. a network connection is now only strictly required when finalizing the release.