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

feat: truncate and remove chars from version desc. before deploy #65

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

kwajiehao
Copy link
Contributor

Overview

Currently, we get the following error when we attempt to deploy to AWS EB with certain commit messages:

Deployment failed: Error: Status: 403. Code: SignatureDoesNotMatch,
Message: The request signature we calculated does not match the
signature you provided. Check your AWS Secret Access Key and signing
method. Consult the service documentation for details.

This is not because our access key is wrong, but because there are certain characters in our commit message which are not dealt with properly by the beanstalk-deploy package. We know that the following characters have produced problems for us:

(    )    '

These are due to encoding issues on the original beanstalk-deploy library.

Rather than wait for a fix from the package author, we can first truncate the message, since the title is in the first few words, to lower the chance of a special character, and then we can replace these characters ourselves in the deploy step when setting the version description.

Here is a test run where the updated workflow succeeded in deploying.

Jie Hao Kwa added 2 commits November 4, 2020 19:39
Currently, we get the following error when we attempt to deploy to
AWS EB with certain commit messages:

```
Deployment failed: Error: Status: 403. Code: SignatureDoesNotMatch,
Message: The request signature we calculated does not match the
signature you provided. Check your AWS Secret Access Key and signing
method. Consult the service documentation for details.
```

This is not because our access key is wrong, but because there are
certain characters in our commit message which are not dealt with
properly by the beanstalk-deploy package. We know that the following
characters have produced problems for us:

```
( ) '
```

These are due to encoding issues on the original beanstalk-deploy
library.

Rather than wait for a fix from the package author, we can first
truncate the message, since the title is in the first few words,
to lower the chance of a special character, and then we can replace
these characters ourselves in the deploy step when setting the
version description.
@kwajiehao kwajiehao requested a review from LoneRifle November 4, 2020 11:42
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

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

Lgtm - hopefully subsequent fixes to the GH Action work better

@kwajiehao kwajiehao merged commit b8801df into staging Nov 4, 2020
harishv7 pushed a commit that referenced this pull request Feb 17, 2023
* feat: truncate and remove chars from version desc. before deploy

Currently, we get the following error when we attempt to deploy to
AWS EB with certain commit messages:

```
Deployment failed: Error: Status: 403. Code: SignatureDoesNotMatch,
Message: The request signature we calculated does not match the
signature you provided. Check your AWS Secret Access Key and signing
method. Consult the service documentation for details.
```

This is not because our access key is wrong, but because there are
certain characters in our commit message which are not dealt with
properly by the beanstalk-deploy package. We know that the following
characters have produced problems for us:

```
( ) '
```

These are due to encoding issues on the original beanstalk-deploy
library.

Rather than wait for a fix from the package author, we can first
truncate the message, since the title is in the first few words,
to lower the chance of a special character, and then we can replace
these characters ourselves in the deploy step when setting the
version description.

* chore: set DEV_BRANCH to be staging-dev

Co-authored-by: Jie Hao Kwa <[email protected]>
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.

2 participants