-
Notifications
You must be signed in to change notification settings - Fork 14
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
Github action "basic.yml" fails because Gem parallel_spec is not sepcified/installed. #29
Comments
a minimal Gemfile I extracted from one of our modules:
can you give that a try? we probably need to update the README.md. |
I used only the code you recommended and the Github action succeeded. |
I think you uncovered something I didn't consider, since we always pull in
And perhaps we should also provide an example in |
As a brand new user of this project, the other thing that I've found is that creating only the Gemfile and Rakefile is not enough to be successful. The metadata.json .github/workflows/puppet.yml (and other files) need to be created as well. Seasoned uses of this project will consider that obvious but from my point of view the README.md needs to be more noob friendly. I was able to run the Github workflows successfully only after running "pdk new module". That's probably more than the minimum required but it'd be nice if the README.md was updated with the minimum information needed to be successful. |
That is good feedback. I always struggle to put myself into the position of a beginner; those responses help me a lot. |
Can the README.md be updated with examples that work? The latest error I have in the most simple of puppet modules is:
|
Can you share your module? I wonder if your RuboCop config requires a plugin that isn't in your |
I'm using the Gemfile suggested by @bastelfreak. It did work months ago but now it's giving me: |
That's IMHO an unrelated issue. You have https://github.com/bschonec/cicd-lab/blob/f7187bd38fdb01e9a3ede50efd2a3a6f01c5d33c/.rubocop.yml#L3 but I don't see RuboCop in https://github.com/bschonec/cicd-lab/blob/puppet-tests/Gemfile. |
Yeah, that's my struggle. The Gemfile in the README.md isn't sufficient for a successful run. Most certainly, I didn't create the .rubocop.yml file manually because (as evidenced) I have no idea what I'm doing. Perhaps it got created with 'pdk new module' or something. |
It's a tricky problem, because in your situation it also doesn't work locally. Perhaps we should point to https://github.com/voxpupuli/modulesync_config as a reference for the least minimal config (which is what the example in README actually tries to achieve). |
I think this would just shift the confusion [on my part] from one project to another. modulesync_config doesn't do a good job of explaining what it does or why one would want to use it. |
@bschonec I updated the README.md with an up2date Gemfile. Could you test that? |
I created an entirely new module with "pdk new module", modified the Gemfile and Rakefile per the README.md, created two Github workflow YML files per the README.md (with Rubocop disabled?) but the workflow still errors. |
In https://github.com/bschonec/cicd-lab/blob/master/.rubocop.yml#L3 you reference a rubocop plugin that you don't install. We don't use it at vox pupuli for our puppet modules. You can remove it from the rubocop config, or add the gem to your Gemfile or replace the whole rubocop config with the one we use at vox pupuli (this requires the voxpupuli-test gem, which you already have in the gemfile):
|
PDK created that file. As a person who has zero experience setting this up, the process of creating a new module with "pdk new module" and then following the instructions in the gha-puppet/README.md don't give an amateur like me enough information to get a Github action up and running without knowing the prerequisite knowledge regarding the Rubocop stuff. Could the README be update with "If you've created your module with PDK, ensure that you remove (or add) XXXX YYYY from the .rubocop.yml/Gemfile" ??? |
The problem here is, we don't know which files pdk creates. The files and their content change from time to time and we don't use pdk for our module so we don't have an overview about the current pdk state. |
I usually ignore the PDK altogether. While it's rare that I create a new module, I usually use our modulesync config. voxpupuli/modulesync_config#853 documents that workflow.
I'll be honest and say that I don't have time to look into that now. PDK does so many things I strongly disagree with that I don't want to touch it and I'm already busy with $dayjob. This year at cfgmgmtcamp I gave a presentation with how it's built, which does go through the various steps. If I had time, I'd rather expand that in a blog so you know how it's built from scratch. I've opened #38 to further refine the Gemfile example part. |
@ekohl, your link to your presentation is 404 (invalid). CORRECTION: Here's the correct URL: |
Oh yes, somehow GH's markdown parsing got confused on the spaces. Correct now. |
I'm trying to use the gha-puppet reusable workflows for the first time and the parallel_tests are failing. I can only assume this is because the parallel_spec Gem is not installed.
I'm very green at this so I don't know where the solutions is. The output error when I have a completely generic project is:
I added "gem 'parallel_tests'" to my Gemfile and it seemed to make things better.
The text was updated successfully, but these errors were encountered: