Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

(MODULES-4098) Sync more files #125

Merged
merged 1 commit into from
Jan 24, 2017
Merged

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Jan 17, 2017

No description provided.

@hunner hunner changed the title (MODULES-4098) Sync LICENSE (MODULES-4098) Sync more files Jan 17, 2017
@hunner hunner changed the title (MODULES-4098) Sync more files (WIP) (MODULES-4098) Sync more files Jan 17, 2017
@hunner hunner force-pushed the license_master branch 7 times, most recently from 501632d to baf9835 Compare January 18, 2017 22:31
Rakefile:
default_disabled_lint_checks:
- 'relative'
- 'disable_80chars'
- 'disable_class_inherits_from_params_class'
Copy link
Contributor

Choose a reason for hiding this comment

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

<% checks = @configs['default_disabled_lint_checks'] + ( @configs['extra_disabled_lint_checks'] || [] ) -%>
<% checks.each do |check| -%>
PuppetLint.configuration.send('<%= check %>')
<% end -%>
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
Copy link
Contributor

Choose a reason for hiding this comment

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

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 right. I was wondering where these were coming from.

on_build_failure: false
on_build_status_changed: false
<% else -%>
# Appveyor is only enabled on modules that support windows
Copy link
Contributor

Choose a reason for hiding this comment

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

Having a broken appveyor file will cause issues when trying to enable appveyor as the "Only run on branches with appveyor.yml" setting will not trigger. See the results on puppetlabs/puppetlabs-stdlib#712

Copy link
Contributor Author

@hunner hunner Jan 19, 2017

Choose a reason for hiding this comment

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

The condition of supported OSs (linux and/or windows) is not something built-in to modulesync so it needs ERB templating to present different yaml entries. config_defaults.yml defines the files to be managed, one of which is appveyor.yml. It is not possible to conditionalize the management of appveyor.yml, only define the defaults. And the template itself cannot afaik say "actually I should not be created" only "I should be empty".

Options:

  1. appveyor.yml exists in all repos and we test on all modules (what is testing apt in appveyor supposed to do? This doesn't make sense)
  2. appveyor.yml key only exists in $module/.sync.yml and we have the defaults in :global in config_defaults.yml (this is an ugly hack)
  3. modulesync is expanded to have templates be conditionally managed (complex, low return, and don't want to wait for this)
  4. appveyor.yml exists in all repos and we manually enable/disable testing (one time cost per module, imho easiest option)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This only appears to happen on apt and stdlib?

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't currently have the tests setup to do so, but long-term testing should cover whether facts and other native code can be plugin-synced to all (agent-)supported platforms and not break a run when none of the dependencies are installed.

For some modules, like stdlib, we should already be testing everything on windows, as it is a supported platform.

or, 5. manually set appveyor.yml to unmanaged: true in the local .sync.yml.

apt and stdlib are the only ones where I started playing around with appveyor.

@DavidS
Copy link
Contributor

DavidS commented Jan 19, 2017

🎉 so excited to see this happening!

@eputnam
Copy link
Contributor

eputnam commented Jan 19, 2017

rainbow pin?

appveyor.yml:
appveyor_bundle_install: "bundle install --jobs 4 --retry 2 --without system_tests"
matrix:
- PUPPET_GEM_VERSION: '~> 3.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

puppet 3?

@eputnam eputnam merged commit 211ecee into puppetlabs:master Jan 24, 2017
eputnam added a commit that referenced this pull request Jan 24, 2017
(MODULES-4098) Sync more files

see note on #125
@hunner hunner deleted the license_master branch January 24, 2017 23:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants