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

Test mac and windows executables #209

Merged
merged 15 commits into from
Mar 26, 2024
Merged

Conversation

tkmcmaster
Copy link
Collaborator

@tkmcmaster tkmcmaster commented Mar 21, 2024

Coverage Tests:
Common:
image
Agent:
image
Controller:
image
Overall:
image

Acceptance Tests:
Agent:
image

Controller:
image

- To differentiate Mac in S3, we'll use pewpew.mac as the file name.
- These constants will be used by common, agent, and controller
- The agent will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file and where
…rences

- The controller will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file(s) and where
@tkmcmaster tkmcmaster self-assigned this Mar 21, 2024
- Removed fs and logger calls from util so it can be used by client functions
- Added default exports of common util functions and constants
- POST /pewpew tests need to run before the GET tests to make sure the data is there
- After the deletes are completed we need to put back any versions we deleted
- Symlinks do not work on Windows for compiling so we have to copy the file
- Just like the integration tests, we must wait for the unzip to release the lock before we can access the files
@tkmcmaster
Copy link
Collaborator Author

@bryan-e-lopez, @jessica-yauney, @summersjc Please see the two README changes and see if you can get the unit and integration tests to now pass in the agent and controller folders. You'll need to follow the README instructions to copy both mac binaries and zipped mac binaries into the test folders of the agent and controller. You may also need to build the config web assemblies. If you follow the instructions to get the binaries in the correct folders, then running pr.sh should do everything else except the integration tests.

@bryan-e-lopez
Copy link
Contributor

I tested the controller and it worked:
image

I tested the agent and it worked:
image

@bryan-e-lopez
Copy link
Contributor

Executing the pr.sh script worked as well

@tkmcmaster tkmcmaster marked this pull request as ready for review March 26, 2024 13:37
@tkmcmaster tkmcmaster merged commit 0bca329 into master Mar 26, 2024
2 checks passed
@tkmcmaster tkmcmaster deleted the testMacAndWindowsExecutables branch March 26, 2024 15:43
tkmcmaster added a commit that referenced this pull request Mar 26, 2024
* Added eslint key-spacing rule (#204)

* Adding toaster, dynamically checking pewpewVersion (#201)

* adding files to dynamically show latest
pewpew version on Toaster

* cleaning up code for lintter to pass

* refactoring code to use tags in S3

* removing files from tsconfig

* fixing lint rules

* fixing spacing as local linter didnt catch those but the build did

* missed one space

* adding tests, cleaning up files

* removing trailing spaces failing on build

* adding DS_Store - make specific file to gitignore

* updating storybook to show pewpew latest version output

* Added common constants for the different os executables to common

- To differentiate Mac in S3, we'll use pewpew.mac as the file name.
- These constants will be used by common, agent, and controller

* Updated the agent to remove hardcoded pewpew references

- The agent will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file and where

* Updated the controller to remove hardcoded pewpew and pewpew.zip references

- The controller will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file(s) and where

* Updated pewpew to the 0.5.13 release

* Removed deprecated fs and log calls from util

- Removed fs and logger calls from util so it can be used by client functions
- Added default exports of common util functions and constants

* Fixed issue with import from common bringing in fs into controller

* Added fixes for filtering out pre-release versions

* Fixed test that was only ignoring one pewpew executable

* Added sleep on windows to avoid race condition after unzipping files

* Fixed issue with integration tests

- POST /pewpew tests need to run before the GET tests to make sure the data is there
- After the deletes are completed we need to put back any versions we deleted

* Added fix for compiling next.js on Windows

- Symlinks do not work on Windows for compiling so we have to copy the file

* Added fix for acceptance tests on Windows

- Just like the integration tests, we must wait for the unzip to release the lock before we can access the files

* Fixed warning during Next.js build on invalid config

* Fixed security vulnerabilities

* Added fixes missed from merge

* Updated README to add Windows and Mac instructions to include scripting pewpew version

* Test mac and windows executables (#209)

* Added common constants for the different os executables to common

- To differentiate Mac in S3, we'll use pewpew.mac as the file name.
- These constants will be used by common, agent, and controller

* Updated the agent to remove hardcoded pewpew references

- The agent will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file and where

* Updated the controller to remove hardcoded pewpew and pewpew.zip references

- The controller will now use os specific versions of the pewpew executable: pewpew (Linux), pewpew.exe (Windows), and pewpew.mac (Mac)
- Updated the README to add instructions for Mac and Windows Users on how to add an OS specific file(s) and where

* Updated pewpew to the 0.5.13 release

* Removed deprecated fs and log calls from util

- Removed fs and logger calls from util so it can be used by client functions
- Added default exports of common util functions and constants

* Fixed issue with import from common bringing in fs into controller

* Added fixes for filtering out pre-release versions

* Fixed test that was only ignoring one pewpew executable

* Added sleep on windows to avoid race condition after unzipping files

* Fixed issue with integration tests

- POST /pewpew tests need to run before the GET tests to make sure the data is there
- After the deletes are completed we need to put back any versions we deleted

* Added fix for compiling next.js on Windows

- Symlinks do not work on Windows for compiling so we have to copy the file

* Added fix for acceptance tests on Windows

- Just like the integration tests, we must wait for the unzip to release the lock before we can access the files

* Fixed warning during Next.js build on invalid config

* Fixed security vulnerabilities

* Removed additional hard-coded latest and pewpew strings

* Fixed the getTags call to get the latest tags (#211)

* Fixed the getTags call to get the latest tags

- Unit and Integration tests were not catching the bug, fixed the tests, then fixed the code

* Cleaned up the logging of currentLatestVersion

---------

Co-authored-by: Bryan <[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.

3 participants