aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-21 15:12:34 +0200
committerGitHub <noreply@github.com>2023-06-21 15:12:34 +0200
commit7590b47dbd7e8afd7caed98bf88002a7e3ffe67e (patch)
tree560c06dfa89c3cb3728f0bb72fcce91a4d375c14
parent890bf9fc76262557e9477a1215fafd79b508cbd3 (diff)
parentbca529da9239e2cb7e4337ca55d5c38f7c8d250a (diff)
downloadservo-7590b47dbd7e8afd7caed98bf88002a7e3ffe67e.tar.gz
servo-7590b47dbd7e8afd7caed98bf88002a7e3ffe67e.zip
Auto merge of #29901 - mukilan:switch-nightly-to-2020-layout, r=mrobinson
Default nightly builds to layout 2020 This PR switches the filenames used by nightly builds so that the default `servo-latest.{ext}` packages use the 2020 engine and the 'servo-latest-legacy-layout.{ext}` packages use the 2013 engine. Since the platform workflows are reused by the main, quick-check, PR and WPT import flows and since the 2013/2020 flags are also controlled by try branches, I've kept the changes isolated to `nightly.yml` and `package_commands.py` and have avoided changing the input parameters. If we want to deault all the workflows to 2020, I can decline this PR and raise a new one. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they modify packaging logic.
-rw-r--r--.github/workflows/nightly.yml30
-rw-r--r--python/servo/package_commands.py10
2 files changed, 22 insertions, 18 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index d06cc3dd69c..15ad5407771 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -59,11 +59,11 @@ jobs:
needs:
- create-draft-release
- upload-linux
- - upload-linux-2020
+ - upload-linux-2013
- upload-win
- - upload-win-2020
+ - upload-win-2013
- upload-mac
- - upload-mac-2020
+ - upload-mac-2013
upload-win:
# This job is only useful when run on upstream servo.
@@ -73,20 +73,20 @@ jobs:
- create-draft-release
uses: ./.github/workflows/windows.yml
with:
- layout: '2013'
+ layout: '2020'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
- upload-win-2020:
+ upload-win-2013:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
- name: Upload nightly (Windows layout-2020)
+ name: Upload nightly (Windows layout-2013)
needs:
- create-draft-release
uses: ./.github/workflows/windows.yml
with:
- layout: '2020'
+ layout: '2013'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
@@ -99,20 +99,20 @@ jobs:
- create-draft-release
uses: ./.github/workflows/mac.yml
with:
- layout: '2013'
+ layout: '2020'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
- upload-mac-2020:
+ upload-mac-2013:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
- name: Upload nightly (macOS layout-2020)
+ name: Upload nightly (macOS layout-2013)
needs:
- create-draft-release
uses: ./.github/workflows/mac.yml
with:
- layout: '2020'
+ layout: '2013'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
@@ -125,20 +125,20 @@ jobs:
- create-draft-release
uses: ./.github/workflows/linux.yml
with:
- layout: '2013'
+ layout: '2020'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
- upload-linux-2020:
+ upload-linux-2013:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
- name: Upload nightly (Linux layout-2020)
+ name: Upload nightly (Linux layout-2013)
needs:
- create-draft-release
uses: ./.github/workflows/linux.yml
with:
- layout: '2020'
+ layout: '2013'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index b8e22d42b72..092b94f7a30 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -518,9 +518,9 @@ class PackageCommands(CommandBase):
package_hash_fileobj = io.BytesIO(package_hash.encode('utf-8'))
if '2020' in platform:
- asset_name = f'servo-latest-layout-2020.{extension}'
- else:
asset_name = f'servo-latest.{extension}'
+ else:
+ asset_name = f'servo-latest-legacy-layout.{extension}'
release.upload_asset(package, name=asset_name)
release.upload_asset_from_memory(
@@ -545,7 +545,11 @@ class PackageCommands(CommandBase):
BUCKET = 'servo-builds2'
DISTRIBUTION_ID = 'EJ8ZWSJKFCJS2'
- nightly_dir = 'nightly/{}'.format(platform)
+ if '2020' in platform:
+ nightly_dir = 'nightly/{}'.format(platform.replace('-layout2020', ''))
+ else:
+ nightly_dir = 'nightly/{}-legacy-layout'.format(platform)
+
filename = nightly_filename(package, timestamp)
package_upload_key = '{}/{}'.format(nightly_dir, filename)
extension = path.basename(package).partition('.')[2]