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

Adding toaster, dynamically checking pewpewVersion #201

Merged
merged 12 commits into from
Mar 18, 2024
Merged

Conversation

bryan-e-lopez
Copy link
Contributor

No description provided.

pewpew version on Toaster
@bryan-e-lopez
Copy link
Contributor Author

image

Copy link
Collaborator

@tkmcmaster tkmcmaster left a comment

Choose a reason for hiding this comment

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

We need to add integration and unit tests. I'll look at this more tomorrow. Thanks Bryan.

Copy link
Collaborator

@tkmcmaster tkmcmaster left a comment

Choose a reason for hiding this comment

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

I like the toaster and the work you've done, but we can't use a static file. As soon as we have a crashed controller that gets replaced we'll have an outdated latestInFile version. We need to use S3 so new controllers have a version to read. We can initialize it to unknown if there is no file in S3 yet.

I like the progress. Good work!

controller/components/StartTestForm/story.tsx Outdated Show resolved Hide resolved
controller/components/PewPewVersions/story.tsx Outdated Show resolved Hide resolved
controller/pages/api/util/pewpew.ts Outdated Show resolved Hide resolved
controller/pages/api/util/pewpew.ts Outdated Show resolved Hide resolved
controller/tsconfig.json Outdated Show resolved Hide resolved
@tkmcmaster
Copy link
Collaborator

I just had a realization. These changes don't need to be in master since master doesn't have the 0.6.x vs 0.5.x split. These changes really are only needed in the scripting branch. We can put them in master, but they aren't needed in master. @bryan-e-lopez What do you want to do? Do you still want these in master or should we move these code changes to a PR on the 0.6.0-scripting-dev branch? I can help you with changing it if you like.

@tkmcmaster
Copy link
Collaborator

@bryan-e-lopez Run npm run lint to find and fix the issues you're having. You also may need to merge master into this branch since you're out of date with master now.

@bryan-e-lopez
Copy link
Contributor Author

New tests:
image

@bryan-e-lopez
Copy link
Contributor Author

@tkmcmaster can we merge to master once we review and then we make the changes to merge to 0.6.0-scripting-dev branch as you mentioned above:

I just had a realization. These changes don't need to be in master since master doesn't have the 0.6.x vs 0.5.x split. These changes really are only needed in the scripting branch. We can put them in master, but they aren't needed in master. @bryan-e-lopez What do you want to do? Do you still want these in master or should we move these code changes to a PR on the 0.6.0-scripting-dev branch? I can help you with changing it if you like.

Copy link
Collaborator

@tkmcmaster tkmcmaster left a comment

Choose a reason for hiding this comment

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

Great work @bryan-e-lopez !

@bryan-e-lopez bryan-e-lopez merged commit a8bee2d into master Mar 18, 2024
2 checks passed
@bryan-e-lopez bryan-e-lopez deleted the devFeature branch March 18, 2024 15:55
tkmcmaster added a commit that referenced this pull request Mar 19, 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

---------

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

2 participants