Instructions to handle breaking changes (#452) #702
Reference in New Issue
Block a user
No description provided.
Delete Branch "ynvich/helm-chart:docs-upgrade-breaking"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix top-level README and provide detailed instructions to handle breaking changes of default config.
Thanks for contributing.
I don't see why we should outsource the upgrade instructions into a separate document at the moment.
The proposed changes are somewhat specific to your setup and will not apply to others. In addition, you used a lot "in my case" combined with "we" -> while the former should be avoided in general, the latter suggests it comes from the gitea team or maintainers, which is not the case and hence somewhat misleading.
As many different configurations are in place, the current upgrade instructions focus on being somewhat generic. We can't cover all different configuration cases of (older) installations. Users are required to apply the right steps to a certain degree for their own installations.
Setting
queue.TYPEto "channel" is also not a desired change and won't work in the proposed state, asqueue.CONN_STRis still set to a memcache con string.Overall, I'd not merge this PR and would argue that these notes are internal/personal upgrade notes and do not fit within the chart README. But also would like to hear @justusbunsi opinion on this.
I faced this while updating a default
v6chart, it shoudn't be that rare.The instructions in current
README.mdare broken as is.queue.TYPE"memcache" just won't work. In addition,cacheandsessionparts required plainhost:port, not a memcache URL.My comment was not about the version you're coming from, but more about the individual settings and actions you've described.
I can't follow your reasoning here. The part you're addressing in your PR has
queue.TYPE = "memcache"andqueue.CONN_STR = "<memcache connection string>". What would not work here? Of course, this assumes you have deployedmemcachestandalone, as mentioned in the previous paragraph.This should be updated, I agree, likely with a link to the configuration cheat sheet showing the correct notation.
I have described a default configuration for a
v6chart, where onlygitea.config.serveris configured. I still think I am not the only person facing a broken default configuration with no working recipe to handle the upgrade.This is broken:
This works:
I have no preference which way it is fixed. Feel free to treat this PR as a bug report. I just followed this request
The latter isn't a valid config. In this case,
CONN_STRis just ignored asTYPE: channeldoesn't expect one. Which is why it is "working".I already understood from your previous comments that the documentation hints passing a memcache connection string for
queue.CONN_STR, which won't work.Thanks for reporting, we will update it.
I am not sure that we fully understand each other in this case. Anyhow, my opinion on this still stands: I don't think this part should be merged.
It seems
memcacheis not a supported queue type at all.Correct, it should likely be redis here.
Pull request closed