Page MenuHomeElementl

3/ update update_version script to upload new versioned content/images to s3
ClosedPublic

Authored by yuhan on Jun 28 2021, 8:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 18, 12:17 AM
Unknown Object (File)
Mon, Nov 14, 1:35 AM
Unknown Object (File)
Sun, Nov 13, 3:30 PM
Unknown Object (File)
Sun, Nov 13, 12:08 PM
Unknown Object (File)
Fri, Nov 11, 8:22 AM
Unknown Object (File)
Fri, Nov 11, 12:40 AM
Unknown Object (File)
Wed, Nov 9, 4:18 PM
Unknown Object (File)
Sep 12 2022, 3:58 AM
Subscribers
None

Details

Summary

depends on D8558

  1. create versioned content /tmp/versioned_content/<version_value> and upload it to s3/versioned_content/<version_value>
  2. create versioned images /tmp/versioned_images/<value_value> and upload it to s3/versioned_images/<version_value>
  3. prettify versions and versioned_navigation json so git can better capture the changes (trying to avoid the merge conflict caused by master and release branch out of sync)
Test Plan

ran python update_version.py --version 0.11.foo locally, got versioned_content and versioned_images show up in the s3 bucket.

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jordansanders added inline comments.
docs/next/.versioned_content/_versions.json
1–19

Smart! This should save us so many headaches.

docs/update_version.py
1–2

https://click.palletsprojects.com/en/8.0.x/utils/#printing-to-stdout

click.echo if we want to avoid disabling this pylint

This revision is now accepted and ready to land.Jun 29 2021, 3:07 PM

print -> click.echo
update remove_version.py too