Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: enable generation with postprocessing of multiple service versions #2342
feat: enable generation with postprocessing of multiple service versions #2342
Changes from 199 commits
1394f1c
bf80792
ce3e9a2
76d4892
bd00a72
988132e
5b1b70e
5340c39
c62a373
3f28553
46a0c89
ddf202e
7cfbd6f
a2b843d
35b7916
81d4d60
1e9a788
d99e0ae
b1baed7
860c45b
6755cd1
6ecef4e
558118d
f8183f8
bdb6cd0
e42fc0f
4c489e6
d125c9d
40c5d24
60075b3
e956f4f
0d1c466
0e6d547
7604f3c
5cce976
30392b8
29291a7
ecd3b13
87ac0ab
91d5be6
9d4a54c
f923b65
6bda94a
e27a402
182c111
d0db9a0
4516ba4
d59e65c
d0915f3
e7ea3b1
8ab96e1
b140e08
60736ae
39c3156
ba561c2
86e6a3f
c98ba18
b453c47
65f0090
143534a
57e81fa
91fd696
33e268a
ae3e577
b37cc0d
1d25e77
f0ec962
a179552
3c20c45
a38efb0
1d97cdf
747560f
f2c937d
5bc7c7f
8d64968
d02d9dc
b1ac128
6638c62
db38d50
d75e7eb
791e3e5
32fc6c9
e31cf7f
e645fbb
bcd9b24
94f0c81
87fb4a7
db6098c
bd6090a
a0147ce
ea9cd50
01a52f3
729ec8d
405c9ef
2a4a9c1
cad820d
d394480
64eb6a9
293bdca
74a1423
5465802
16e0f27
ff33eb8
d321a97
39f9342
05d90cc
d4becd3
129b51e
201fe3c
845c489
da0063d
315bb3e
29789a9
c6f03b1
482e35c
9dbeb9b
10d0102
d6873f8
22ee199
4ccebae
899f781
eefe8d5
c05865a
c490e69
265b446
0cd5167
6f5de37
38306dd
b691273
ebcb4d0
53be45f
c4b937f
781effb
ba21ba2
9c54df4
dd1ded0
d340731
4ee3ece
68ea9ae
25669bc
cf17afd
1e18a5d
9101a2f
78b604a
965e3ed
7d23fba
06df744
e79196c
e3ebd4e
2c20ee7
9150cac
45bd0e7
5f93c0a
4608fb2
76c75b1
1c6c413
65ca5d9
ca8ad9e
32c9f26
d8d5712
69341d7
1ccdce8
ac63e21
7aab0a5
35c1ace
acf07a5
0ada730
215fed3
e5d065b
594f44d
6b5a0d6
54fa240
c11f0da
e94f5e9
c146d26
95e9766
0630bc8
4af6821
21d13ec
d699173
94e3024
c073437
88c2243
92b77bd
42fe78b
c7aca9f
cea015c
c62c8e9
6bc566a
83e7ab2
6e83e05
f1e5a46
5a7418c
6f2d868
1bf473a
3665940
bfa1344
73dc71f
f0b26ef
b1d0cbc
90e731e
8acc122
97b14c7
5e02b03
fbd3111
7f43113
797a841
14164e8
e3aaac2
04c98b1
7059654
2b82a39
2ad5408
51051bf
cd90663
9a5708b
f236240
f2c8532
3bff22a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the caller need to run "git clone" for the repository this script creates a commit in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is optional. If the user specifies
--repository_path
inmain.py
, then the generated source code will be sent to such path. If not specified, thecomposed_library
script will download the repository intooutput_folder
and send the generated sources thereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also added a small explanation
sdk-platform-java/library_generation/generate_composed_library.py
Lines 37 to 38 in 1bf473a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why checks
enable_postprocessing
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, because the body of that if statement prepares a special folder to be consumed by the postprocessing script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this special folder unique to each library? If not, you can move this part to line 130 (the next if statement).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The folder is not unique but we need to know the
temp_destination_path
of each library to build this folder after it's generatedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably name this file in a more meaningful way. But since this file is used only by tests, and @JoeWang1127 will probably merge the responsibility of it to
generate_repo.py
, I think this is fine for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. This
main.py
can be used as a standalone script, shown in the PR descriptionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if I set
repository-location
and setenable-postprocessing
toFalse
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this option (commit upcoming) since we can infer repository path from the configuration yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified the behavior. We will always have a repository downloaded, either passed via
--repository-path
or automatically downloaded if not specified.enable_postprocessing
will be safe in case--repository-path
is not specified/set-to-false.