Skip to content

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Feb 4, 2020

This is "step 6 - Add Repo Templates" of the repo split procedure.

Warning - no .kokoro, .github/*, etc. files generated by the synthtool. There might be something missing

Update: BigQuery's custom noxfile.py did not include templated files, had to add that manually. Mind that noxfile.py is still autogenerated and would get overridden every time synthtool is run - we probably want to exclude it?

Alternatively, we could go back to the autogenerated noxfile. @tswast do yo maybe remember why BigQuery uses a custom noxfile in the first place?

Update 2: Managed to hack around overriding the custom noxfile in this library.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 4, 2020
@plamut plamut added do not merge Indicates a pull request not ready for merge, due to either quality or timing. and removed cla: yes This human has signed the Contributor License Agreement. labels Feb 4, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 4, 2020
@googlebot
Copy link

☹️ Sorry, but only Googlers may change the label cla: yes.

synth.py Outdated
Comment on lines 66 to 67
# we do not want override the custom noxfile with the generated one
os.remove(os.path.join(templated_files, "noxfile.py"))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at CommonTemplates.py_library(), I suppose there is no better way of excluding a particular template file? Cannot manipulate the excludes list through kwargs...

@plamut plamut removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 4, 2020
@plamut plamut requested review from busunkim96 and tswast February 4, 2020 14:03
@plamut plamut added the type: process A process-related concern. May include testing, release, or the like. label Feb 4, 2020
@plamut plamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 4, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 4, 2020
templated_files = common.py_library(cov_level=100)
# we do not want to override the custom noxfile with the generated one
os.remove(os.path.join(templated_files, "noxfile.py"))
s.move(templated_files)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can add an excludes list to s.move.

s.move(templated_files, excludes=["noxfile.py"])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

Since it's a minor thing, I'll do it separately to not block the main PR of the repo migration.

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

Labels

cla: yes This human has signed the Contributor License Agreement. type: process A process-related concern. May include testing, release, or the like.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants