Skip to content

Conversation

@zizhong
Copy link
Member

@zizhong zizhong commented Dec 13, 2017

@maskit @masaori335 can you please review?
@bryancall @zwoop I copied the test structure from hyper example code in MIT license. is it okay for us to use?

@maskit
Copy link
Member

maskit commented Dec 13, 2017

[approve ci]

From my understanding, copyright statement has to be kept even if it was MIT license, if you copied the example code.

@zizhong
Copy link
Member Author

zizhong commented Dec 13, 2017

@maskit Do I also need to add the Apache license?

@maskit
Copy link
Member

maskit commented Dec 13, 2017

Yes, probably we should do that. Code that licensed under MIT should be able to sublicense under Apache license.

@maskit
Copy link
Member

maskit commented Dec 13, 2017

[approve ci]

@maskit
Copy link
Member

maskit commented Dec 14, 2017

It looks a bit confusing. Maybe someone read it as dual license, which users can choose one from them.

You should clarify that the original code was distributed under MIT license with the copyright notice.

@zwoop @bryancall Do you have good examples or references?

@maskit
Copy link
Member

maskit commented Dec 14, 2017

The test itself looks good to me. Only concern is availability and compatibility of pkill command. If possible, it should be done by calling some function provided by Python.

@maskit
Copy link
Member

maskit commented Dec 20, 2017

[approve ci]

maskit
maskit previously requested changes Dec 20, 2017
Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

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

Please resolve the license header issue. RAT check recognized the file as MIT, which is not what we expected.

MIT ./tests/gold_tests/h2/h2drain.py

I think an acceptable format is like this.

<Apache license>

The original code was distributed under MIT license below.

<MIT License with the original copyright notice>

@zizhong
Copy link
Member Author

zizhong commented Jan 2, 2018

@maskit updated! can you review it again? Thanks!

@maskit
Copy link
Member

maskit commented Jan 9, 2018

[approve ci]

@maskit
Copy link
Member

maskit commented Jan 10, 2018

[approve ci autest]

@zizhong
Copy link
Member Author

zizhong commented Jan 11, 2018

Not sure why the autest failed on this one. Works locally every time. I need to look into it more.

@bryancall
Copy link
Contributor

[approve ci autest]

@maskit maskit dismissed their stale review February 16, 2018 00:44

RAT check passed

@bryancall
Copy link
Contributor

[approve ci autest]

Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

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

The format still looks a bit weird to me.

The original code was under MIT but now we are trying to relicense a modified version under AL2.
Without this information, it looks like we just concatenated two source files licensed under different licenses into one file (but actually it's not since some of import lines came from the original code).

I'd like to hear opinions from others.

@bryancall
Copy link
Contributor

[approve ci debian]

'proxy.config.http2.max_concurrent_streams_in': 65535,
'proxy.config.stop.shutdown_timeout': 3,
})
ts.Setup.CopyAs('h2client.py', Test.RunDirectory)
Copy link
Contributor

Choose a reason for hiding this comment

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

All these CopyAs can be more terse with just a
ts.Setup.Copy('h2client.py')

@zwoop
Copy link
Contributor

zwoop commented Apr 12, 2018

[approve ci autest]

@bryancall
Copy link
Contributor

@zizhong Can you fix the merge conflict?

@zizhong @dragon512 Is this ready to land after the merge has been fixed?

@zizhong
Copy link
Member Author

zizhong commented May 17, 2018

Let me check on the conflicts.
@bryancall Any comment on the dual licenses?

@zizhong zizhong force-pushed the http2_drain_test branch from e3c6318 to 67dc0a8 Compare May 18, 2018 01:26
@zizhong
Copy link
Member Author

zizhong commented May 18, 2018

I updated my branch and the conflict is gone. However, the test is not working for now.
I'll submit a small fix soon.

@bryancall
Copy link
Contributor

[approve ci autest]

@zwoop
Copy link
Contributor

zwoop commented Oct 20, 2018

@zizhong What do we want to do with this PR ?

@zizhong
Copy link
Member Author

zizhong commented Oct 22, 2018

@zwoop I'll update this and #3693 today.

@zizhong
Copy link
Member Author

zizhong commented Oct 23, 2018

[approve ci autest]

@zizhong
Copy link
Member Author

zizhong commented Oct 23, 2018

  File "h2drain.py", line 26, in <module>
    import twisted.internet._sslverify as v
ModuleNotFoundError: No module named 'twisted'

, but I added twisted to bootstrap.py.
@zwoop @dragon512 what's the right way to tell the Autest env installing new python libs?

@bryancall
Copy link
Contributor

[approve ci autest]

@bryancall
Copy link
Contributor

@zizhong The PR is failing in autest, I would like to get it merged or close it since it hasn't been updated in awhile.

@zizhong
Copy link
Member Author

zizhong commented Jan 9, 2019

@bryancall these tests work perfectly locally, where I manually installed twisted. To get it passing the autests, I would like to get some help to figure out what the correct way to install a python dep in autest. Do you happen to know the answer? Thanks!
cc @zwoop @dragon512 @maskit

@zwoop
Copy link
Contributor

zwoop commented Jan 29, 2019

Twisted is quite a beast, and I'd much prefer not to incorporate it into our autest dependencies. That much said, that's up to @dragon512 to decide.

@dragon512
Copy link
Contributor

I have no issue with using twisted. It is network based python framework used by lots of people. I think the question for me at the moment is what is it being used for here and can this be done with the other tools we already have. @macisasandwich Can you look and see if this could be done with our existing tools you have been putting effort into?

@x-jesse-zhang
Copy link
Contributor

Right now we've got no H2 capabilities with microserver and it will probably be an undefined amount of time before I can get around to adding H2 and draining to the tools that we use. So we should add this one in.

@zwoop
Copy link
Contributor

zwoop commented Mar 28, 2019

I feel reasonably strongly that we should not introduce Twisted into our system. Things are already complicated, and Twisted amplifies that by another magnitude.

@zwoop zwoop closed this Mar 28, 2019
@zwoop
Copy link
Contributor

zwoop commented Mar 28, 2019

Also, not sure why you would need H2 capabilities in the micro server ? This is acting as an H2 client (I can only assume, I can not decipher the code), and we have no H2 to origin support.

Can't we implement this as either just using curl commands, or perhaps some simpler, basic Python H2 client, such as https://hyper.readthedocs.io/en/latest/, which we already require anyways ?

@zizhong
Copy link
Member Author

zizhong commented Mar 28, 2019 via email

@zwoop zwoop removed this from the 9.0.0 milestone Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants