Move src/ to src/yunohost - #2328
Conversation
This is the python way
But what are the arguments ? It's so annoying having tools not understanding the repo topology. |
|
I think the issue is that this PR create a lot of conflict with others PR and we have a high number of that. I think we firstly need close as much as possible all PR before doing the refactoring like this to avoid as much as possible conflict to solve this merge. And I think it's the same question for #2262. Note I discussed with @zamentur about #2262 and this was the conclusion. But maybe @alexAubin was thinking about some other reason. |
|
This PR is targetting Trixie, so not many conflicts. Also git knows how to handle renames, rebasing other PRs will be at zero cost. |
|
Hi @Salamandar , Could you detail your PR: what was your initial problem ? how this topology affects your tooling ? Which tooling ? I don't understand why this PR could avoid us to use symlink in ynh-dev ? We also need to know which part of this has been tested or not and how. And if you can detail a bit more the gain to merge this PR to see if it's really needed to make this kind of change now.
This means having one method for bookworm and another for trixie (ynh-dev to adapt, maybe ci, etc.), so dev have to update at least ynh-dev (and the tool need to be adapted before...)
Yes and no. For example, if a new file is created in a PR into src, it won't be magically renamed to So i am pretty sure it won't be zero cost... |
|
If you ask yourself why i write in bold about pr description: it's because it's not the first PR where i ask for details... The PR template can help you, even if some parts are verbose and could probably ignored sometimes... However, we really need to know the details of the problem AND how it has been tested. |
See the updated PR comment.
As core CI was broken for the last ~ 10 days, I couldn't test much.
See the updated PR comment.
Yeah, that's not a blocker, right ?
Yeah, okay, that won't be absolutely zero cost. But that's not what I call a blocker. We have 60 PRs, there's certainly not many PRs with new files in src/. |
From these PRs, only one (appart from this one) was not as draft. And I moved it as draft. So… It makes sense not having a complete description when the PR is not ready. |
At the beginning yes, but after month i could be useful to have a related issue or a description IMHO. But you are right, as i don't review drafts anymore, it's not so annoying, even if the label with the growing number of PR in github UX is anxiety-inducing. |
I guess we could discuss it on next meeting, PRlanta or during yunocamp. |
|
On my side my opinion is that, yes it would be great to fix this to have a better standard setup. So I'm not fully against this PR. But the issue that I see right now is that we have a lot of important stuff to finalizes like Trixie, auto registration, security fixes and all other PR which is mostly finished, and to me we should prioritize this other this refactoring. So maybe we can add a tag for this and as soon as we we are in a better state we can finish this PR and #2262 |
I fully agree, though I think it would be better to merge these refactoring PRs before releasing a new major version. But I'm okay to wait, your argument makes sense too. |
I made the initial change from Personally I'm usually fine with just creating the symlink, and generally speaking i am tired of all the various changes in toolings all over the place and constant refactoring while Trixie is still pending, other important PRs are pending, 59 more PRs on this repo are pending, yet only ljf and some other folks sometimes joining the PRlanta session are trying to mop it up. This kind of stuff is just adding chaos while the team is struggling to keep up with the maintenance and have limited time, energy, brain bandwidth available. |
Me neither, but python tools expect this and unless you want to patch them, that's how it is.
I don't know what to tell you except that i've been waiting and asking for help on the trixie subject for a year now and did not receive much. |
Reasons to do that :
See https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/ : It's either
./projectnameor./src/projectname.yunohost/.gitlab/ci/test.gitlab-ci.yml
Line 16 in ceae72b
What that means is that pytest does not work on a developer's working copy out of the box.
tydoesn't work properly, a not-completely functional workaround was found but that's not enough:yunohost/pyproject.toml
Line 82 in ceae72b
yunohost/pyproject.toml
Line 109 in ceae72b