Alice Cecile
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Parallelizable release prep ## Current release strategy We need to prepare several parallel-but-distinct documents for each release: 1. The release notes 2. The migration guide 3. The complete change log 4. The list of contributors The release notes historically have been created ad-hoc, by looking through the list of PRs merged, and adding a stub section. This has been improved already for the 0.14 cycle, through the addition of the `C-Needs-Release-Note` label. This will give us a good initial list, but it will need to be checked for omissions, unwarranted inclusions and the ability to consolidate related work. First, the migration guides are scraped from Github, looking at the `C-Breaking-Change` label. These are then compiled into a single list using the `generate-release` tool. Next, the individual migration guide entries need to be manually checked for errors, reversions, and general quality. Unlike the release notes, these may have last-minute additions in order to address critical bugs or problems that required breaking changes. The change log is a simple list of all PRs, sorted by area, that were merged between the last Bevy release and the current one. This includes those shipped in patch releases as well! This step is largely mechanical, although it has historically been organized by area. Finally, the list of contributors is a simple scraped, randomized list of the complete set of PR authors. ## Motivation Preparing a new Bevy release is a *ton* of work, and often ends up bottlenecked on a single central PR with hundreds of comments that's prepared at the last minute. This responsibility usually lands on a single person, who authors the PR and coordinates the release. Keeping track of all of the work is painful, but the single most serious problem is how this interacts with parsed / generated migration guide data. Currently, `generate-release` simply scrapes the relevant section from each PR, compiles it into a list, and then the person running the tool submits a PR with the migration guide in a single file. If we need to regenerate that list (due to changes), any manual cleanup is lost (unless an inordinate amount of care is taken). The consequences of this are: 1. We can't start generating and editing the migration guide until the very end of the release cycle, once we have a feature freeze. 2. Extending this to the release notes is fundamentally infeasible, as it *all* needs to be carefully written and revised. Individual PRs simply don't have the context required to frame a feature, and the audience is different. ## Core Idea The core problem here is that both Git and any tooling we might build really struggles to work with highly structured text documents in a single file. Instead, we should have one *folder* per document we're producing (release notes / migration guide), and then store each section in individual files. Then, in the central file, import the various component files during the generation of the website according to human-friendly annotations. This allows us to isolate changes from each other correctly and generate / regenerate sections of the migration guides and release notes independently. `generate-release`, in the end, should be very friendly to use and hack. This means a nice CLI, lots of comments, modules, and an extensible design. ## Details Data for each release is organized into 2 folders and 2 stand-alone files. These folders must live *outside* of the standard `content` folder: otherwise they will generate stub . By convention, these are stored in a top-level `release-content` folder. Inside that folder, we will have a folder for each release, and inside of *that* there will be: 1. `changelog.md`: a simple generated file of all merged PRs, including their title and PR number, that can be organized by section either manually or automatically 2. `authors.md`: a trivial generated file containing the full list of authors in a random order 3. `migration-guide/`: a folder containing the full set of migration guide files, one for each PR that has `C-Breaking-Change` - This should be initially generated from the Migration Guide section of each PR. 4. `release-notes/`: a folder containing the full set of release note files, one for each area that we want to cover. - This could be initially generated from `C-Needs-Release-Notes` PRs. The data in this folder is then imported into two **index pages** (one for the migration guide, one for the release notes), stored in the correct directory for the final post just as in previous releases. Each index page describes how the various component files are integrated into a cohesive document. This is done via some text importing mechanism (see Open Questions). An initial list of files for both the migration guide and releases is generated based on the tags assigned on the `bevyengine/bevy` repo. Each of these areas gets its own file, with a name that combines the PR title and its PR number. The generating tool is run periodically, updating the list of files. When a new file is added, a corresponding stub entry is added to the bottom of the Migration Guide / Release Notes index file, recording that it's currently uncategorized. Each file for the migration guide has the following metadata fields: 1. PR number(s): multiple may be grouped into a single entry 2. Title The body text is used for the advice on how to actually migrate. Each file for the release notes has the following metadata fields: 1. PR number(s): multiple may be grouped into a single entry 2. Title 3. Author(s): many features have multiple authors that need to be credited There are several invariants we need to uphold (ideally checked in CI): - Each file must correspond to a section in the index. - Each section in the index must correspond to a file. - Each PR with a relevant label must correspond to a file. Note that neither the migration guide nor release notes map cleanly onto PRs (even though the converse is true)! Many entries will cover multiple PRs, and a few will have no corresponding PR on `bevyengine/bevy` as they reflect process, book, or website changes that still need to be highlighted. Because of this, the process to ensure that each PR corresponds to a section is slightly non-trivial. Rather than trying to maintain some form of index, this should be built dynamically each time the check is performed and compared against the list of PRs that should be included. ## Implementation steps 1. Fix bug with draft posts being published on RSS. 1. https://github.com/bevyengine/bevy-website/pull/1162 2. Create a new folder for the 0.14 release notes, with a stub index file. 3. Create a new folder for the 0.14 migration guide, with a stub index file. 4. Add the ability to generate a migration guide for a single PR (pass in a URL or PR number). 5. Change the `generate-release` tool to generate seperate files for each PR in the folder structure laid out above. 6. Generate a `migration-guide/_index.md` file that can store links to the seperate files. 7. Change the `generate-release` tool to add entries to the index file when creating new files. 8. Add a daily job that scrapes the `bevyengine/bevy` repo and makes an individual PR for each missing example, populated with the relevant content to start. 1. When performing this process, be sure to check that a PR is not already open! 2. Maintainers must be able to merge PRs to the branch of the bot: as a result, it probably makes sense to create a branch directly on the `bevyengine/bevy-website` repo. 3. Each of these new PRs is automatically assigned to a milestone and gets a label. 4. The original authors of the work are automatically requested as reviewers. 10. Add a new validation tool to `generate-release` to check and repair the document invariants above. 11. Add a CI check to run this validation tool automatically (checking only for missing links, not completeness). 12. Document that the validation tool must be run in completeness mode to the release checklist. 13. Mirror all of these tools so they work for release notes as well as migration guides. ## Open questions - How do we actually combine the text nicely using Zola? - There is the Tera [`{% include %}`](https://keats.github.io/tera/docs/#include) tag, though it will cause orphan pages to be generated as well for each PR if they are also within the `content` folder. -BD103 - First, I'm not entirely sure how we can "[…] in the central file, import the various component files during the generation of the website according to human-friendly annotations." Unless the files we're importing are stored in another repo, or outside of the /content/ directory, or as a separate file format like *.toml, then these will show up as orphan, and or invalid, pages which is undesirable I believe. Also the one suggestion of the {% include … %} tag from Tera is primarily meant — as far as I know — for templates, to more or less create reusable widgets, rather than import another *.md file. - Trial ## Relevant Links - [Bevy 0.13 Release Post] - [Migration Guides] - [`generate-release`] - [0.13 Migration Guide Pull Request] - [`C-Breaking-Change`] - [`C-Needs-Release-Notes`] - [`generate-release` Design Document] - [Most recent discussion on `generate-release`] - [Metadata in Markdown Files] - [Preliminary design document by Nicck] [Bevy 0.13 Release Post]: https://bevyengine.org/news/bevy-0-13/ [Migration Guides]: https://bevyengine.org/learn/migration-guides/introduction/ [`generate-release`]: https://github.com/bevyengine/bevy-website/tree/50b17608b753cd6ef849283f4efcabe56dabdd22/generate-release [0.13 Migration Guide Pull Request]: https://github.com/bevyengine/bevy-website/pull/892 [`C-Breaking-Change`]: https://github.com/bevyengine/bevy/pulls?q=is%3Apr+label%3AC-Breaking-Change+is%3Aclosed [`C-Needs-Release-Notes`]: https://github.com/bevyengine/bevy/pulls?q=is%3Apr+is%3Aclosed+label%3AC-Needs-Release-Note [`generate-release` Design Document]: https://discord.com/channels/691052431525675048/692572690833473578/1132160963420897410 [Most recent discussion on `generate-release`]: https://discord.com/channels/691052431525675048/1210295602299150426 [Metadata in Markdown Files]: https://docs.github.com/en/contributing/writing-for-github-docs/using-yaml-frontmatter [Preliminary design document by Nicck]: https://discord.com/channels/691052431525675048/692572690833473578/1132160963420897410

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully