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

Updates all AWS gems and skips some assertions and tests #1329

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

JPrevost
Copy link
Member

@JPrevost JPrevost commented Jul 9, 2024

Our tests have some syntax errors in some of the mocks. We will fix them, but for now we are skipping failures and pushing the updated gems to allow us to read the production SQS queues which is not currently possible due to a change introduced somewhere in SQS or the associated gems.

Requires database migrations?

NO

Includes new or updated dependencies?

YES

Our tests have some syntax errors in some of the mocks. We will fix them, but for now we are skipping failures and pushing the updated gems to allow us to read the production SQS queues which is not currently possible due to a change introduced somewhere in SQS or the associated gems.
@mitlib mitlib temporarily deployed to thesis-submit-pr-1329 July 9, 2024 20:30 Inactive
@coveralls
Copy link

coveralls commented Jul 9, 2024

Coverage Status

coverage: 98.313%. remained the same
when pulling b1c46b5 on update-all-aws-gems
into 6f04a8e on main.

@JPrevost JPrevost requested a review from jazairi July 9, 2024 20:37
All failing tests in the DspacePublicationResultsJob test are
related to the stubbed message that involves a bad checksum. On
further investigation, this message has the same `message_id` as
another message.

[The SQS API docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_Message.html)
specify that the `MessageId` property must be unique. It's possible
that this was always the case, but it was only enforced in more
recent versions of `aws-sdk-sqs`, which would explain why these
tests only started erroring when we tried to upgrade the gem.
@jazairi jazairi temporarily deployed to thesis-submit-pr-1329 July 9, 2024 21:05 Inactive
@@ -26,7 +26,7 @@ def setup
'SubmissionSource' => { string_value: 'ETD', data_type: 'String' } } },

# success but thesis no longer has files locally
{ message_id: 'id1a', receipt_handle: 'handle1a',
{ message_id: 'id1b', receipt_handle: 'handle1a',
Copy link
Member Author

Choose a reason for hiding this comment

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

I... lol. Great catch!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I felt pretty silly when I caught that. 😅 (Both that we had duplicate IDs, and that we chose such a weird, brittle naming pattern!)

Copy link
Contributor

@jazairi jazairi left a comment

Choose a reason for hiding this comment

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

See the commit I pushed for a possible solution to the failing test issue. I'm approving this with or without that commit, as I think it's safe to skip those tests based on my current understanding.

Thank you for taking the time to solve this and upgrade these long-outdated gems!

@JPrevost JPrevost merged commit fc5aedf into main Jul 10, 2024
3 checks passed
@JPrevost JPrevost deleted the update-all-aws-gems branch July 10, 2024 12:43
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.

4 participants