Closed Bug 1464327 Opened 6 years ago Closed 6 years ago

geckodriver documentation on firefox-source-docs.mozilla.org is no longer getting updated

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: whimboo, Assigned: ahal)

Details

Attachments

(1 file)

On bug 1460307 I added documentation in how to retrieve crash report details for automated tests as executed via geckodriver. I pushed the commit on May 11th and it got merged to mozilla-central on May 12th:

https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=1b2671e3e9f2&filter-searchStr=doc&filter-tier=1&filter-tier=2&filter-tier=3

The DocUp job was running but the newly added documentation never has been uploaded and as such is not available at:

https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/index.html

When I run `mach doc` locally I can perfectly see the docs present and the appropriate HTML page has been generated.

Is something broken with uploads of docs right now?
Yeah, I also modified some docs under Marionette a few weeks ago and the changes are not showing up either.
You aren't the first person to notice that docs upload is broken.

I triggered a "docup" task against the latest mozilla-central revision at https://tools.taskcluster.net/groups/MuSx1h4DRVy4257G1J_qmA/tasks/NKki0q7MSaGV2b_ZeJjCXg/runs/0. Let's see if that fixes anything.

A proper fix is to find out why the task isn't running automatically or why it isn't working.

I'm moving the bug component because I feel this has more to do with automation configuration than docs generation.
Component: Generated Documentation → Task Configuration
Docs are being uploaded properly... to https://firefox-source-docs.mozilla.org/main/latest/.

We can see this in logs like https://taskcluster-artifacts.net/RPNDCL7BS_SmoULeHwmNIw/0/public/logs/live_backing.log.

I can't recall how we have the / URL on that site set up. Were we supposed to redirect / to /main/latest? Did that get messed up?
From tools/docs/mach_commands.py:

        # Until we redirect / to main/latest, upload the main docs
        # to the root.
        if project == 'main':
            s3_upload(files)

I suspect recent refactorings by ahal may have broken this branch.

ahal: could you please look into this?
Component: Task Configuration → Generated Documentation
Flags: needinfo?(ahal)
My apologies, looks like I forgot to remove a trailing comma and the project got changed to a tuple, e.g: (u'main',)

The DocUp task is able to successfully upload to "(u'main',)/62.0/_sources/..." on the server, e.g:
https://taskcluster-artifacts.net/D7zjNgBoTGiDF4c2NGv7OQ/0/public/logs/live_backing.log

This explains why this didn't get caught by CI.
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Flags: needinfo?(ahal)
Comment on attachment 8981136 [details]
Bug 1464327 - [docs] Fix doc uploading by removing trailing comma,

https://reviewboard.mozilla.org/r/247228/#review253806
Attachment #8981136 - Flags: review?(gps) → review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a5b4905bb617
[docs] Fix doc uploading by removing trailing comma, r=gps
https://hg.mozilla.org/mozilla-central/rev/a5b4905bb617
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Oh, I missed the Tier-3 part. And yes, those are the docs. Maybe it took a bit longer until they are available or some kind of caching. Anyway it's great that it works. Thanks!
They are behind a cloudfront CDN so yes, it takes a while for new docs to appear.
If you hold shift when clicking the refresh icon in Firefox, you'll force sending of the necessary HTTP headers to not use a cache. I /think/ this results in CloudFront validating the request against the S3 origin and always retrieving the latest document version.
That's what I did but which wasn't working. Even not after multiple force refresh. Anyway it works now.
My experience is that a force-refresh doesn't affect cloudfront.
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: