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

Error trying to find file main.js when the file is typescript #452

Open
jymmyboi opened this issue Jul 5, 2024 · 7 comments
Open

Error trying to find file main.js when the file is typescript #452

jymmyboi opened this issue Jul 5, 2024 · 7 comments

Comments

@jymmyboi
Copy link

jymmyboi commented Jul 5, 2024

When running the Google Play - Release module we get the following error:

##[error]File not found: 'C:\Agents_work_tasks\GooglePlayRelease_8cf7cac0-620b-11e5-b4cf-8565e60f4d27\4.241.0\main.js'

When doing a quick look through the code base, main.js is references in a multitude of locations but when I look for main.ts it just leads me to the file Tasks/GooglePlayReleaseV4/main.ts

We are unsure of if we configured it incorrectly on our side or whether there is an oversight into how this was setup?

@ivanduplenskikh
Copy link
Contributor

@jymmyboi, could you please share more details about your issue.
Did you install the extension on your organization?
You can also double-check the completed steps to install the extension https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/android?view=azure-devops#install-google-play

@jymmyboi
Copy link
Author

jymmyboi commented Jul 5, 2024

@ivanduplenskikh, we had to install the extension through the following means: https://www.donovanbrown.com/post/how-do-i-upload-a-custom-task-for-build

We then had to utilise the following solution to get it to work: #362

@ivanduplenskikh
Copy link
Contributor

@jymmyboi, the tfx build tasks upload command is used to upload Azure Pipelines Tasks but not extensions.
Could you try to install by referring to the above documentation?

@jymmyboi
Copy link
Author

jymmyboi commented Jul 5, 2024

@ivanduplenskikh The reason we had to do it this way was due to this issue #362 when installing through the marketplace. I guess this is now turning into the same ticket as the previously mentioned ticket now.

@ivanduplenskikh
Copy link
Contributor

@jymmyboi, do you upload it to your own Azure DevOps instance?

@SybizMarc
Copy link

@ivanduplenskikh I work at the same place as @jymmyboi. As stated we had the issue related to #362. I'm going to include as many details as I'm able to. If you need more please let me know:

We host our own Azure DevOps instance running version Dev18.M170.6. We are limited to TFVC and the old style drag and drop modules due to compatibility with our testing suite.

If we try to install the extension from the marketplace we get the following error:
Task definition input 'rolloutToUserFraction' and Task definition input 'isDraftRelease' must belong to same group as they are dependent inputs for Task with ID '8cf7cac0-620b-11e5-b4cf-8565e60f4d27'.

If we use the steps in #362 we get the following error message. As noted, we have discovered that there is a 'main.ts' file there instead.
##[error]File not found: 'C:\Agents_work_tasks\GooglePlayRelease_8cf7cac0-620b-11e5-b4cf-8565e60f4d27\4.241.0\main.js'

The agent doing the operations is on version 3.241.0

We HAVE to use a JSON Auth File for authorizing the upload because no service connection was added for 'Google'

image

Also attached is the release pipeline module for reference. Should be nothing out of the ordinary in there.

image

@ivanduplenskikh
Copy link
Contributor

@SybizMarc, @jymmyboi, apologies for the delay in my reply.
As I mentioned earlier, this approach is effective for tasks because uploading an extension as a task may result in the extension being only partially functional.
The absence of a service connection you're experiencing is directly related to this.
To proceed with uploading this extension as a task, you must first build the extension following the contributing instructions.
Once built, you can upload it using tfx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants