[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-18 Thread Hudson (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16955081#comment-16955081
 ] 

Hudson commented on MSHARED-837:


Build succeeded in Jenkins: Maven TLP » maven-archiver » master #21

See https://builds.apache.org/job/maven-box/job/maven-archiver/job/master/21/

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-15 Thread Herve Boutemy (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16952166#comment-16952166
 ] 

Herve Boutemy commented on MSHARED-837:
---

great, thanks

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-15 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16952081#comment-16952081
 ] 

Michael Osipov commented on MSHARED-837:


[~hboutemy], I have added a subsequent commit with the discussed changes.

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-12 Thread Hudson (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16950077#comment-16950077
 ] 

Hudson commented on MSHARED-837:


Build failed in Jenkins: Maven TLP » maven-archiver » MSHARED-837 #2

See 
https://builds.apache.org/job/maven-box/job/maven-archiver/job/MSHARED-837/2/

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-11 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949296#comment-16949296
 ] 

Michael Osipov commented on MSHARED-837:


As for the style: The ISO definition provides two styles basic and extended. 
Basic can drop {{-}} and {{::}} delimiters while extended retains them. All 
components date, time, offset but be either basic or extended format. You are 
not allowed to mix them. Just using {{X}} with the extended style would allow 
{{2019-10-11T10:56:00+02}} (valid), {{2019-10-11T10:56:00+0200}} (invalid) and 
{{2019-10-11T10:56:00+02}} (valid). In basic format this would be 
{{20191011T105600+02}} (valid), {{20191011T105600+0200}} (valid) and 
{{20191011T105600+02:00}} (invalid).
 This is due to the lenient and telescoping nature of SDF. See also 
[here|https://stackoverflow.com/q/13088140/696632]. So you can only use the 
extended format with this implementation and stick to {{XXX}} and all is fine.

 

I don't think that just changing code and updating test would have really 
helped because I wanted you just to understand what I object here since you 
didn't understand how telescoping in SDF works. Principal understanding is more 
important that pure code. I will change my branch accordingly with the tests.

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-10 Thread Herve Boutemy (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948501#comment-16948501
 ] 

Herve Boutemy commented on MSHARED-837:
---

{quote}You obviously don't understand the difference between {{X}}, {{XX}}, 
{{XXX}}. 
{{X}} parses: 08, 0800, 08:00
{{XX}} parses: 08, 0800
{{XXX}} parses: 08:00{quote}
Thank you: now I understand at least the first part (could not find that info 
in the SimpleDateFormat javadoc)

{quote}Since the datetime is in extended format, the tz offset has to be too. 
Therefore, it can only be {{XXX}}.{quote}
sorry, I don't understand this sentence

{quote}Even if you don't care, I *do* and you did ask for review. We are 
designing new things where we can use well-established formats/standards. I 
don't see reason to deviate from.{quote}
+1
but I need to understand how {{X}} is not a well-established format

{quote}Just pick the first, modify the tests and you are done.{quote}
modifying the test while providing the update on code would have avoided us a 
few days of discussion: isn't it a well established convention?

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-10 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948326#comment-16948326
 ] 

Michael Osipov commented on MSHARED-837:


Both are intended to show you how it should be you can pick either one.

You obviously don't understand the difference between {{X}}, {{XX}}, {{XXX}}. 
{{X}} parses: 08, 0800, 08:00
{{XX}} parses: 08, 0800
{{XXX}} parses: 08:00

Since the datetime is in extended format, the tz offset has to be too. 
Therefore, it can only be {{XXX}}.

Even if you don't care, I *do* and you did ask for review. We are designing new 
things where we can use well-established formats/standards. I don't see reason 
to deviate from.

Just pick the first, modify the tests and you are done.

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-09 Thread Herve Boutemy (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948227#comment-16948227
 ] 

Herve Boutemy commented on MSHARED-837:
---

no, I didn't have time until now: you know, it's my free time

for 
https://github.com/apache/maven-archiver/commit/2f45473f180cbd1fdc2b828095e2f0e57d077a0e,
 you transform X to XXX without proving anything about the impact: I don't know 
why XXX is better than X, nor what it means

for 
https://github.com/apache/maven-archiver/commit/9e7cc4daf109b8970ae6517ac6d4c132ec942b14
 , you add a new dependency and tell me that it is better because it fails a 
unit test, that makes me think it removes some supported formats for setting a 
timestamp

I don't see why I would not simply rely on JDK's DateFormat X: it works, is 
easy to use, easy to understand for users.

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-09 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948004#comment-16948004
 ] 

Michael Osipov commented on MSHARED-837:


Ping!

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MSHARED-837) add an API to configure Reproducible Builds with outputTimestamp

2019-10-07 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MSHARED-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16946182#comment-16946182
 ] 

Michael Osipov commented on MSHARED-837:


[~hboutemy], did you get a chance to look at the two branches I have provided?

> add an API to configure Reproducible Builds with outputTimestamp
> 
>
> Key: MSHARED-837
> URL: https://issues.apache.org/jira/browse/MSHARED-837
> Project: Maven Shared Components
>  Issue Type: New Feature
>  Components: maven-archiver
>Affects Versions: maven-archiver-3.4.0
>Reporter: Herve Boutemy
>Assignee: Herve Boutemy
>Priority: Major
> Fix For: maven-archiver-3.4.1
>
>
> creating an archive in a Reproducible Builds way requires to configure 
> archiver with an output timestamp: see 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318
> The timestamp value can't be natively injected as Date with Plexus, because 
> Plexus Date injection uses local timezone, then is not reproducible: see 
> https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/xref/org/codehaus/plexus/component/configurator/converters/basic/DateConverter.html
> Then we need top inject ${project.build.outputTimestamp} as a String and 
> provide an API to parse this String to a Date, before calling 
> plexus-archiver's configureReproducible 
> https://github.com/codehaus-plexus/plexus-archiver/pull/121



--
This message was sent by Atlassian Jira
(v8.3.4#803005)