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

Update the .zap file when Studio project updates to a new GSDK #1431

Conversation

brdandu
Copy link
Collaborator

@brdandu brdandu commented Sep 23, 2024

  • Update the uc_upgrade target for apack.json
  • Add the upgrade zap file function which updates the top level json packages for the .zap file based on the gsdk being used for the project.
  • The code goes through a temporary directory where .zap files are stored for Studio and updates all the .zap files in that directory
  • The top level upgrade packages are matched based on type and category
  • Other minor cleanup
  • JIRA: ZAPP-1362

@brdandu brdandu force-pushed the improvement/upgradeZapFileForStudioProjectUpgrade/ZAPP-1362 branch from 628915e to 93399be Compare September 23, 2024 18:43
@brdandu brdandu marked this pull request as ready for review September 23, 2024 19:10
@brdandu brdandu force-pushed the improvement/upgradeZapFileForStudioProjectUpgrade/ZAPP-1362 branch 3 times, most recently from abf0a60 to 6f4cac2 Compare September 25, 2024 15:48
* @param {*} dir
* @returns all .zap files in the given directory
*/
function findZapFiles(dir) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought there was already some logic that finds all the zap files in a directory? We use that for the file opening, since we only get "project directory" from UC...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just knew about the ${tempContentFolder} which has the .zap file for upgrade process. It is a temporary directory where the upgrade is performed. Just pass that here. Do not know about any other logic here.

@brdandu brdandu force-pushed the improvement/upgradeZapFileForStudioProjectUpgrade/ZAPP-1362 branch from 6f4cac2 to ed893a6 Compare September 27, 2024 19:54
- Update the uc_upgrade target for apack.json
- Add the upgrade zap file function which updates the top level json packages for the .zap file based on the gsdk being used for the project.
- The code goes through a temporary directory where .zap files are stored for Studio and updates all the .zap files in that directory
- The top level upgrade packages are matched based on type and category
- Other minor cleanup
- Cleaning up the directory flag to -d and adding the no load failure flag when packages are not present
- Adding unit tests for the upgrade process
- JIRA: ZAPP-1362
@brdandu brdandu force-pushed the improvement/upgradeZapFileForStudioProjectUpgrade/ZAPP-1362 branch from ed893a6 to b214bbd Compare October 4, 2024 15:08
@brdandu brdandu merged commit ce55106 into project-chip:master Oct 4, 2024
14 checks passed
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