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

Support localspecrepo if pass in this parameter #6272

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

raych1
Copy link
Member

@raych1 raych1 commented Jun 1, 2023

  • Add LocalSpecRepoPath to sync script
  • Code style fix

@weshaggard , this PR shouldn't be merged until all sdk language repos adopt new common scripts.

Fixing this issue in sync script.
#6279

@raych1 raych1 self-assigned this Jun 1, 2023
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@raych1 raych1 linked an issue Jun 1, 2023 that may be closed by this pull request
$gitRemotes = (git remote -v)
foreach ($remote in $gitRemotes) {
Write-Host "Checking remote $remote"
if ($remote.StartsWith("origin") -or $remote.StartsWith("main")) {
Copy link
Member

Choose a reason for hiding this comment

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

What context do we need to support "main" as a remote?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are the remotes in the pipeline run of test repo which doesn't have origin. That's why I added main.

10:29:05.890 cmdout 	[generate.py] Checking remote integration	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (fetch)
10:29:05.891 cmdout 	[generate.py] Checking remote integration	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (push)
10:29:05.891 cmdout 	[generate.py] Checking remote main	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (fetch)
10:29:05.891 cmdout 	[generate.py] Checking remote main	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (push)
10:29:05.891 cmdout 	[generate.py] Checking remote secondary	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (fetch)
10:29:05.892 cmdout 	[generate.py] Checking remote secondary	https://x-access-token:***@github.com/openapi-env-test/azure-sdk-for-java (push)

Copy link
Member

Choose a reason for hiding this comment

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

OK the automation pipeline must be doing something unique when it does its clones as by default origin is always set to what is cloned.

@weshaggard
Copy link
Member

@raych1 can you please link the issue you are fixing with this in the description?

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@raych1
Copy link
Member Author

raych1 commented Jun 2, 2023

@weshaggard , I took back my word. The change of adding an optional parameter to sync script isn't a breaking change and shouldn't break current usage. So, it's ok to merge this PR.

@raych1
Copy link
Member Author

raych1 commented Jun 2, 2023

@raych1 can you please link the issue you are fixing with this in the description?

Linked the issue in the first comment.

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

minhanh-phan pushed a commit to minhanh-phan/azure-sdk-for-js that referenced this pull request Jun 12, 2023
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.

TypeSpec SDK generation common scripts implementation
3 participants