All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixup! CI: use https, not http to download binaries from perforce.com
       [not found] <0220423142559.32507-5-carenas@gmail.com>
@ 2022-04-23 15:44 ` Carlo Marcelo Arenas Belón
  2022-04-23 16:16   ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Carlo Marcelo Arenas Belón @ 2022-04-23 15:44 UTC (permalink / raw)
  To: git; +Cc: avarab, gitster, Carlo Marcelo Arenas Belón

Not sure why this is suddently faiing, but this proposed fixup also
makes both server names consistent and would be easier to clean up
later.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 ci/install-dependencies.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 98444821729..b8ace0355e2 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -5,7 +5,7 @@
 
 . ${0%/*}/lib.sh
 
-P4WHENCE=https://filehost.perforce.com/perforce/r$LINUX_P4_VERSION
+P4WHENCE=https://cdist2.perforce.com/perforce/r$LINUX_P4_VERSION
 LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION
 UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev
  tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl
-- 
2.36.0.266.g59f845bde02


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fixup! CI: use https, not http to download binaries from perforce.com
  2022-04-23 15:44 ` [PATCH] fixup! CI: use https, not http to download binaries from perforce.com Carlo Marcelo Arenas Belón
@ 2022-04-23 16:16   ` Junio C Hamano
  2022-04-23 17:33     ` Carlo Arenas
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2022-04-23 16:16 UTC (permalink / raw)
  To: Carlo Marcelo Arenas Belón; +Cc: git, avarab

Carlo Marcelo Arenas Belón  <carenas@gmail.com> writes:

> Not sure why this is suddently faiing, but this proposed fixup also
> makes both server names consistent and would be easier to clean up
> later.

Yeah, I was wondering why the other one uses a fully hardcoded URL
that these variables do not know about.

Would it make sense to rename LINUX_P4_VERSION to P4_AT_PERFORCE_VERSION
or something and set it also in the macOS section in ci/lib.sh?  We have

	# The Linux build installs the defined dependency versions below.
	# The OS X build installs much more recent versions, whichever
	# were recorded in the Homebrew database upon creating the OS X
	# image.
	# Keep that in mind when you encounter a broken OS X build!
	export LINUX_P4_VERSION="16.2"

which if I am reading your series correctly has become stale; we no
longer rely on brew/cask, and do this for macOS identically to what
we do here for Linux.


> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
> ---
>  ci/install-dependencies.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
> index 98444821729..b8ace0355e2 100755
> --- a/ci/install-dependencies.sh
> +++ b/ci/install-dependencies.sh
> @@ -5,7 +5,7 @@
>  
>  . ${0%/*}/lib.sh
>  
> -P4WHENCE=https://filehost.perforce.com/perforce/r$LINUX_P4_VERSION
> +P4WHENCE=https://cdist2.perforce.com/perforce/r$LINUX_P4_VERSION
>  LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION
>  UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev
>   tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fixup! CI: use https, not http to download binaries from perforce.com
  2022-04-23 16:16   ` Junio C Hamano
@ 2022-04-23 17:33     ` Carlo Arenas
  0 siblings, 0 replies; 3+ messages in thread
From: Carlo Arenas @ 2022-04-23 17:33 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, avarab

On Sat, Apr 23, 2022 at 10:12 AM Junio C Hamano <gitster@pobox.com> wrote:
> Carlo Marcelo Arenas Belón  <carenas@gmail.com> writes:
>
> > Not sure why this is suddenly failing, but this proposed fixup also
> > makes both server names consistent and would be easier to clean up
> > later.

I think my merge resolution was wrong and so it might not be as
obvious as I thought.

> Yeah, I was wondering why the other one uses a fully hardcoded URL
> that these variables do not know about.
>
> Would it make sense to rename LINUX_P4_VERSION to P4_AT_PERFORCE_VERSION
> or something and set it also in the macOS section in ci/lib.sh?

Will do (if I can just find which of the sometimes conflicting changes
in the later branches would be the best target),
but I was preparing a fixup or commit to a different series instead of
one for this one.

>  We have
>
>         # The Linux build installs the defined dependency versions below.
>         # The OS X build installs much more recent versions, whichever
>         # were recorded in the Homebrew database upon creating the OS X
>         # image.
>         # Keep that in mind when you encounter a broken OS X build!
>         export LINUX_P4_VERSION="16.2"
>
> which if I am reading your series correctly has become stale; we no
> longer rely on brew/cask, and do this for macOS identically to what
> we do here for Linux.

correct; this comment is the one I punted fixing to avoid conflicts
and that I refer to in my commit.
I suspect that some of the moving around that was done in later code
could be avoided now that both jobs use wget to get perforce, but
regardless moving that comment into the linux branch wasn't correct
(we can't assume then what the other branch does) so at minimum it
should look like :

         # The Linux build installs the defined dependency versions below.
         # The OS X build installs much more recent versions
         # Keep that in mind when you encounter a broken OS X build!

Carlo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-23 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0220423142559.32507-5-carenas@gmail.com>
2022-04-23 15:44 ` [PATCH] fixup! CI: use https, not http to download binaries from perforce.com Carlo Marcelo Arenas Belón
2022-04-23 16:16   ` Junio C Hamano
2022-04-23 17:33     ` Carlo Arenas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.