Perforce access depends on obsolete tool p4web

UNCONFIRMED
Unassigned

Status

Webtools
DXR
UNCONFIRMED
10 months ago
7 months ago

People

(Reporter: Jack Marr, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 months ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14

Steps to reproduce:

DXR Perforce support is based on the Perforce p4web tool that has discontinued (open sourced).   Here is their announcement:

https://www.perforce.com/blog/150427/announcing-deprecation-p4sandbox-p4web-perforce-review-daemon

I'm not sure what the status is - whether the open source version of p4web should be expected to remain viable, or if you want to design replacement functionality.
(Reporter)

Comment 1

10 months ago
The Docker container https://github.com/ambakshi/docker-perforce/blob/master/perforce-p4web/Dockerfile does not build due to a 404 error trying to download the last known p4web image.
(Reporter)

Comment 2

10 months ago
That Dockerfile needs some maintenance - 

  * Use different URL to get at the p4web image (Perforce did some file shuffling):
    RUN curl -o /usr/local/bin/p4web -sSL "https://swarm.workshop.perforce.com/downloads/guest/perforce_software/p4web/bin/r${P4WEB_VERSION}/bin.linux26x86_64/p4web" && chmod +x /usr/local/bin/p4web
  * Use shell form of CMD:
    CMD /usr/local/bin/p4web -b -U ${P4USER} -w 8080
 * In general probably a good practice to use /usr/local/bin instead of /usr/bin (several locations).
In addition, we've had other undetected breakages with p4 over the years since it's not under test. Do you know of a decent way to test interaction with Perforce when Perforce is a tool not freely available? If not, help doing the requisite mocks would be welcome. We don't use p4 ourselves, so it's always been a low priority.
(Reporter)

Comment 4

10 months ago
I've pinged our p4 expert, who also has contacts at Perforce, about getting you some help.  At worst we would be able to let you know when things break and perhaps propose fixes.  A management concern is that p4web is no longer maintained although the fact that they open sourced it suggests that they think it's viable at least in the near term.
Thanks, Jack! Help is always welcome. :-)

Comment 6

7 months ago
(In reply to Jack Marr from comment #2)
> That Dockerfile needs some maintenance - 
> 
>   * Use different URL to get at the p4web image (Perforce did some file
> shuffling):
>     RUN curl -o /usr/local/bin/p4web -sSL
> "https://swarm.workshop.perforce.com/downloads/guest/perforce_software/p4web/
> bin/r${P4WEB_VERSION}/bin.linux26x86_64/p4web" && chmod +x
> /usr/local/bin/p4web
>   * Use shell form of CMD:
>     CMD /usr/local/bin/p4web -b -U ${P4USER} -w 8080
>  * In general probably a good practice to use /usr/local/bin instead of
> /usr/bin (several locations).


Hi Jack,
 Sorry for the super late reply. Perforce has moved the p4web binary, and it took me some time to find it! I've updated my repo and the Dockerfile for p4web (https://github.com/ambakshi/docker-perforce/blob/master/perforce-p4web/Dockerfile). You can find p4web at https://swarm.workshop.perforce.com/downloads/guest/perforce_software/p4web/bin/r12.1/bin.linux26x86_64/p4web

Cheers,
Amit

Comment 7

7 months ago
My bad :/ That's exactly what you wrote. I was responding to your original email to me.

Amit
You need to log in before you can comment on or make changes to this bug.