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

Automate Multilingual App Toolkit Building #58

Open
1 of 4 tasks
gbakeman opened this issue Nov 12, 2022 · 2 comments
Open
1 of 4 tasks

Automate Multilingual App Toolkit Building #58

gbakeman opened this issue Nov 12, 2022 · 2 comments
Assignees
Labels
🤖CI/CD Issues and PRs that concern continuous integration and deployment. enhancement New feature or request

Comments

@gbakeman
Copy link
Contributor

gbakeman commented Nov 12, 2022

Ref #81

Problem

The build workflow currently doesn't use the MAT for compiling language files, which means that errors in those files won't be caught. In addition, language modifications aren't processed and won't appear in further builds until the project is compiled on a developer's environment.

Adding it to the build workflow has proven to be tricky: the 2022 edition of the extension requires an administrator's approval of a UAC prompt to continue. The GitHub-hosted runner runs commands under a pseudo-administrator account which seems to be causing the install process to halt and require acknowledgement of the UAC prompt. I can't find any combination of switches in the VSIXInstaller to make this work in the build environment. I have a VS Developer Community issue open hoping to mitigate this. I also have requested that GitHub add the extension to the runner images.

Update: It appears that the extension does end up installing, but it takes about 20 minutes to do so. May need to investigate this or find an alternative solution.

In the meantime, I attempted to setup an Azure free tier VM, but ended up using the wrong image and finding out that it was incompatible with the toolkit extension (Windows Server Core does not have UI components and other libraries necessary to install Visual Studio, which is required by the MAT.) Azure still remains an option but required a lot of effort to get off the ground last time.

I'm still making tweaks to the build workflow to make sure I understand what exactly the issue is (also proving to be difficult),

  • Find some way to elevate permissions of the runner process (like How to give extra privileges to the runner over the self-hosted Windows server? actions/runner#408, although the suggestion solution doesn't seem to work in the current environment)
    • Not actually the issue
  • Find a fix for the long extension installation issue
  • Attempt to install the VS2017+ edition of the extension, which may not require admin rights (needs verification)
    • Likely not going to work, but may be worth testing if only to speed up the installation.
  • Setup another Azure build environment with the correct image (last ditch effort)

References

@gbakeman gbakeman added the enhancement New feature or request label Nov 12, 2022
@gbakeman gbakeman changed the title Compile with Multilingual App Toolkit in build workflow Translation System Considerations Apr 4, 2023
@gbakeman gbakeman self-assigned this Apr 4, 2023
@gbakeman gbakeman added bug Something isn't working 🤖CI/CD Issues and PRs that concern continuous integration and deployment. and removed bug Something isn't working labels Apr 4, 2023
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Apr 4, 2023
@gbakeman gbakeman changed the title Translation System Considerations Automate Multilingual App Toolkit Building Apr 5, 2023
@gbakeman
Copy link
Contributor Author

gbakeman commented Apr 5, 2023

For some reason, installing the MAT is taking an incredibly long time compared to installing on my system. Total workflow time is about ~22 minutes. Should consider making language compilation a rare event.

@gbakeman gbakeman closed this as completed Apr 5, 2023
@gbakeman
Copy link
Contributor Author

gbakeman commented Apr 6, 2023

For considering an alternate build strategy: https://github.com/dotnet/xliff-tasks

@gbakeman gbakeman reopened this Apr 6, 2023
@gbakeman gbakeman mentioned this issue Apr 7, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖CI/CD Issues and PRs that concern continuous integration and deployment. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant