Merge ~lucaskanashiro/+git/ruby-puppet-syntax:fix-ftbfs-in-ubuntu into ~lucaskanashiro/+git/ruby-puppet-syntax:v2.6.1-2

Proposed by Lucas Kanashiro
Status: Approved
Approved by: Lucas Kanashiro
Approved revision: 74f749b44e64f6983e11361be65d987aa1678232
Proposed branch: ~lucaskanashiro/+git/ruby-puppet-syntax:fix-ftbfs-in-ubuntu
Merge into: ~lucaskanashiro/+git/ruby-puppet-syntax:v2.6.1-2
Diff against target: 101 lines (+9/-61)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/series (+0/-1)
dev/null (+0/-59)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Lucas Kanashiro Pending
Review via email: mp+390673@code.launchpad.net

Description of the change

Fix FTBFS in Groovy. In version 2.6.1-2 of ruby-puppet-syntax was added a patch to workaround some tests which were failing because of puppet throwing some warnings due to a ruby 2.7 deprecation:

https://salsa.debian.org/ruby-team/ruby-puppet-syntax/-/commit/55edc3783c6a79

This puppet issue was fixed in Ubuntu and upstream via this patch:

https://github.com/puppetlabs/puppet/pull/8060

The new patch added to ruby-puppet-syntax was written in a way that it'd fail when puppet is fixed to warn maintainers to remove the patch. Since it is already fixed in Ubuntu now ruby-puppet-syntax FTBFS. This MP drops this patch.

Without the patch it builds fine in amd64 (arch:all) and autopkgtest is happy:

autopkgtest [09:35:22]: @@@@@@@@@@@@@@@@@@@@ summary
gem2deb-test-runner PASS

To post a comment you must log in.
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

FYI I was discussing with vorlon about this solution I am proposing here and he agreed with it. However, I'd be happy to get a +1 from the team.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I'm reviewing this one.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Aside from the suggestion to reword the changelog entry, everything else is OK. I also double checked that the dep8 test is now passing. +1 from me, thanks!

review: Approve
74f749b... by Lucas Kanashiro

d/changelog: reword changelog entry

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thank you Sergio, applied what you suggested. I am going to upload it.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

$ dput ubuntu ../build-area/ruby-puppet-syntax_2.6.1-2ubuntu1_source.changes
Checking signature on .changes
gpg: ../build-area/ruby-puppet-syntax_2.6.1-2ubuntu1_source.changes: Valid signature from F823A2729883C97C
Checking signature on .dsc
gpg: ../build-area/ruby-puppet-syntax_2.6.1-2ubuntu1.dsc: Valid signature from F823A2729883C97C
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ruby-puppet-syntax_2.6.1-2ubuntu1.dsc: done.
  Uploading ruby-puppet-syntax_2.6.1-2ubuntu1.debian.tar.xz: done.
  Uploading ruby-puppet-syntax_2.6.1-2ubuntu1_source.changes: done.
Successfully uploaded packages.

Unmerged commits

74f749b... by Lucas Kanashiro

d/changelog: reword changelog entry

5019363... by Lucas Kanashiro

Update maintainer

fbf185c... by Lucas Kanashiro

Update changelog

45c609c... by Lucas Kanashiro

d/p/0002-marks-tests-pending.patch: dropped

This patch add a workaround for a puppet issue already fixed in Ubuntu
and upstream. This is the fix we have in the puppet Ubuntu package and
upstream:

https://github.com/puppetlabs/puppet/pull/8060

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 9bbbb17..588c05d 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+ruby-puppet-syntax (2.6.1-2ubuntu1) groovy; urgency=medium
7+
8+ * d/p/0002-marks-tests-pending.patch: dropped. This patch added a workaround
9+ for a puppet issue that has since been fixed in Ubuntu and upstream.
10+
11+ -- Lucas Kanashiro <kanashiro@ubuntu.com> Mon, 14 Sep 2020 09:27:46 -0300
12+
13 ruby-puppet-syntax (2.6.1-2) unstable; urgency=medium
14
15 * Team upload.
16diff --git a/debian/control b/debian/control
17index 792d8de..a87440c 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -1,7 +1,8 @@
21 Source: ruby-puppet-syntax
22 Section: ruby
23 Priority: optional
24-Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
27 Uploaders: Gaudenz Steinlin <gaudenz@debian.org>,
28 Georg Faerber <georg@debian.org>,
29 Sebastien Badia <sbadia@debian.org>
30diff --git a/debian/patches/0002-marks-tests-pending.patch b/debian/patches/0002-marks-tests-pending.patch
31deleted file mode 100644
32index 0017569..0000000
33--- a/debian/patches/0002-marks-tests-pending.patch
34+++ /dev/null
35@@ -1,59 +0,0 @@
36-From: Daniel Leidert <daniel.leidert@wgdd.de>
37-Date: Thu, 23 Apr 2020 00:47:31 +0200
38-Subject: Mark tests as pending which fail by a puppet Ruby warning
39-
40-Some tests in spec/puppet-syntax/templates_spec.rb fail because Ruby prints
41-a warning for puppet and this causes output, where output is not expected.
42-/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecate
43-Marking these tests as pending will cause them to fail again when puppet
44-has been fixed. Then this patch can be safely removed.
45-
46-Bug-Debian: https://bugs.debian.org/952022
47----
48- spec/puppet-syntax/templates_spec.rb | 5 +++++
49- 1 file changed, 5 insertions(+)
50-
51-diff --git a/spec/puppet-syntax/templates_spec.rb b/spec/puppet-syntax/templates_spec.rb
52-index e349c2c..32727d0 100644
53---- a/spec/puppet-syntax/templates_spec.rb
54-+++ b/spec/puppet-syntax/templates_spec.rb
55-@@ -100,6 +100,7 @@ describe PuppetSyntax::Templates do
56- files = fixture_templates('pass.epp')
57- res = subject.check(files)
58-
59-+ pending("puppet is causing a ruby warning and fails the purpose of this test")
60- expect(res).to match([])
61- end
62-
63-@@ -107,6 +108,7 @@ describe PuppetSyntax::Templates do
64- files = fixture_templates('fail_error.epp')
65- res = subject.check(files)
66-
67-+ pending("puppet is causing a ruby warning and fails the purpose of this test")
68- expect(res.size).to eq(1)
69- expect(res[0]).to match(/This Type-Name has no effect/)
70- end
71-@@ -115,6 +117,7 @@ describe PuppetSyntax::Templates do
72- files = fixture_templates(['pass.epp', 'pass_also.epp'])
73- res = subject.check(files)
74-
75-+ pending("puppet is causing a ruby warning and fails the purpose of this test")
76- expect(res).to match([])
77- end
78-
79-@@ -122,6 +125,7 @@ describe PuppetSyntax::Templates do
80- files = fixture_templates(['fail_error.epp', 'fail_error_also.epp'])
81- res = subject.check(files)
82-
83-+ pending("puppet is causing a ruby warning and fails the purpose of this test")
84- expect(res.size).to eq(2)
85- expect(res[0]).to match(/This Type-Name has no effect/)
86- expect(res[1]).to match(/Syntax error at '}' \(file: \S*\/fail_error_also.epp, line: 2, column: 4\)/)
87-@@ -136,6 +140,7 @@ describe PuppetSyntax::Templates do
88- files = fixture_templates('pass.erb')
89- res = subject.check(files)
90-
91-+ pending("puppet is causing a ruby warning and fails the purpose of this test")
92- expect(res.size).to eq(1)
93- end
94- end
95diff --git a/debian/patches/series b/debian/patches/series
96index a370ef9..0b40ace 100644
97--- a/debian/patches/series
98+++ b/debian/patches/series
99@@ -1,2 +1 @@
100 0001-gemspec-drop-puppet.patch
101-0002-marks-tests-pending.patch

Subscribers

People subscribed via source and target branches

to all changes: