Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarr and Radarr fixes #3163

Merged
merged 3 commits into from
Feb 23, 2018
Merged

Conversation

Safihre
Copy link
Contributor

@Safihre Safihre commented Feb 22, 2018

Needs #3161, separated for clarity.
Uses the functions and changes there to make Sonarr/Radarr work on DSM6 but also 5.

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

# But there is a problem:
# On DSM5 this is: PKG/var/.config/
# On DSM6 this is: PKG/.config/
# So we have to do upgrade magic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like such complexity which is error prone and requires intensive testing.
Isn't it possible to set HOME to PKG/var/ in process environment at Sonarr startup with env for instance ? it is already done for other packages...

# But there is a problem:
# On DSM5 this is: PKG/var/.config/
# On DSM6 this is: PKG/.config/
# So we have to do upgrade magic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some request as for Sonarr. Please keep it simple and change HOME at process startup.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't know that was possible. I hope Sonarr listens to that variable. Will test.
Wonder why that approach wasn't taken before when they did this overhaul: 5a0b6da

@Safihre Safihre force-pushed the sonarr-radarr-fixes branch 2 times, most recently from 4cf5cd1 to d3b06d3 Compare February 23, 2018 06:31
@Safihre Safihre force-pushed the sonarr-radarr-fixes branch from d3b06d3 to c8e1db2 Compare February 23, 2018 07:00
@Safihre
Copy link
Contributor Author

Safihre commented Feb 23, 2018

@ymartin59 Thanks for the hint. The HOME works well!

@Safihre Safihre merged commit 26a5c7e into SynoCommunity:master Feb 23, 2018
@Safihre Safihre deleted the sonarr-radarr-fixes branch February 23, 2018 07:30
@Safihre
Copy link
Contributor Author

Safihre commented Feb 23, 2018

Checked on DSM 5.2 and DSM6.1:

💯 💯💯
🥇

if [ -d "${CONFIG_DIR}" ]; then
echo "Moving ${CONFIG_DIR} to ${INST_VAR}" >> ${INST_LOG}
mv ${CONFIG_DIR} ${INST_VAR}/.config
if [ -d "${LEGACY_CONFIG_DIR}" ]; then
Copy link
Contributor

@ymartin59 ymartin59 Feb 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Safihre I still do not understand why there is some code to handle .config "move" whereas there is no longer "move" as its location has never changed between published package for DSM 5 in synocommunity repository.
May you explain ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The people that have now installed it on DSM 6 (which has the different home directory) have it in that directory. So we need to take care of it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so I guessed right but that is not my point of view... beta/test packages are "as is"... that is why I avoid to publish when it is not really ready. It is far enough to "support" packages published in repository, not to add complexity to support/track "not ready" packages. Imagine I discard that useless code and let you explain users how to upgrade manually ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really think you are "pushing" too fast content, before it has been at least reviewed or tested by someone else. You merged a lot of PRs bulk... but be sure I will not publish any of them without reviewing again, and testing locally.

Copy link
Contributor Author

@Safihre Safihre Feb 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so I guessed right but that is not my point of view... beta/test packages are "as is"... that is why I avoid to publish when it is not really ready. It is far enough to "support" packages published in repository, not to add complexity to support/track "not ready" packages. Imagine I discard that useless code and let you explain users how to upgrade manually ?

They will get the update via DSM package center automatically, how do you want to instruct them to upgrade properly? Just the sonarr package has more than 400+ downloads among the different versions I released.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your comments here disappoint me. You seem to suggest that it was wrong of me to supply testing packages. That those testing packages were not really ready and that if their setup brakes because you remove this codd, it's kind of my fault.
While in reality, without testing packages we wouldn't be able to identify problems with this and other packages.

And yes, I merge stuff, because I am tired of my code just being left there in those PRs. Yes of course I want you to review and test them, but when will you actually do that?
The code just sits there, after I have spend so much time on it.
I have spend countless hours already since last November, the last 2 weeks even fulltime! And now you make it sound like I just add code without careful consideration. While in fact it was all my careful testing on all platforms that revealed so many previously unknown problems.
I respect your position to handle the publishing and I am glad you do it. So I hope you will also do the job of inspecting and testing my code, not just let it sit there for weeks waiting for.. Well I am not even sure what everything is constantly waiting for here.

@ymartin59
Copy link
Contributor

@Safihre You're right, I am aware of and I really appreciate your investment here. My point is: even if you feel confident in your code and testing - you should wait for (at least) a first review to have chance to eliminate "first level" mistakes and get some hints (like the HOME variable trick). I am OK you build and publish test packages after such a first review.

A pending PR is not "lost work"... I even plan to resurrect interested closed PR that have never been merged like squidguard.

I have not as much bandwidth as you have to work on it, but we did great progress together... and I am relieved that my PR can be reviewed too. Again, there is no need to hurry, even if PR is merged, package will not be published "faster".

stefaang pushed a commit to stefaang/spksrc that referenced this pull request Jan 21, 2019
* Sonarr/Radarr - Keep legacy membership of sc-media

And now finally add them to 'sc-download'

* Sonarr/Radarr - Use generic set_unix_permissions

* Sonarr/Radarr - Home directory handeling for DSM 5 and 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants