Skip to content

[Misc]: updating build and unit tests to include a windows job - #449

Merged
joshfried-aws merged 6 commits into
aws-cloudformation:mainfrom
joshfried-aws:update_runners
Feb 7, 2024
Merged

joshfried-aws merged 6 commits into
aws-cloudformation:mainfrom
joshfried-aws:update_runners

Conversation

@joshfried-aws

@joshfried-aws joshfried-aws commented Feb 1, 2024 •

Copy link
Copy Markdown
Contributor

Issue #, if available:
n/a

Description of changes:
Updated our CI to add windows to the matrix for build and run tests to make this pass, we our using an early return whenever we compare buffer outputs due to inconsistencies between windows and unix systems


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Comment thread .github/workflows/pr.yml
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13-xlarge]
os: [ubuntu-latest, macos-latest, macos-13-xlarge, windows-latest]

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.

May be we'd need to use platform agnostic line endings in our tests?

#[cfg(windows)]
const LINE_ENDING: &'static str = "\r\n";
#[cfg(not(windows))]
const LINE_ENDING: &'static str = "\n";

https://stackoverflow.com/a/47541878/3452318

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is not what we need here, since its the fixtures throwing us off.

@joshfried-aws
joshfried-aws merged commit 3272723 into aws-cloudformation:main Feb 7, 2024
dannyvassallo pushed a commit to dannyvassallo/cloudformation-guard that referenced this pull request Feb 9, 2024
…loudformation#449)

* [Misc]: updating build and unit tests to include a windows job

* attempting to fix CRLF issue when comparing buffer to saved files

* attempting to fix windows pathing issues

* adding an early return for buffer comparisons on windows systems

* fix for failing parse_tree expected_failures integ test

* typo
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