Skip to content

[No QA] Fix bugs found with staging deploy comments#2479

Merged
roryabraham merged 9 commits into
mainfrom
andrew-staging-comment
Apr 20, 2021
Merged

[No QA] Fix bugs found with staging deploy comments#2479
roryabraham merged 9 commits into
mainfrom
andrew-staging-comment

Conversation

@AndrewGable

Copy link
Copy Markdown
Contributor

Details

We found a few bugs with the staging deploy comments, this hopefully resolves all of them:

  1. Comment link had an extra newline
  2. Comment had a unneeded timestamp, deleted it
  3. Comments were added to some older PRs, we updated the regex to fix that bug
  4. Added a IS_PRODUCTION_DEPLOY flag to only comment on relevant PRs for staging or production deploys

Fixed Issues

Fixes 🐛 s!

Tests

  1. Merge this PR
  2. Verify all the bugs above are resolved

@AndrewGable AndrewGable requested a review from roryabraham April 19, 2021 23:32
@AndrewGable AndrewGable self-assigned this Apr 19, 2021
@AndrewGable AndrewGable requested a review from a team as a code owner April 19, 2021 23:32
@MelvinBot MelvinBot requested review from MariaHCD and removed request for a team April 19, 2021 23:32
const priorTagIndex = _.indexOf(tags, inputTag) + 1;

if (priorTagIndex === 0) {
console.log(`No ${itemToFetch} was found for input tag ${inputTag}.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this will end up having a weird newline in the middle


if (priorTagIndex === tags.length) {
const err = new Error('Somehow, the input tag was at the end of the paginated result, '
+ "so we don't have the prior tag.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
+ "so we don't have the prior tag.");
+ 'so we don't have the prior tag.');


return GitUtils.getPullRequestsMergedBetween(priorTag, inputTag);
})
.then(pullRequestList => core.setOutput('PR_LIST', pullRequestList))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's also log the list of PRs we found here

@AndrewGable AndrewGable requested a review from roryabraham April 19, 2021 23:51

@roryabraham roryabraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, let's give it a go!

@roryabraham roryabraham merged commit e21dedd into main Apr 20, 2021
@roryabraham roryabraham deleted the andrew-staging-comment branch April 20, 2021 00:15
@roryabraham roryabraham changed the title Fix bugs found with staging deploy comments [No QA] Fix bugs found with staging deploy comments Apr 20, 2021
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@roryabraham

Copy link
Copy Markdown
Contributor

Nice, this seemed to work!

@roryabraham

Copy link
Copy Markdown
Contributor

@roryabraham

Copy link
Copy Markdown
Contributor

Fix here

@OSBotify

OSBotify commented May 8, 2021

Copy link
Copy Markdown
Contributor

🚀 Deployed to production in version: 1.0.39-5🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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