You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Neil C Smith <ne...@apache.org> on 2021/02/01 09:47:41 UTC
Re: GitHub Packages
On Sun, 31 Jan 2021 at 19:18, Lars Bruun-Hansen <lb...@gmail.com> wrote:
> I had the exact same idea for example in relation to Apache NetBeans
> native artifacts (launcher, nbi libs, nbi launcher, profiler libs)
> because the https://netbeans.osuosl.org/binaries/ is really meant to
> be a site for truly external binaries, i.e. those that are *outside*
> of the Apache NetBeans project. So using something more internal to
> the build pipeline would be preferable.
Well, if they're our "internal" artefacts then an internal release
process would certainly be preferable. If we can consider certain
chicken-and-egg issues here (ie. binaries required at IDE build time),
then a separate source and binary release process for these and
distribution via standard ASF channels might be the right way to
approach this?
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: GitHub Packages
Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Feb 2021 at 14:38, Eric Bresie <eb...@gmail.com> wrote:
> On Mon, Feb 1, 2021 at 5:11 AM Neil C Smith <ne...@apache.org> wrote:
> > On Mon, 1 Feb 2021 at 10:27, Lars Bruun-Hansen <lb...@gmail.com>
> > wrote:
> > > Yep. I was considering that the right place for such internal
> > > artifacts might be ASF's Maven Repo. The problem I see with that one
> > > is that it is meant for _released_ artifacts meaning official ASF
> > > releases. They need to go through the voting process. This is not the
> > > case for these particular artifacts, they are in effect interim, ...
> >
> > Firstly, let's separate out sources and binary artefacts here -
> > sources *require* votes, although we do generally vote on binary
> > artefacts too.
> >
> > IMO, if a pre-built binary is being consumed by an end-user building
> > our sources or a platform developer building their project, then we
> > should be treating it as a released artefact, and it might be a lot
> > less complicated if we did.
...
> Taking a step back (and expanding a little), I'm trying to understand the
> use cases, scope and usage of the artifacts
>
> Assume there are:
> (1) netbeans sources code for building
Perhaps a bigger step back?! :-) At least in terms of what I'm getting at.
Apache releases sources. We only vote on one source bundle for each
release from the NetBeans repo. Even other source bundles, such as
platform sources, are really treated as a build artefact.
Convenience artefacts (or binaries, but as said some aren't binaries)
should be verifiably built from that voted on source bundle. As much
as possible that's part of the checking process and voting on them.
Now IMO, there's something of a chicken and egg problem with the
source bundle linking to binary artefacts of that source bundle. So
unless everyone who builds the NetBeans sources has to build all the
native binaries on each platform for themselves, there's something of
a fudge going on. Not one that's that concerning ... assuming we
ensure there's no way the released sources and referred to binaries
can ever get out of sync!
However, if we treat them as properly released artefacts, then there's
no fudge. It reflects the fact that they're not really interim if
we're providing them as convenience binaries for people building
various other sources. And it may also solve a bunch of issues for
ourselves in terms of considering how to manage them and simplify our
build processes in future.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: GitHub Packages
Posted by Eric Bresie <eb...@gmail.com>.
On Mon, Feb 1, 2021 at 5:11 AM Neil C Smith <ne...@apache.org> wrote:
> On Mon, 1 Feb 2021 at 10:27, Lars Bruun-Hansen <lb...@gmail.com>
> wrote:
> > Yep. I was considering that the right place for such internal
> > artifacts might be ASF's Maven Repo. The problem I see with that one
> > is that it is meant for _released_ artifacts meaning official ASF
> > releases. They need to go through the voting process. This is not the
> > case for these particular artifacts, they are in effect interim, and I
> > don't think the community need more artifacts that we need to vote
> > on?.
>
> Firstly, let's separate out sources and binary artefacts here -
> sources *require* votes, although we do generally vote on binary
> artefacts too.
>
> IMO, if a pre-built binary is being consumed by an end-user building
> our sources or a platform developer building their project, then we
> should be treating it as a released artefact, and it might be a lot
> less complicated if we did.
>
> I would note that the Windows launchers are built as part of the
> release process on Jenkins. There may be pros and cons to that in
> terms of being in sync with people building locally? Having all the
> native binaries released officially via ASF Maven repos (or dist.a.o)
> might actually be better, and people can still check out their sources
> and build locally if they want.
>
>
Taking a step back (and expanding a little), I'm trying to understand the
use cases, scope and usage of the artifacts
Assume there are:
(1) netbeans sources code for building
(a) IDE/Platform
(b) Installers, plugins, etc.
(c) Netbeans Platform Applications (i.e. apps built on top of Netbeans
Platforms)
(2) For build of the above, there are dependencies such as
(a) internal dependencies
- [artifacts built during normal build; i.e. dependency
project/clusters/modules produced during build time of NBs],
(b) external dependencies
- Artifacts pull for use during normal builds
https://netbeans.osuosl.org/binaries/ .
- Not fully sure what the difference between b and c are here.
- Assume b artifacts are dependencies which may not be available
directly due to for license distribution constraints or artifacts not yet
published or not still available on official channels like at c.
- Or maybe some of this is an ASF constrain on what can and cannot be
used during build and delivery]
(c) "Official repository
- Artifacts pulled from official published artifacts, possibly publish
by other projects, for use during build and/or runtime - i.e. ASF Maven,
Maven Central, etc.)
(d) Assume during build testing there may also be further "test
dependencies" [i.e. JUnit, etc.] which also may fall into a variation of
the above b or c
(3) For runtime there are
(a) Installers for a given application
(b) Applications themselves (i.e Netbeans IDE or Netbeans Platform)
(c) Each of which may have runtime dependencies or can have plugins
available
- [published to Netbeans plugin site; or maybe alternative sites]
I guess some of this also is dependant on the mechanism used to pull these
- ant build [not sure how dependencies are pulled here],
- maven build pulling from maven applicable repositories,
- pulled via some get / download mechanism, or
- a "plugin pull/install" mechanisms.
- Each of these assume would depend on different publishers sites
Assume the Github packages would be usable during some parts of this (i.e.
as part of 2 b and c as alternatives) but I'm guessing here
Eric Bresie
ebresie@gmail.com
Re: GitHub Packages
Posted by Neil C Smith <ne...@apache.org>.
On Mon, 1 Feb 2021 at 10:27, Lars Bruun-Hansen <lb...@gmail.com> wrote:
> Yep. I was considering that the right place for such internal
> artifacts might be ASF's Maven Repo. The problem I see with that one
> is that it is meant for _released_ artifacts meaning official ASF
> releases. They need to go through the voting process. This is not the
> case for these particular artifacts, they are in effect interim, and I
> don't think the community need more artifacts that we need to vote
> on?.
Firstly, let's separate out sources and binary artefacts here -
sources *require* votes, although we do generally vote on binary
artefacts too.
IMO, if a pre-built binary is being consumed by an end-user building
our sources or a platform developer building their project, then we
should be treating it as a released artefact, and it might be a lot
less complicated if we did.
I would note that the Windows launchers are built as part of the
release process on Jenkins. There may be pros and cons to that in
terms of being in sync with people building locally? Having all the
native binaries released officially via ASF Maven repos (or dist.a.o)
might actually be better, and people can still check out their sources
and build locally if they want.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: GitHub Packages
Posted by Lars Bruun-Hansen <lb...@gmail.com>.
On Fri, Feb 5, 2021 at 3:29 PM Eric Bresie <eb...@gmail.com> wrote:
>
> Regarding the authentication...
>
> As I recall during build for somethings, the builds still had to be
> certified in some way before fully usable. Is this any different then
> authentication with Github? See
> https://docs.github.com/en/packages/learn-github-packages/about-github-packages#authenticating-to-github-packages
>
> Not an expert here but it sounds like the action can be setup to give
> certain roles (i.e. read only vs write). So in this case would the main
> folks in control of the apache/netbeans setup the roles and access so that
> those building would have "write" / "publish" access while others would
> have "read" access to the interim build jars.
>
Regarding GitHub Packages authentication.
Authorization isn't the issue. Authentication is. The documentation
link you reference - official one from GitHub - isn't clear on the
fact the GitHub Packages requires authentication even if you are just
consuming. The confusion is partly due to GitHub's (at least for me)
strange use of the word "install". Here it actually means that you are
consuming something *from* the GitHub Packages registry and
'installing' it locally. Putting something into GitHub Packages is
called "publishing". The latter terminology is logical to me, the
former is not.
What it boils down to: *any* use of GitHub Packages, reading or
writing, requires a PAT (Personal Access Token). It doesn't matter if
the project itself is private or public. This PAT would be cumbersome
for NetBeans distro users to configure. Every user who wishes to do
"ant" on NetBeans distro would have to do this. It is discussed at
length here [1]. Note the amount of people who feel tricked by
GitHub's unclear terminology.
GitHub employee Jamie Cansdale (jcandale) has proposed a workaround
[2] for this problem but I don't particularly like it. But it would
mean we could hardwire a shared PAT into the NetBeans Ant build
properties. Note that "Shared" in relation to Personal Access Token is
an obvious contradiction. :-)
[1] https://github.community/t/download-from-github-package-registry-without-authentication/14407
[2] https://github.community/t/download-from-github-package-registry-without-authentication/14407/44
/Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: GitHub Packages
Posted by Eric Bresie <eb...@gmail.com>.
Regarding the authentication...
As I recall during build for somethings, the builds still had to be
certified in some way before fully usable. Is this any different then
authentication with Github? See
https://docs.github.com/en/packages/learn-github-packages/about-github-packages#authenticating-to-github-packages
Not an expert here but it sounds like the action can be setup to give
certain roles (i.e. read only vs write). So in this case would the main
folks in control of the apache/netbeans setup the roles and access so that
those building would have "write" / "publish" access while others would
have "read" access to the interim build jars.
I suppose in theory a follow on would be to publish them to maven repo
afterwards as another action but this is all hypothetical to me at
the moment.
Eric Bresie
ebresie@gmail.com
On Mon, Feb 1, 2021 at 4:27 AM Lars Bruun-Hansen <lb...@gmail.com>
wrote:
> On Mon, Feb 1, 2021 at 10:48 AM Neil C Smith <ne...@apache.org>
> wrote:
> >
> > On Sun, 31 Jan 2021 at 19:18, Lars Bruun-Hansen <lb...@gmail.com>
> wrote:
> > > I had the exact same idea for example in relation to Apache NetBeans
> > > native artifacts (launcher, nbi libs, nbi launcher, profiler libs)
> > > because the https://netbeans.osuosl.org/binaries/ is really meant to
> > > be a site for truly external binaries, i.e. those that are *outside*
> > > of the Apache NetBeans project. So using something more internal to
> > > the build pipeline would be preferable.
> >
> > Well, if they're our "internal" artefacts then an internal release
> > process would certainly be preferable. If we can consider certain
> > chicken-and-egg issues here (ie. binaries required at IDE build time),
> > then a separate source and binary release process for these and
> > distribution via standard ASF channels might be the right way to
> > approach this?
> >
>
> Yep. I was considering that the right place for such internal
> artifacts might be ASF's Maven Repo. The problem I see with that one
> is that it is meant for _released_ artifacts meaning official ASF
> releases. They need to go through the voting process. This is not the
> case for these particular artifacts, they are in effect interim, and I
> don't think the community need more artifacts that we need to vote
> on?.
>
> For these particular build results we "just" need a place to store
> them which offers:
> (1) acceptable up-time.
> (2) long term durability
> (3) immutability (a standard trait for most Maven repos .. once an
> artifact is published it can never be overwritten)
> (4) publication access tightly linked to project commit permission.
> (we don't need more stuff to administer)
> (5) consumable via http(s) (so can be used via the Ant
> DownloadBinaries task) without requiring authentication (so doesn't
> require user to jump through hoops to build NetBeans)
> (6) not seen as a channel for official ASF releases.
>
> GitHub Packages would have been perfect IMO ... if it wasn't for that
> small caveat about authentication, i.e. it GitHub Packages fail on
> requirement #5, but pass on all others.
>
> We can publish them into the ASF Maven Repo as SNAPSHOTS but they are
> really not and such solution would fail on #2 and #3 depending on how
> the ASF operates its Nexus Repo.
>
> Lars
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
Re: GitHub Packages
Posted by Lars Bruun-Hansen <lb...@gmail.com>.
On Mon, Feb 1, 2021 at 10:48 AM Neil C Smith <ne...@apache.org> wrote:
>
> On Sun, 31 Jan 2021 at 19:18, Lars Bruun-Hansen <lb...@gmail.com> wrote:
> > I had the exact same idea for example in relation to Apache NetBeans
> > native artifacts (launcher, nbi libs, nbi launcher, profiler libs)
> > because the https://netbeans.osuosl.org/binaries/ is really meant to
> > be a site for truly external binaries, i.e. those that are *outside*
> > of the Apache NetBeans project. So using something more internal to
> > the build pipeline would be preferable.
>
> Well, if they're our "internal" artefacts then an internal release
> process would certainly be preferable. If we can consider certain
> chicken-and-egg issues here (ie. binaries required at IDE build time),
> then a separate source and binary release process for these and
> distribution via standard ASF channels might be the right way to
> approach this?
>
Yep. I was considering that the right place for such internal
artifacts might be ASF's Maven Repo. The problem I see with that one
is that it is meant for _released_ artifacts meaning official ASF
releases. They need to go through the voting process. This is not the
case for these particular artifacts, they are in effect interim, and I
don't think the community need more artifacts that we need to vote
on?.
For these particular build results we "just" need a place to store
them which offers:
(1) acceptable up-time.
(2) long term durability
(3) immutability (a standard trait for most Maven repos .. once an
artifact is published it can never be overwritten)
(4) publication access tightly linked to project commit permission.
(we don't need more stuff to administer)
(5) consumable via http(s) (so can be used via the Ant
DownloadBinaries task) without requiring authentication (so doesn't
require user to jump through hoops to build NetBeans)
(6) not seen as a channel for official ASF releases.
GitHub Packages would have been perfect IMO ... if it wasn't for that
small caveat about authentication, i.e. it GitHub Packages fail on
requirement #5, but pass on all others.
We can publish them into the ASF Maven Repo as SNAPSHOTS but they are
really not and such solution would fail on #2 and #3 depending on how
the ASF operates its Nexus Repo.
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists