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

Cahaba Codebase Refactor and Cleanup #422

Closed
9 of 17 tasks
nickchadwick-noaa opened this issue Jun 21, 2021 · 7 comments
Closed
9 of 17 tasks

Cahaba Codebase Refactor and Cleanup #422

nickchadwick-noaa opened this issue Jun 21, 2021 · 7 comments
Assignees
Labels
Epic Agile epic. Subtasks are itemized and listed with check boxes, and individual cards/stories are made refactoring Refacting code to obtain the same result
Milestone

Comments

@nickchadwick-noaa
Copy link
Collaborator

nickchadwick-noaa commented Jun 21, 2021

This Issue is to track the overall progress of cleaning up the Cahaba Repo. The following line items are to be made into separate issues with their own deeper descriptions and discussions. The goal of this list is to clean out any unused code and files, unify the formatting and languages of all the remaining code, and to organize the repository for future contributions.

Won't Impact fim_4:

*unused by both Cahaba and fim_4.

Might Impact fim_4

  • Convert the run_by_unit.sh script from Bash to Python.
  • Convert the fim_run.sh script from Bash to Python.
  • Finish implementing memory_profiling in the fim_run, run_by_unit, and /src/* scripts.
@nickchadwick-noaa nickchadwick-noaa self-assigned this Jun 21, 2021
@nickchadwick-noaa nickchadwick-noaa added Epic Agile epic. Subtasks are itemized and listed with check boxes, and individual cards/stories are made refactoring Refacting code to obtain the same result labels Jun 21, 2021
@nickchadwick-noaa nickchadwick-noaa added this to the FIM v3.X milestone Jun 21, 2021
@BradfordBates-NOAA
Copy link
Member

BradfordBates-NOAA commented Jun 22, 2021

@nickchadwick-noaa I've noted for each item whether or not it might harm the fim_4 forked repo, please double check it. Two lists, one called "Won't Impact fim_4" and another list called "Might Impact fim_4". For example, "Converting the run_by_unit.sh script from Bash to Python" might impact fim_4. This is just a best guess. We'll coordinate with DS later to confirm.

@fernando-aristizabal
Copy link
Member

@BradfordBates-NOAA Good point. I would avoid changing fim_run and run_by_unit to Python for now. Come the first quarter of the new fiscal year, FIM 4 will release GMS and then should be a good time to do major refactoring.

@nickchadwick-noaa Could you post any scripts, Python, or apt dependencies that you propose to remove prior to?

Also, what's the Dockerfile consolidation about?

@BradfordBates-NOAA
Copy link
Member

BradfordBates-NOAA commented Jun 22, 2021

@fernando-aristizabal Thanks for checking in on this. After July 4 we plan to hold a session with the DS team to iron out a refactor/clean-up plan for fim_4 sensitive items. Until then, we plan to knock out some of the harmless stuff. If you see something on the list, like the Dockerfile refactoring plans, that causes concern, please let us know.

@nickchadwick-noaa
Copy link
Collaborator Author

@fernando-aristizabal I will of course post any scripts we plan to remove, to ensure that they are not being used by anyone.

Initially, I had created a separate Dockerfile.prod to be used in a production environment. This Dockerfile is very similar to the Dev, except that it includes the codebase directly in the image instead of using a docker volume to link the codebase. We ended up not using this production Docker image when we moved to a "production" environment. To my knowledge this Dockerfile.prod is not used (unless you guys are using it), so I was just going to remove it.

@fernando-aristizabal
Copy link
Member

@WinstonHoyle-NOAA Do you need a Docker image with the source code embedded within for AWS Batch?

@WinstonHoyle-NOAA
Copy link

WinstonHoyle-NOAA commented Jun 22, 2021 via email

@RobHanna-NOAA
Copy link
Contributor

In light of recent changes (Fim 4.1.0.0, fim 4.2.0.0 and fim 4.3.0.0), this issue is not longer applicable as it has been covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Agile epic. Subtasks are itemized and listed with check boxes, and individual cards/stories are made refactoring Refacting code to obtain the same result
Projects
None yet
Development

No branches or pull requests

5 participants