Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Asana paperwork for public releases #2287

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented Feb 28, 2024

Task/Issue URL: https://app.asana.com/0/0/1206628689034177/f
CC: @loremattei

Description:
This change updates publish_dmg_release workflow so that it moves release-related tasks to Done column
in macOS App Board, closes them (all but the release task, incident tasks and Current Objectives projects),
run Create DMG Variants pipeline and instructs the release DRI to announce the release to the company.

Steps to test this PR:
Verify the following items:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@ayoy ayoy marked this pull request as draft February 28, 2024 23:36
@github-actions github-actions bot added bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project and removed bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project labels Feb 28, 2024
@ayoy ayoy requested a review from jaceklyp February 29, 2024 09:46
@ayoy ayoy marked this pull request as ready for review February 29, 2024 09:47
Comment on lines +303 to +331
handle_public_release() {
local incidents_parent_task_id="${INCIDENTS_PARENT_TASK_ID:-${default_incidents_parent_task_id}}"
local current_objectives_project_id="${CURRENT_OBJECTIVES_PROJECT_ID:-${default_current_objectives_project_id}}"

# 1. Get the existing Asana tag for the release.
local tag_id
tag_id=$(find_asana_release_tag "$marketing_version")

# 2. Fetch task IDs for the release tag.
local task_ids
read -ra task_ids <<< "$(fetch_tagged_tasks_ids "$tag_id")"

# 3. Move all tasks to Done section.
move_tasks_to_section "$target_section_id" "${task_ids[@]}"

# 4. Complete tasks that don't require a post-mortem.
complete_tasks "${task_ids[@]}"

# 5. Fetch current release notes from Asana release task.
local release_notes=()
while read -r line; do
release_notes+=("$line")
done <<< "$(fetch_current_release_notes "${release_task_id}")"

# 6. Construct release announcement task description
local html_notes
html_notes="$(construct_release_announcement_task_description)"
cat > "${announcement_task_contents_file}" <<< "${html_notes}"
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main thing being added in this PR

@ayoy ayoy requested review from samsymons and removed request for jaceklyp February 29, 2024 14:34
@ayoy ayoy assigned samsymons and unassigned jaceklyp Feb 29, 2024
echo "${task_ids[@]}"
}

fetch_incident_task_ids() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 👍

Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I think it's good. I went through the changes a few times to follow what was going on, with my somewhat limited Bash knowledge anyway, and checked that the testing steps were all good. Nothing wrong that I can see, nice work! 🚢

@ayoy ayoy merged commit aa4f566 into release/1.77.0 Mar 1, 2024
17 checks passed
@ayoy ayoy deleted the dominik/asana-public-release-automation branch March 1, 2024 08:06
diegoreymendez pushed a commit that referenced this pull request Mar 1, 2024
Task/Issue URL: https://app.asana.com/0/0/1206628689034177/f

Description:
This change updates publish_dmg_release workflow so that it moves release-related tasks to Done column
in macOS App Board, closes them (all but the release task, incident tasks and Current Objectives projects),
run Create DMG Variants pipeline and instructs the release DRI to announce the release to the company.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants