-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support installation by non-root users #162
Conversation
Sorry, test-archlinux in the workflow fails, but I don't know how to fix it. |
Hello @hkcomori , can you tell me if these tests are passing for you locally? I do not get these errors when I try to run it locally... |
Sorry @gamezftw , I have never used Molecule locally. |
Thanks for your work to both of you. I currently try to have a bit of vacation time, so allow some delay on my side. Thanks! |
maybe because you test on arch-linux? The warning comes from the idempotence-test .... |
From what I understand, molecule uses docker containers to run the tests, so I am hoping that host OS doesn't have much to do with the tests. |
Sure, you are right: that's the idea behind molecule: use containers to provide the various OSes without dependency on the host system. I was too fast with my reply.
first: I stll would prefer to have all tests in one single scenario. Now we have that special case with arch linux and two scenarios to maintain and debug. Aside from that: the problem in the idempotence test seems to be related to creating a temporary directory: the temp directory is re-created in the 2nd run of ansible which is a "change" in terms of ansible. Idempotence would mean: no change in the n-th run. The create task is here I wonder if we should use the tempfile module here instead. Why that succeeds locally and fails on github: I assume github actions does things different somehow. That's not a very competent answer, I know ;-) |
Also note this tag. This makes molecule skip the task in the idempotence test. I have to think about what's the best solution here. |
I did not like this idea too much either but I was not able to make the tests work for arch because of issues with cgroups here. I will try to check again if this can be solved somehow so it uses the same scenario
Locally this tests returns
This looks interesting, and it looks like that it can replace
Keep us posted on this since I don't know how to make sure that it would pass idempotence test and also how Create temporary working directory would pass it. |
Trying the new module now in this PR ;-) and I didit wrong in the first try ... EDIT: it seems that "ansible.builtin.tempfile" creates a random temp-dir below the given "path:" Maybe we have to rethink the flow: removing the temp-dir before creating it should make sure it's empty, that's the intention. |
Thanks for the advice, everyone.
I think it's no problem, because it's a "temporary" directory. |
I currently also test things in my local checkout of this PR. Wait a sec. |
I should have done my changes in a second branch, sorry. Let's see if that tests now OK in gh. |
Seems I broke something. 'rclone_setup_tmp_dir' is undefined. |
76479bb is now problematic ... I pause here for a moment to not interfere with your patches ... let's sync ;-) |
I currently think |
Ah, I remove 'rclone_setup_tmp_dir' in 76479bb . Sorry to disturb you. |
no problem. I am not used to team-work on a PR so I am also disturbing you in your PR ... |
Hm, archlinux-stuff fails again. Couldn't archlinux go into Also see what I added there ( |
Actually, the local Molecule is not working well yet... Back to the main topic, do we need to delete 'rclone_setup_tmp_dir' in the first place? |
Hm, maybe. I thought starting from scratch might be better. Just "a feeling" ;-) |
Ah, your feeling is correct. |
In general, there is a problem with deletion, but as far as rclone is concerned, I don't see a problem with overwriting by unarchive. |
OK, I am drifting off here and try to solve the problem with platforms/scenarios etc I check https://github.com/CarloDePieri/docker-archlinux-ansible for examples etc |
I have to pause now ... the direction is OK, but it seems it needs your "test-archlinux" in edit: did so already ... |
my local tests look promising, I don't know where the conflicts here are right now. |
Sorry for jumping back and forth with the context of the conversation, - name: Update repositories cache on Archlinux
community.general.pacman:
update_cache: true
when: ansible_facts.os_family == 'Archlinux'
register: pacman_result
changed_when: pacman_result.cache_updated
become: true to |
What was the issue with this the change for workflows here, were both platforms running for each distribution and release and version? |
I might have mixed up things while trying to consolidate the tests. Getting the terms right isn't that easy: scenarios, platforms, distros ... phew! |
This should go into a new commit, please. I might add it here or in #164 ... maybe a separate PR is overkill |
8c39a5f
to
e682f36
Compare
I rebased this PR to the main branch. |
Great. This merge should result in a new tag/version also, let me get that sorted before merging (and releasing to galaxy). |
I found a mistake when I checked the README, so I fixed it. |
this won't go into release 0.2.0 anymore, the tag is already set ... ;-) |
Oh...sorry, I thought I could still make it before the merge, but it was too late. |
Let's open a new PR for some editing etc Minor cleanups don't have to become a release IMO |
In branch |
I fixed it right before the merge. |
The release step wasn't executed. Now I finished that: 0.2.0 is on galaxy. Pls test, hopefully we didn't break anything ;-) |
Thanks! It works fine in my usecase. |
Closes #153
become: true
except for `rclone_mounts