az login --identity freezes then times out

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
request failed: Error occurred in request., ConnectTimeout: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions?api-version=2019-06-01 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef6a0>, 'Connection to management.azure.com timed out. (connect timeout=100)'))

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az login --identity --debug

Expected Behavior
exit zero with active subscription.
Environment Summary
Linux-3.10.0-957.10.1.el7.x86_64-x86_64-with-centos-7.6.1810-Core
Python 3.6.8

azure-cli 2.1.0

Additional Context
The full debug output:
Command arguments: ['login', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fd5d0f45598>, <function OutputProducer.on_global_arguments at 0x7fd5d0d21488>, <function CLIQuery.on_global_arguments at 0x7fd5d0aac620>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
Loaded module 'acr' in 0.007 seconds.
Loaded module 'acs' in 0.020 seconds.
Loaded module 'advisor' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.008 seconds.
Loaded module 'apim' in 0.002 seconds.
Loaded module 'appconfig' in 0.003 seconds.
Loaded module 'appservice' in 0.013 seconds.
Loaded module 'backup' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.010 seconds.
Loaded module 'batchai' in 0.004 seconds.
Loaded module 'billing' in 0.002 seconds.
Loaded module 'botservice' in 0.005 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.008 seconds.
Loaded module 'cloud' in 0.002 seconds.
Loaded module 'cognitiveservices' in 0.003 seconds.
Loaded module 'configure' in 0.001 seconds.
Loaded module 'consumption' in 0.003 seconds.
Loaded module 'container' in 0.002 seconds.
Loaded module 'cosmosdb' in 0.009 seconds.
Loaded module 'deploymentmanager' in 0.003 seconds.
Loaded module 'dla' in 0.005 seconds.
Loaded module 'dls' in 0.004 seconds.
Loaded module 'dms' in 0.002 seconds.
Loaded module 'eventgrid' in 0.003 seconds.
Loaded module 'eventhubs' in 0.004 seconds.
Loaded module 'extension' in 0.001 seconds.
Loaded module 'feedback' in 0.001 seconds.
Loaded module 'find' in 0.001 seconds.
Loaded module 'hdinsight' in 0.003 seconds.
Loaded module 'interactive' in 0.001 seconds.
Loaded module 'iot' in 0.007 seconds.
Loaded module 'iotcentral' in 0.001 seconds.
Loaded module 'keyvault' in 0.007 seconds.
Loaded module 'kusto' in 0.002 seconds.
Loaded module 'lab' in 0.004 seconds.
Loaded module 'managedservices' in 0.002 seconds.
Loaded module 'maps' in 0.002 seconds.
Loaded module 'monitor' in 0.007 seconds.
Loaded module 'natgateway' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'netappfiles' in 0.005 seconds.
Loaded module 'network' in 0.040 seconds.
Loaded module 'policyinsights' in 0.002 seconds.
Loaded module 'privatedns' in 0.006 seconds.
Loaded module 'profile' in 0.002 seconds.
Loaded module 'rdbms' in 0.007 seconds.
Loaded module 'redis' in 0.002 seconds.
Loaded module 'relay' in 0.004 seconds.
Loaded module 'reservations' in 0.002 seconds.
Loaded module 'resource' in 0.009 seconds.
Loaded module 'role' in 0.005 seconds.
Loaded module 'search' in 0.002 seconds.
Loaded module 'security' in 0.003 seconds.
Loaded module 'servicebus' in 0.006 seconds.
Loaded module 'servicefabric' in 0.004 seconds.
Loaded module 'signalr' in 0.002 seconds.
Loaded module 'sql' in 0.009 seconds.
Loaded module 'sqlvm' in 0.003 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.038 seconds.
Loaded module 'vm' in 0.020 seconds.
Loaded all modules in 0.340 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: '/home/ndsauto/.azure/cliextensions'
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fd5d071ad08>]
az_command_data_logger : command args: login --debug
metadata file logging enabled - writing logs to '/home/ndsauto/.azure/commands'.
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7fd5d07388c8>]
Event: CommandInvoker.OnPostArgumentLoad []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7fd5d06ef488>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7fd5d06ef598>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7fd5ce82e0d0>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7fd5d0d21510>, <function CLIQuery.handle_query_parameter at 0x7fd5d0aac6a8>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7fd5d06ef510>, <function handler at 0x7fd5ce6ff158>]
Detect no GUI is available, so fall back to device code
adal-python : bff523b2-970f-45c7-8d78-c54fd3ae8aba - Authority:Performing instance discovery: ...
adal-python : bff523b2-970f-45c7-8d78-c54fd3ae8aba - Authority:Performing static instance discovery
adal-python : bff523b2-970f-45c7-8d78-c54fd3ae8aba - Authority:Authority validated via static instance discovery
adal-python : bff523b2-970f-45c7-8d78-c54fd3ae8aba - CodeRequest:Getting user code info.
urllib3.connectionpool : Starting new HTTPS connection (1): login.microsoftonline.com:443
^Caz_command_data_logger : exit code: 1
telemetry.save : Save telemetry record of length 2446 in cache
telemetry.check : Returns Positive.
telemetry.main : Begin creating telemetry upload process.
telemetry.process : Creating upload process: "/usr/bin/python3 /usr/lib64/az/lib/python3.6/site-packages/azure/cli/telemetry/__init__.py /home/ndsauto/.azure"
telemetry.process : Return from creating process
telemetry.main : Finish creating telemetry upload process.
command ran in 241.366 seconds.
[ndsauto@prod-camunda-app-node01-6-98 ~]$ az login --identity --debug
Command arguments: ['login', '--identity', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f064d0d0598>, <function OutputProducer.on_global_arguments at 0x7f064ceac488>, <function CLIQuery.on_global_arguments at 0x7f064cc37620>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
Loaded module 'acr' in 0.007 seconds.
Loaded module 'acs' in 0.020 seconds.
Loaded module 'advisor' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.007 seconds.
Loaded module 'apim' in 0.002 seconds.
Loaded module 'appconfig' in 0.004 seconds.
Loaded module 'appservice' in 0.012 seconds.
Loaded module 'backup' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.010 seconds.
Loaded module 'batchai' in 0.003 seconds.
Loaded module 'billing' in 0.002 seconds.
Loaded module 'botservice' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.003 seconds.
Loaded module 'cloud' in 0.002 seconds.
Loaded module 'cognitiveservices' in 0.002 seconds.
Loaded module 'configure' in 0.001 seconds.
Loaded module 'consumption' in 0.003 seconds.
Loaded module 'container' in 0.002 seconds.
Loaded module 'cosmosdb' in 0.009 seconds.
Loaded module 'deploymentmanager' in 0.003 seconds.
Loaded module 'dla' in 0.006 seconds.
Loaded module 'dls' in 0.004 seconds.
Loaded module 'dms' in 0.002 seconds.
Loaded module 'eventgrid' in 0.003 seconds.
Loaded module 'eventhubs' in 0.004 seconds.
Loaded module 'extension' in 0.001 seconds.
Loaded module 'feedback' in 0.001 seconds.
Loaded module 'find' in 0.001 seconds.
Loaded module 'hdinsight' in 0.003 seconds.
Loaded module 'interactive' in 0.000 seconds.
Loaded module 'iot' in 0.007 seconds.
Loaded module 'iotcentral' in 0.002 seconds.
Loaded module 'keyvault' in 0.007 seconds.
Loaded module 'kusto' in 0.002 seconds.
Loaded module 'lab' in 0.004 seconds.
Loaded module 'managedservices' in 0.002 seconds.
Loaded module 'maps' in 0.001 seconds.
Loaded module 'monitor' in 0.007 seconds.
Loaded module 'natgateway' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'netappfiles' in 0.005 seconds.
Loaded module 'network' in 0.040 seconds.
Loaded module 'policyinsights' in 0.002 seconds.
Loaded module 'privatedns' in 0.005 seconds.
Loaded module 'profile' in 0.002 seconds.
Loaded module 'rdbms' in 0.008 seconds.
Loaded module 'redis' in 0.002 seconds.
Loaded module 'relay' in 0.003 seconds.
Loaded module 'reservations' in 0.002 seconds.
Loaded module 'resource' in 0.009 seconds.
Loaded module 'role' in 0.005 seconds.
Loaded module 'search' in 0.002 seconds.
Loaded module 'security' in 0.003 seconds.
Loaded module 'servicebus' in 0.006 seconds.
Loaded module 'servicefabric' in 0.004 seconds.
Loaded module 'signalr' in 0.002 seconds.
Loaded module 'sql' in 0.010 seconds.
Loaded module 'sqlvm' in 0.003 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.039 seconds.
Loaded module 'vm' in 0.020 seconds.
Loaded all modules in 0.332 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: '/home/ndsauto/.azure/cliextensions'
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f064c8a5d08>]
az_command_data_logger : command args: login --identity --debug
metadata file logging enabled - writing logs to '/home/ndsauto/.azure/commands'.
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f064c8c38c8>]
Event: CommandInvoker.OnPostArgumentLoad []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f064c87a488>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f064c87a598>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7f064a9b80d0>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f064ceac510>, <function CLIQuery.handle_query_parameter at 0x7f064cc376a8>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f064c87a510>, <function handler at 0x7f064a889158>]
urllib3.connectionpool : Starting new HTTP connection (1): <IP_ADDRESS>:80
urllib3.connectionpool : http://<IP_ADDRESS>:80 "GET /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 HTTP/1.1" 200 1664
msrestazure.azure_active_directory : MSI: Retrieving a token from http://<IP_ADDRESS>/metadata/identity/oauth2/token, with payload {'resource': 'https://management.core.windows.net/', 'api-version': '2018-02-01'}
msrestazure.azure_active_directory : MSI: Token retrieved
MSI: token was retrieved. Now trying to initialize local accounts...
msrest.universal_http.requests : Configuring retry: max_retries=4, backoff_factor=0.8, max_backoff=90
msrest.async_paging : Paging async iterator protocol is not available for SubscriptionPaged
msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions?api-version=2019-06-01'
msrest.http_logger : Request method: 'GET'
msrest.http_logger : Request headers:
msrest.http_logger :     'Accept': 'application/json'
msrest.http_logger :     'accept-language': 'en-US'
msrest.http_logger :     'User-Agent': 'python/3.6.8 (Linux-3.10.0-957.10.1.el7.x86_64-x86_64-with-centos-7.6.1810-Core) msrest/0.6.9 msrest_azure/0.6.2 azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0'
msrest.http_logger : Request body:
msrest.http_logger : None
msrest.universal_http : Configuring redirects: allow=True, max=30
msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http : Configuring proxies: ''
msrest.universal_http : Evaluate proxies against ENV settings: True
urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com:443
urllib3.util.retry : Incremented Retry for (url='/subscriptions?api-version=2019-06-01'): Retry(total=3, connect=3, read=4, redirect=None, status=None)
urllib3.connectionpool : Retrying (Retry(total=3, connect=3, read=4, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef390>, 'Connection to management.azure.com timed out. (connect timeout=100)')': /subscriptions?api-version=2019-06-01
urllib3.connectionpool : Starting new HTTPS connection (2): management.azure.com:443
urllib3.util.retry : Incremented Retry for (url='/subscriptions?api-version=2019-06-01'): Retry(total=2, connect=2, read=4, redirect=None, status=None)
urllib3.connectionpool : Retrying (Retry(total=2, connect=2, read=4, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef438>, 'Connection to management.azure.com timed out. (connect timeout=100)')': /subscriptions?api-version=2019-06-01
urllib3.connectionpool : Starting new HTTPS connection (3): management.azure.com:443
urllib3.util.retry : Incremented Retry for (url='/subscriptions?api-version=2019-06-01'): Retry(total=1, connect=1, read=4, redirect=None, status=None)
urllib3.connectionpool : Retrying (Retry(total=1, connect=1, read=4, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef518>, 'Connection to management.azure.com timed out. (connect timeout=100)')': /subscriptions?api-version=2019-06-01
urllib3.connectionpool : Starting new HTTPS connection (4): management.azure.com:443
urllib3.util.retry : Incremented Retry for (url='/subscriptions?api-version=2019-06-01'): Retry(total=0, connect=0, read=4, redirect=None, status=None)
urllib3.connectionpool : Retrying (Retry(total=0, connect=0, read=4, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef5f8>, 'Connection to management.azure.com timed out. (connect timeout=100)')': /subscriptions?api-version=2019-06-01
urllib3.connectionpool : Starting new HTTPS connection (5): management.azure.com:443
msrest.exceptions : Error occurred in request., ConnectTimeout: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions?api-version=2019-06-01 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef6a0>, 'Connection to management.azure.com timed out. (connect timeout=100)'))
cli.azure.cli.core.util : request failed: Error occurred in request., ConnectTimeout: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions?api-version=2019-06-01 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef6a0>, 'Connection to management.azure.com timed out. (connect timeout=100)'))
request failed: Error occurred in request., ConnectTimeout: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions?api-version=2019-06-01 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06496ef6a0>, 'Connection to management.azure.com timed out. (connect timeout=100)'))
az_command_data_logger : exit code: 1
telemetry.save : Save telemetry record of length 2457 in cache
telemetry.check : Negative: The /home/ndsauto/.azure/telemetry.txt was modified at 2020-03-04 07:46:13.084210, which in less than 600.000000 s
command ran in 512.121 seconds.

add to S167.

The same thing happens using Azure Python SDK.
In [29]: token_credential = MSIAuthentication()
    ...:
    ...:
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): <IP_ADDRESS>:80
DEBUG:urllib3.connectionpool:http://<IP_ADDRESS>:80 "GET /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 HTTP/1.1" 404 87
MSI: wait: 0.1s and retry: 1
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): <IP_ADDRESS>:80
DEBUG:urllib3.connectionpool:http://<IP_ADDRESS>:80 "GET /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 HTTP/1.1" 404 87
MSI: wait: 0.1s and retry: 2
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): <IP_ADDRESS>:80```

The log shows that Connection to management.azure.com timed out. (connect timeout=100). It seems management.azure.com is blocked by your firewall.
Could you test whether you can connect to management.azure.com?
> curl https://management.azure.com
{"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}

Hi @jiasli ,
The curl command times out as well:
> curl https://management.azure.com
curl: (7) Failed connect to management.azure.com:443; Connection timed out

this is a VM in Azure, where else can I check for the firewall settings?

Please make sure the NSG is not blocking internet outbound connections. Since Azure Management API is not included as an NSG destination service tag yet, you need to allow Internet access.
Also, it may be due to force tunneling traffic to on-prem firewall using Express Route or Network Virtual Appliance - a default route (<IP_ADDRESS>/0) which forces all traffic from the subnet to flow through an on-premises firewall or to an Network virtual appliance.
Similar issue is explained at https://docs.microsoft.com/en-us/azure/api-management/api-management-using-with-vnet#-common-network-configuration-issues
If you have further questions, you may open a support ticket to get more help regarding network configuration.

I'm sorry, I forgot to mention that the machine is behind a load balancer, does that have anything to do with this issue?

Hi,
I've followed the instructions found here and it's working now. You are right, it is a firewall issue.
I had the machines behind an internal load balancer, so I needed to create a public load balancer (without port mapping) with outbound rules for this to work.


Keep items on death causes duplicates w/ plugin 'DeathControl'

I've noticed that items like the wands and the master sword stay bound to the player on death. However I'm using this plugin that allows you to pay to automatically return all of your items back to you. This means Magic is keeping an item (i.e. a wand) and DeathControl makes it again.
The DeathControl plugin has a filter list and so far i have filtered out 'wooden hoe' and 'golden sword' so that theses items will not duplicate. However as I implement more of the custom items you have created (the diving helmet for instance) - these items are duping as well.
So I have two options - filter more of the custom items with DeathControl or see if there is a way in the Magic config to prevent items staying on the player upon death. What do you recommend?
Thank you very much for your time and this amazing plugin - its one of the best that has ever existed.

I guess I would recommend turning off the "keep" feature of all but the most important wands- like if you can exclude the wood hoe and golden sword and turn it off on the rest that'd probably be best.
You do this in wands.yml, for instance:
divinghelmet:
  keep: false

Will turn it off for the diving helmet.

Ah, yes I see - I think that will work perfectly. Thanks!


added code for string_expression_evaluation_bodmas(stack section)

Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
yes
Description
added code
(Write your answer here.)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

review my pr @HarshCasper

I'm closing the PR due to no corresponding Issue.
If you would like to reopen this PR to be reviewed please join the Slack and drop me a message.

I'm closing the PR due to no corresponding Issue.
If you would like to reopen this PR to be reviewed please join the Slack and drop me a message.


Python 3.11 issues for uaqmp

Seems to fail to build due to missing longintrepr.h during build of 'build/temp.linux-x86_64-cpython-311/uamqp/c_uamqp.o' (from 'uamqp/c_uamqp.c')
Reproduction:
docker run -it python:3.11-rc-slim bash
apt update
apt install --no-install-recommends g++ libc-dev cmake make libssl-dev uuid-dev
pip install uamqp

Quick google search gives possibly relevant:

aio-libs/aiohttp#6600
cython/cython#4461

Build output:
  Building wheel for uamqp (setup.py): started
  Building wheel for uamqp (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [209 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/receiver.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/types.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/compat.py -> build/lib.linux-x86_64-cpython-311/uamqp
  Running setup.py clean for uamqp
      copying uamqp/address.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/message.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/session.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/errors.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/client.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/constants.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/connection.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/utils.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/__init__.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/sender.py -> build/lib.linux-x86_64-cpython-311/uamqp
      copying uamqp/mgmt_operation.py -> build/lib.linux-x86_64-cpython-311/uamqp
      creating build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/connection_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/receiver_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/mgmt_operation_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/sender_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/session_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/utils.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/__init__.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      copying uamqp/async_ops/client_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/async_ops
      creating build/lib.linux-x86_64-cpython-311/uamqp/authentication
      copying uamqp/authentication/cbs_auth.py -> build/lib.linux-x86_64-cpython-311/uamqp/authentication
      copying uamqp/authentication/common.py -> build/lib.linux-x86_64-cpython-311/uamqp/authentication
      copying uamqp/authentication/cbs_auth_async.py -> build/lib.linux-x86_64-cpython-311/uamqp/authentication
      copying uamqp/authentication/__init__.py -> build/lib.linux-x86_64-cpython-311/uamqp/authentication
      running egg_info
      writing uamqp.egg-info/PKG-INFO
      writing dependency_links to uamqp.egg-info/dependency_links.txt
      writing requirements to uamqp.egg-info/requires.txt
      writing top-level names to uamqp.egg-info/top_level.txt
      reading manifest file 'uamqp.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'uamqp.egg-info/SOURCES.txt'
      copying uamqp/c_uamqp.c -> build/lib.linux-x86_64-cpython-311/uamqp
      running build_ext
      will build uamqp in build/temp.linux-x86_64-cpython-311/cmake
      Building with generator flags: -G "Unix Makefiles"
      calling cmake /tmp/pip-install-lqo3w3o_/uamqp/src/vendor/azure-uamqp-c/ -G "Unix Makefiles" -Duse_openssl:bool=ON -Duse_default_uuid:bool=ON  -Duse_builtin_httpapi:bool=ON  -Dskip_samples:bool=ON -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release
      -- The C compiler identification is GNU 9.4.0
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Deprecation Warning at deps/azure-macro-utils-c/CMakeLists.txt:4 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Warning (dev) at deps/azure-macro-utils-c/CMakeLists.txt:14 (option):
        Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
        --help-policy CMP0077" for policy details.  Use the cmake_policy command to
        set the policy and suppress this warning.

        For compatibility with older versions of CMake, option is clearing the
        normal variable 'run_int_tests'.
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Deprecation Warning at deps/umock-c/CMakeLists.txt:4 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      -- Looking for include file stdint.h
      -- Looking for include file stdint.h - found
      -- Looking for include file stdbool.h
      -- Looking for include file stdbool.h - found
      -- target architecture: x86_64
      -- Performing Test CXX_FLAG_CXX11
      -- Performing Test CXX_FLAG_CXX11 - Success
      -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")
      -- target architecture: x86_64
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-install-lqo3w3o_/uamqp/build/temp.linux-x86_64-cpython-311/cmake
      calling cmake --build . --config Release
      [  0%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/azure_base32.c.o
      [  1%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/azure_base64.c.o
      [  2%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/buffer.c.o
      [  3%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/constbuffer_array.c.o
      [  4%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/constbuffer_array_batcher.c.o
      [  5%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/connection_string_parser.c.o
      [  6%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/constbuffer.c.o
      [  7%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/consolelogger.c.o
      [  8%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/crt_abstractions.c.o
      [  9%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/constmap.c.o
      [ 10%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/doublylinkedlist.c.o
      [ 11%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/gballoc.c.o
      [ 12%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/gbnetwork.c.o
      [ 13%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/gb_stdio.c.o
      [ 14%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/gb_time.c.o
      [ 15%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/gb_rand.c.o
      [ 16%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/hmac.c.o
      [ 17%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/hmacsha256.c.o
      [ 18%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/xio.c.o
      [ 19%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/singlylinkedlist.c.o
      [ 20%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/map.c.o
      [ 21%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/sastoken.c.o
      [ 22%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/sha1.c.o
      [ 23%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/sha224.c.o
      [ 24%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/sha384-512.c.o
      [ 25%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/strings.c.o
      [ 26%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/string_token.c.o
      [ 27%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/string_tokenizer.c.o
      [ 28%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/uuid.c.o
      [ 29%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/urlencode.c.o
      [ 30%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/usha.c.o
      [ 31%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/vector.c.o
      [ 32%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/xlogging.c.o
      [ 33%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/optionhandler.c.o
      [ 34%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/memory_data.c.o
      [ 35%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/agenttime.c.o
      [ 36%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/condition_pthreads.c.o
      [ 37%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/lock_pthreads.c.o
      [ 38%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/platform_linux.c.o
      [ 39%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/socketio_berkeley.c.o
      [ 40%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/tickcounter_linux.c.o
      [ 41%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/threadapi_pthreads.c.o
      [ 42%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/uniqueid_stub.c.o
      [ 43%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/envvariable.c.o
      [ 44%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/dns_resolver_sync.c.o
      [ 45%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/linux_time.c.o
      [ 46%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/httpapiex.c.o
      [ 47%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/httpapiexsas.c.o
      [ 48%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/httpheaders.c.o
      [ 49%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/httpapi_compact.c.o
      [ 50%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/http_proxy_io.c.o
      [ 51%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/tlsio_openssl.c.o
      [ 52%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/x509_openssl.c.o
      [ 53%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/wsio.c.o
      [ 54%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/uws_client.c.o
      [ 55%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/uws_frame_encoder.c.o
      [ 56%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o
      [ 57%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o
      [ 58%] Linking C static library libaziotsharedutil.a
      [ 58%] Built target aziotsharedutil
      [ 59%] Building C object CMakeFiles/uamqp.dir/src/amqp_definitions.c.o
      [ 60%] Building C object CMakeFiles/uamqp.dir/src/amqp_frame_codec.c.o
      [ 61%] Building C object CMakeFiles/uamqp.dir/src/amqp_management.c.o
      [ 62%] Building C object CMakeFiles/uamqp.dir/src/amqpvalue.c.o
      [ 63%] Building C object CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o
      [ 64%] Building C object CMakeFiles/uamqp.dir/src/async_operation.c.o
      [ 65%] Building C object CMakeFiles/uamqp.dir/src/cbs.c.o
      [ 66%] Building C object CMakeFiles/uamqp.dir/src/connection.c.o
      [ 67%] Building C object CMakeFiles/uamqp.dir/src/frame_codec.c.o
      [ 68%] Building C object CMakeFiles/uamqp.dir/src/header_detect_io.c.o
      [ 69%] Building C object CMakeFiles/uamqp.dir/src/link.c.o
      [ 70%] Building C object CMakeFiles/uamqp.dir/src/message.c.o
      [ 71%] Building C object CMakeFiles/uamqp.dir/src/message_receiver.c.o
      [ 72%] Building C object CMakeFiles/uamqp.dir/src/message_sender.c.o
      [ 73%] Building C object CMakeFiles/uamqp.dir/src/messaging.c.o
      [ 74%] Building C object CMakeFiles/uamqp.dir/src/sasl_anonymous.c.o
      [ 75%] Building C object CMakeFiles/uamqp.dir/src/sasl_frame_codec.c.o
      [ 76%] Building C object CMakeFiles/uamqp.dir/src/sasl_mechanism.c.o
      [ 77%] Building C object CMakeFiles/uamqp.dir/src/sasl_server_mechanism.c.o
      [ 78%] Building C object CMakeFiles/uamqp.dir/src/sasl_mssbcbs.c.o
      [ 79%] Building C object CMakeFiles/uamqp.dir/src/sasl_plain.c.o
      [ 80%] Building C object CMakeFiles/uamqp.dir/src/saslclientio.c.o
      [ 81%] Building C object CMakeFiles/uamqp.dir/src/session.c.o
      [ 82%] Building C object CMakeFiles/uamqp.dir/src/socket_listener_berkeley.c.o
      [ 83%] Linking C static library libuamqp.a
      [ 83%] Built target uamqp
      [ 84%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umock_c.c.o
      [ 85%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umock_c_negative_tests.c.o
      [ 86%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockalloc.c.o
      [ 87%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockcall.c.o
      [ 88%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockcallrecorder.c.o
      [ 89%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypename.c.o
      [ 90%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes.c.o
      [ 91%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes_bool.c.o
      [ 92%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes_c.c.o
      [ 93%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes_stdint.c.o
      [ 94%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes_charptr.c.o
      [ 95%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umocktypes_wcharptr.c.o
      [ 96%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockcallpairs.c.o
      [ 97%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockstring.c.o
      [ 98%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umockautoignoreargs.c.o
      [ 99%] Building C object deps/umock-c/CMakeFiles/umock_c.dir/src/umock_log.c.o
      [100%] Linking C static library libumock_c.a
      [100%] Built target umock_c
      building 'uamqp.c_uamqp' extension
      creating build/temp.linux-x86_64-cpython-311/uamqp
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./src/vendor/inc -I./src/vendor/azure-uamqp-c/deps/azure-macro-utils-c/inc -I./src/vendor/azure-uamqp-c/deps/umock-c/inc -I./src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/inc -I./src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/inc -I./src/vendor/azure-uamqp-c/inc -I./src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/linux -I/home/runner/work/core/core/venv/include -I/opt/hostedtoolcache/Python/3.11.0-rc.2/x64/include/python3.11 -c uamqp/c_uamqp.c -o build/temp.linux-x86_64-cpython-311/uamqp/c_uamqp.o -g -O0 -std=gnu99 -fPIC
      uamqp/c_uamqp.c:268:12: fatal error: longintrepr.h: No such file or directory
        268 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

Seems to fail to build due to missing longintrepr.h during build of 'build/temp.linux-x86_64-cpython-311/uamqp/c_uamqp.o' (from 'uamqp/c_uamqp.c')
Reproduction:
docker run -it python:3.11-rc-slim bash
apt update
apt install --no-install-recommends g++ libc-dev cmake make libssl-dev uuid-dev
pip install uamqp

Quick google search gives possibly relevant:

Fails to build on Python 3.11 - longintrepr.h: No such file or directory aio-libs/aiohttp#6600
[BUG] longintrepr.h not found cython/cython#4461

Solution seems to be:
- #include "longintrepr.h"
+ #if PY_MAJOR_VERSION < 3
+   #include "longintrepr.h"
+ #endif

(or drop Python 2 support entirely, and just remove the include)

Thanks for this @EpicWink and @frenck ...Looks like the cython requirement needs to be bumped up to fix this.

Wanted to give yall an update, I'm working on generating wheels for 3.11 in this feature branch. Bumping up the cython was indeed the fix, the version we had pinned to had a bug which was fixed subsequently. I am able to build wheels so a simple workaround is to just bump up the version to 0.29.32 to get yall moving :)

Cool if there is a help you need on that - we are looking forward to it in Apache Airflow too
I know it is eaarly (Python 3.11 has just been released yesterday) but we are hoping in Apache Airflow to a much faster cycle of adding new Python releases - especially that Pyhon 3.11 introduces huge performance improvements (25% is the average number claimed) due to a very focused effort to increase single-threaded Python performance (Specialized interpreter being the core of it but also many other improvements) without actually changing any of the Python code.
The azure-uamqp-python is one of the dependencies of Airlfow that need to support newer Python version so this issue is here to make you aware that we are eaager (also to help if needed) to make it faster, possibly by talking to dependencies of Beam as well (who are oftten also direct dependencies of Airflow) and help them as well. I perfectly understand we need to bubble up support so that your dependencies support them first.
I opened PR in Apache Airflow yesterday and plan to keep it open until it gets green :)
https://github.com/apache/airflow/pull/27264
I think it would be fantastic if we could as the open source community migrate to the new Python much faster.
Looking forward to cooperation on that one :)

Hi @potiuk, Im the in the process of running a few tests on uamqp and making sure everything is working the way we intend it to be, so that everyone has a smooth experience whilst using 3.11 :) We are also quite excited to see the effect of 3.11 on our code base.
As you know macOS runners on Github added 3.11 to their images just a few hours ago, so I need to go through those and some internal checks before pushing out new wheels.
appreciate the offer for help, Ill update this thread if I end up needing help etc.

hello everyone, we just published version uamqp 1.6.3 that has support for py311

WOOOHO!!!


Review

Hi Dear :wave:
:large_blue_diamond: This is our Ruby on Rails group project.
:large_blue_diamond: This is the link to our kanban board.
:large_blue_diamond: We are two partners me @SaboorSohaib and @demix007.
Thanks.

Hi @SaboorSohaib  and @demix007 ,
✔   Status: APPROVED 🏆 🎉 🎊
You have done a great job on this project, keep it up 👍 🥇. Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
congratulations!  🎉💯🌟
Top highlight 🎯

All requirements are duly represented on the Kanban board ✅
Project requirement assigned fairly✅
Good project requirement description on Kanban board ✅

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


[BUG] Different outputs by original model and inference engine

Describe the bug
Different outputs by original model and inference engine

To Reproduce
Code for reproduce:
import torch
from transformers import GPT2LMHeadModel, GPT2Tokenizer

import deepspeed

test1 = "Hello world, I'm"
test2 = "Sampling test is very"

if __name__ == '__main__':
    model = GPT2LMHeadModel.from_pretrained('gpt2')
    or_model = model.to('cuda').to(torch.half)
    tokenizer = GPT2Tokenizer.from_pretrained("gpt2")

    x = [tokenizer.encode(test1), tokenizer.encode(test1),
         tokenizer.encode(test2), tokenizer.encode(test2)]
    x = torch.as_tensor(x).to('cuda')

    ds_engine = deepspeed.init_inference(GPT2LMHeadModel.from_pretrained('gpt2'),
                                         mp_size=1,
                                         dtype=torch.half,
                                         checkpoint=None,
                                         replace_method='auto',
                                         replace_with_kernel_inject=True)
    ds_model = ds_engine.module

    or_output = or_model.generate(x, max_length=20)
    ds_output = ds_model.generate(x, max_length=20)
    or_samples = [tokenizer.decode(or_output[i]) for i in range(or_output.shape[0])]
    ds_output = [tokenizer.decode(ds_output[i]) for i in range(ds_output.shape[0])]
    assert or_samples == ds_output

ds_report output
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
cpu_adam ............... [NO] ....... [OKAY]
cpu_adagrad ............ [NO] ....... [OKAY]
fused_adam ............. [NO] ....... [OKAY]
fused_lamb ............. [NO] ....... [OKAY]
 [WARNING]  using untested triton version (2.0.0), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
async_io ............... [NO] ....... [OKAY]
utils .................. [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
transformer_inference .. [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/user/.local/lib/python3.8/site-packages/torch']
torch version .................... 1.11.0+cu113
torch cuda version ............... 11.3
torch hip version ................ None
nvcc version ..................... 11.5
deepspeed install path ........... ['/home/user/.local/lib/python3.8/site-packages/deepspeed']
deepspeed info ................... 0.7.0, unknown, unknown
deepspeed wheel compiled w. ...... torch 1.11, cuda 11.3

Screenshots
If applicable, add screenshots to help explain your problem.
System info (please complete the following information):

Ubuntu 20.04.4
1 x A5000
Python version== 3.8.10
transformers==4.21.1

Launcher context
python main.py

@reymondzzzz I am able to reproduce these results. I'm not exactly sure why the outputs don't match. If I use the HuggingFace pipeline API, the problem goes away. Can you confirm this behavior on your system?
import torch
import deepspeed
from transformers import pipeline

test1 = "Hello world, I'm"
test2 = "Sampling test is very"

pipe = pipeline('text-generation', 'gpt2', device=0, framework='pt')
pipe.model = pipe.model.half()
or_output = pipe([test1, test2], max_length=20, do_sample=False)

pipe.model = deepspeed.init_inference(pipe.model,
                                     mp_size=1,
                                     dtype=torch.half,
                                     checkpoint=None,
                                     replace_method='auto',
                                     replace_with_kernel_inject=True)
ds_output = pipe([test1, test2], max_length=20, do_sample=False)

print(or_output)
print(ds_output)
assert or_output == ds_output

This test is working, but I have custom model(gpt2) and I want to use DS for inference. I don't use hugging face in my project and pipeline too, but in my project I have different result between torch only and DS inference.

I thing cuda kernels have some problem, because second string from ds_output looks like strange. Like mix test1 and test2

@reymondzzzz - can you please adddo_sample=False to your script?
Please modify the line where you call HF generate as ds_output = ds_model.generate(x, max_length=20, do_sample=False)

@reymondzzzz - closing this issue for now. If the above method does not work, please reopen the issue.


fixes some link references

fixes some reference in the docs

Can you please clean up the PR. There is the hook/__pychache__ folder with python artifacts... that do not belong there.

fixed but I means we need to add git ignore files as this got created when running the makefile

Ok yes, go ahead and do so.


Execute a callback after opening new buffer

I'm using stickybuf with toggleterm, which sets some window options that stay with the newly opened buffer, so I would like a way to reset them.
Example:
require("stickybuf").pin_filetype(false, function()
  vim.wo.winhighlight = ""
  vim.wo.number = vim.go.number
  vim.wo.relativenumber = vim.go.relativenumber
end)

I've added this by means of the restore_callback option on the stickybuf.pin function. See the API docs for details


Please add a license file and consider renaming the repository

I'd like to add this to awesome-zsh-plugins, but I only add themes with a license file, some people won't use any code that doesn't have an open source license. If you don't have one in mind, https://choosealicense.com is a good resource to help you select an appropriate one.
The plugin's name is very generic. Please consider renaming it to something descriptive, or even just name it even-more-emojis after your the plugin file.
Finally, don't take these as criticisms of the work you've done, they're meant to make a more useful entry in the plugin/theme list.
Thanks!

Updated the repo as per your recommendations! :)

Adding it in today's update. Thank you.


genealabs/laravel-mixpanel 0.10.1 requires illuminate/config ^7.0

Great package.
My setup is still at Laravel 6.x and I'm getting an error on upgrade to 0.10.1 that's asking me to upgrade to Laravel 7.x, which I'm not ready for yet. Is this dependency necessary? Perhaps it could run Laravel 7.x specific integrations on a different branch?
I'm happy to contribute if needs be.

HI @aakarim, please feel free to fork the package and make any adjustments you need to get it to run on old versions of Laravel. At this time I am only going to be supporting the current version of Laravel.


Add my new pixel

Checklist

[x] I ran npm test locally and it passed without errors.

[x] I only edited the _data/pixels.json file.

[x] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

Hey @aditya274 this seems to be a duplicate contribution. So I'll close this. Thank you for contributing!


feat: make it smaller

clean up a bit package.json
add node 8 and 10 to travis
removes polyfills
removes unused vars and functions

Ping

@maxogden @mafintosh any chance we can get this merged and released ?

Did the same thing in #63 + a bit more without realising you hade already done some of it

🙏 🥺 please can we have?

@alanshaw added you as a maintainer because I know you IRL :) I'd recommend the next npm publish be a major version just to avoid any potential breakage since this is so widely used

@alanshaw @hugomrdias Would it be possible to add buffer as a dependency to the package.json? (and a var Buffer = require('buffer') statement) to make sure that no extra setup is needed in webpack context?


allowing skip certain no of tracker processing to improce orientation responsivness

add parameter optical_tracker_skip_frames to allow skip configured number of
m_tracker_manager->poll();
allowing to processs more other elements.
this improves orientation responsiveness.
zelmod tested it as well and he confirms.
it can have negative impact on position tracking so one use it at his or her own risk.
for me with parameter 15 benefits are great!

This is the wrong solution to this.
Instead the camera polling and sensor (bluetooth) polling should be asynchronous.
Some of the reasons why I don't like it:

We already have too many parameters and settings. I would prefer less, not more.
It has no concept of frame rate. Skipping N frames at 30 fps is different than skipping N frames at 60 fps. This is an added unnecessary complication that someone would need to add to the documentation and answer questions on in the forums.

Hi Chad.The approach u are proposing is not something I can undertake at the moment.This solution is dirty but it works so well and I am really amazed what really justifies doing it. It's default 0 so no impact.Other topic is that I don't think that we can have less parameters since there is so many cases and it's so far away from out of box solution...
And once more... it really does work perfectly.
Wysłano z mojego smartfonu w Play
-------- Oryginalna wiadomość --------Od: Chadwick Boulay<EMAIL_ADDRESS>Data: 01.03.2017  21:14  (GMT+01:00) Do: cboulay/PSMoveService<EMAIL_ADDRESS>DW: gb2111<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Temat: Re: [cboulay/PSMoveService] allowing skip certain no of tracker processing to improce orientation responsivness (#375)
This is the wrong solution to this.
Instead the camera polling and sensor (bluetooth) polling should be asynchronous.
Some of the reasons why I don't like it:
We already have too many parameters and settings. I would prefer less, not more.
It has no concept of frame rate. Skipping N frames at 30 fps is different than skipping N frames at 60 fps. This is an added unnecessary complication that someone would need to add to the documentation and answer questions on in the forums.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cboulay/PSMoveService","title":"cboulay/PSMoveService","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/cboulay/PSMoveService"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cboulay in #375: This is the wrong solution to this.\r\nInstead the camera polling and sensor (bluetooth) polling should be asynchronous.\r\n\r\nSome of the reasons why I don't like it:\r\n\r\n* We already have too many parameters and settings. I would prefer less, not more.\r\n* It has no concept of frame rate. Skipping N frames at 30 fps is different than skipping N frames at 60 fps. This is an added unnecessary complication that someone would need to add to the documentation and answer questions on in the forums."}],"action":{"name":"View Pull Request","url":"https://github.com/cboulay/PSMoveService/pull/375#issuecomment-283456331"}}}

"Works perfectly" seems to be subjective. In my view, needing to skip frames is not "working perfectly".
What is the underlying problem? Please take the time to describe it clearly.
If I understand correctly, the high-level problem is that polling the cameras is taking too long and this is slowing down everything else. WHY is it taking too long? What's the bottleneck? Why can't this be solved by reducing the camera framerate? Is there a busy wait somewhere while it waits for a frame to be available? If so, then wouldn't the better solution to be to check if the camera has a frame available and if not then poll() should return immediately? Then users only have to turn one knob (camera fps).

@gb2111 Hey! I am having the same issue, and would like to try out your solution!
Could you help me please, where should I exactly put in "optical_tracker_skip_frames" and "m_tracker_manager->poll();" ?
Thank you in advance!

@ZedVR I've made a fork with the changes here: https://github.com/Eerovil/PSMoveService
Haven't tested yet, I'll need to setup a build environment first...


Don't translate keywords and names

❓ Questions and Help
Hello, I'm new to this.
I did search the docs and issues for a solution but couldn't find any. If there already is an issue/doc about this topic, I'm sorry and I'd be really thankful for a pointer.
What is your question?
I am using the transformer.wmt19.de-en.single_model and its result were really good so far. But for my use case it would be important to keep some keywords in the original input without translating them. Also some names are translated to different names. For example the German "Bernd" translates to "Bernard" in English which doesn't work at all for my use case.
(How) can I prevent certain words and names from translating?

I haven't tried this myself, but you could look into constrained decoding (implemented as --constraints): https://github.com/pytorch/fairseq/tree/master/examples/constrained_decoding

@myleott
Hi. I have tried --constraints, but the translation speed is slower than before without using --constraints. Is there any solution?


feat(yard): add the Tabs component (nested components support)

added the Tabs component
PropTypes.ReactNode is now properly parsed and formatted (works great for nested components). There is no need inventing some complicated cross-reference mechanism at this point. Nested components can be just edited through the code (they usually don't have many options anyway).
all knob textareas switched to the Editor component to get that nice highlighting
better popup babel parse errors (LoC numbers were off)
added an API for extra imports and supporting default imports as well

Just noticed that the knob values lose formatting when editing the main code. Will fix that.


List of conflicting fixers

I think it should be in the docs wich fixers conflicts with other fixer. An example of this are the  concat_without_spaces and concat_with_spaces both do the opposite thing. I don't know which other are out there but I think the are there.

I already proposed this, and it's getting done in 2.0.

See https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/910.

Sorry!


Wrong header sent when redirected to another domain

When a request is redirected to another domain the authorization header from the first domain is sent with the new request.
Specifically in my case I have a request to a content URL that can be redirect to an amazon bucket URL.
The request to my application is authenticated with a "Authorization" header, which RestAssured is sending in the redirect, that leads to an error on AWS endpoint: Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified.
I think is related to issue #948 .
Thanks

Same here, I received 400 from AWS S3 after rest assured followed redirect (302 response) and pass the authorization header from the original request to S3 which doesn't know how to handle it
HTTP/1.1 400 Bad Request
x-amz-request-id: 9BD719E7F4DBE3AF
x-amz-id-2: 22KCSSXxQrRK8SJZwAOTFLwy5GpWIerVqpVr9s9INnQWYbyrhIFw7qIzwuK8BQuHNMqPJKzQ/8s=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Sun, 26 Apr 2020 22:45:32 GMT
Connection: close
Server: AmazonS3

<Error>
  InvalidArgument
  <Message>Unsupported Authorization Type</Message>
  <ArgumentName>Authorization</ArgumentName>
  <ArgumentValue>Bearer token</ArgumentValue>
  <RequestId>9BD719E7F4DBE3AF</RequestId>
 <HostId>22KCSSXxQrRK8SJZwAOTFLwy5GpWIerVqpVr9s9INnQWYbyrhIFw7qIzwuK8BQuHNMqPJKzQ/8s=</HostId>
</Error>


[new ui] Toolbar component

Add a <Toolbar /> component to wrap elements like tabbars
🌈 Demo 🌈
Screenshots

ah! i see what you've done here. looks very nice

hold up why are the tabs listed twice on storybook will have a look


Fix running on Windows

If path.sep is \, RegExp creation fails with an exception:
Invalid regular expression: /\/g: \ at end of pattern

Use replaceAll instead.

Thanks for PR, LGTM
I'll publish the new version within the next several hours


support PEP 660 hook calling

PEP 660 is pronounced as accepted

Close in favor of #119

Thanks - #119 has been merged and there's a 0.11 release.

Close in favor of #119

Ah, apologies, I had not noticed this PR.


Typings: add optional cancel property on CpsCallback

It is possible to write a cancellable CpsEffect by setting the cancel property to a function you want to get executed on cancel. Let's update the typings to match the logic in the code.

Cc @aikoven

We should add a test for this.
Also, how about this:
type CpsCallback = {
  (error: any, result: any): void;
  cancel?(): void;
};

@aikoven thanks, I like it! The PR is updated.

Merging in, thanks!


Vagrant cheat sheet

Do we need it @fredrikhgrelland @Neha-Sinha2305 @pdmthorsrud ? If not, let us close the issue
Just an idea to have useful commands in simplified representation somewhere in the current repository.
Example https://github.com/zhenik/doc-fix/blob/master/docs/addtional/vagrant_cheat_sheet.md

I wanna say most people end up looking at google anyways, but it's difficult to look up on google when you don't know what you're looking for. I personally can't see any reason why it would negatively affect anything adding it in, except maybe the need to maintain it in the future as new features are added.

I would suggest also expand this idea to terraform, consul and nomad CLIs also

@zhenik : Can we change the milestone for this issue to 0.3.3? We can aim to release 0.3.2 by eod then!


Model for Waymo Motion Dataset ?

Thanks for the sharing this awesome code.
Are you also planning to update code for Waymo Motion Dataset ?
the winning model of the 2021 Waymo Motion Prediction Challenge

We cooperated with a company to develop the model for the Waymo challenge, so we cannot release it for the moment.


Changed 'Field' instances not to use 'Rich*.abs'

This is to workaround boxing on Scala 2.10, see SI-7511 and scala/scala#2676.

thanks!


Map is not rendered if a valid style is opened

Map is not rendered if a valid style is opened after the previous style has broken the map.
Steps to reproduce:

Use https://maputnik.github.io/releases/v1.7.0-beta2/#14.15/51.55152/0.00584
Unzip and open the following style: test_failing.zip
Unzip and open the following style: test.zip

Notes: It looks to partially work on master but only if you zoom the map in/out.

It also works if you reload the browser tab (F5).

Same issue when a style is modified to fix the font 404 (used test_housenumber.zip with
https://2502-84182601-gh.circle-artifacts.com/0/artifacts/build/index.html from #654).
There is no re-rendering of the map, only if you zoom the map:


Change app credentials

change the format of app credentials to have more clarity

Port bindings will no longer include host ip

external address will be the recommended way to access the node

internal address is hardcoded to <IP_ADDRESS> for docker

change config parameter from external_ip to external_address

[x] have tests

[ ] get reviews

fixes #64

I do not see any reasonable expansion at this time.
Multiple addresses for a single service binding seems unreasonable,
especially with different port mappings. (Thought here is some type of
clustered database where you can talk to any node.)
Do we see protocols being relevant? TCP/UDP? Higher level? HTP vs websocket?
I need a more concrete understanding of how this is given to the
end-user app. I think we should aim for simplicity. Address. Only one
access point if possible. Given the current specificity to exposing a
particular container, I think we're fine.
Good for merge from me. File an issue to tackle it later.
On 10/03/2018 08:09 PM, Swetha Repakula wrote:

@swetharepakula commented on this pull request.

In pkg/containermanager/container_manager.go
https://github.com/cloudfoundry-incubator/blockhead/pull/65#discussion_r222526483:

@@ -16,13 +16,13 @@ type BindConfig struct {
}

type Binding struct {

HostIP string
Port   string

Port string

That is true, we don't really need this to be a struct anymore. It
wasn't intentional, but you bring up a good point. Do we think we
would need to expand this in the future?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry-incubator/blockhead/pull/65#discussion_r222526483,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMuDAT4zTWIF0WB3XKJVED74IjovLFIVks5uhXv0gaJpZM4XHRLy.


BussinessDateCalendar getRolledDate JavaDoc does not match implementation

I ran into an issue during a refactor in our code base. I assumed the JavaDoc to be true, however the statement about zero business days is false.
	/**
	 * Find a new date by adding the given number of business days to a given base date.
	 *
	 * If baseDate is not a business date and businessDays is zero, the method returns the next business day.
	 *
	 * @param baseDate The starting date.
	 * @param businessDays The number of business days from the starting date (negative values are allowed).
	 * @return A date of a business day such that the number of business days between this one (including) and the start date (excluding) is businessDays.
	 */
	LocalDate getRolledDate(LocalDate baseDate, int businessDays);

The javadoc indicates that getRolledDate always returns a bussiness day, even if 0 business days are given.
Meanwhile in AbstractBusinessdayCalendar:

	@Override
	public LocalDate getRolledDate(final LocalDate baseDate, int businessDays) {
		LocalDate			rolledDate			= baseDate;
		final int					direction			= businessDays >= 0 ? 1: -1;
		final DateRollConvention	dateRollConvention	= direction > 0 ? DateRollConvention.FOLLOWING : DateRollConvention.PRECEDING;
		while(businessDays != 0) { // business day == 0 so while loop does not get executed
			rolledDate = rolledDate.plusDays(direction);
			rolledDate = getAdjustedDate(rolledDate, dateRollConvention);
			businessDays -= direction;
		}
		return rolledDate; // is still equal to the basedate.
	}

The implementation just returns the given date when there are 0 business days given.
I think by this point the JavaDoc should be fixed as changing the implementation will probably cause breakage.

Thank you. You are right. Fixing the JavaDoc is the best option.
Also, returning the unmodified baseDate would be consistent with this part of the documentation:
@return A date of a business day such that the number of business days between this one (including) and the start date (excluding) is businessDays.

and passing a 0 it appears arbitrary if we choose then next or the previous businessday.
Change JavaDoc to
	/**
	 * Find a new date by adding the given number of business days to a given base date.
	 *
	 * If businessDays is zero, the method returns the unmodified base date (without adjustment).
	 *
	 * @param baseDate The starting date.
	 * @param businessDays The number of business days from the starting date (negative values are allowed).
	 * @return A date of a business day such that the number of business days between this one (including) and the start date (excluding) is businessDays.
	 */


Cannot read property 'start' of undefined

I'm not sure if it's my setup but using using * selectors in the target results in the error:
Warning: Cannot read property 'start' of undefined Use --force to continue.

So this works:
    options: {
        configFile: '.sass-lint.yml'
    },
    target: ['scss/style.scss']

But this doesnt:
    options: {
        configFile: '.sass-lint.yml'
    },
    target: ['scss/*.scss']

Anyone else experience this problem? Using node 4.1.1 if that makes any difference.

same for me :(

https://github.com/sasstools/sass-lint/issues/62

I'm getting this issue too:
Running "sasslint:target" (sasslint) task
Warning: Cannot read property 'start' of undefined Use --force to continue.

node: v0.10.36
npm: v1.4.28
grunt-sass-lint 0.1.0-beta.4

@kevinlbatchelor I've read through https://github.com/sasstools/sass-lint/issues/62, but I'm not clear on the resolution - is the issue a tabs v spaces thing, or something else?

It's probably to do with the indentation rule, if you're using tabs then this will definitely fail at the moment, theres an explanation here
If you're using spaces then it could be down to the line ending characters being used, CLRF is causing an issue as notes here
We're a bit loathed to update the indentation rule too much at the moment due to the current state of tabs in the AST and the fact that when we update to the latest version of gonzales-pe we'll need to rewrite the rule anyway.

Has anyone been able to create a solution for this? Not being able to pass *.scss to the target makes checking multiple files tedious. The files I'm testing are using 4 spaces for tabs and should be using lf line endings.
Any help appreciated.

I had this same issue. I resolved it by changing the line ends of ALL files to LF. There were 2 of the 20+ files that were on CRLF. Unfortunately when it errors it doesn't list which file it errored on. I had to edit the sass-lint files to added a few console logs.

The good news is we may be able to do something about this soon. We're in the process of updating to the latest version of the AST we use to parse your files, it's fixed a lot of issues now. Once that is complete we'll be able to fix any issues with tabs and line endings. Sorry for the delay..

@Kjuib where did you stick your console.log?

@Kjuib figured it out, couldn't remember what you did. FYI a console.log in line 179 of index.js in the sass-lint directory will show you what file is the process is dyeing on. Then go change the line endings on that file.

@kevinlbatchelor for completness I thought I would add the console.log code you're referring to on line 179:
  files.forEach(function (file) {
    console.log('file #=> ' + file);
    ...
  });

@DanPurdy fingers crossed the latest version of AST helps, I don't seem to be able to exclude files either :( e.g.:
grunt.initConfig({
    sasslint: {
        options: {
            configFile: 'config/.sass-lint.yml',
        },
        target: [
            'location/*.scss',
            '!location/vendor.scss'
        ]
    }
});

This is another problem that we hope to have fixed soon. The sass-lint method that both grunt-sass-lint and gulp-sass-lint use is post the point where we check for file includes / excludes which is a bit of a frustration. I'll be looking at getting it sorted in sass-lint itself soon so we don't have to worry about parsing configs in these plugins.

Super!

Adding /**/*.scss to path also generates this error. I need to scan entire project, so writing all paths manually is not possible. Thanks.

Same here, being able to at least /*.scss is a must. Not necessary to scan all folders but at least all files within the path. Having .scss invites to separate code into components, etc...
Any workaround or solution in the horizon?
Thank you.

Can you try running this just using the sass-lint Cli without grunt please.. Parse errors should no longer dump you out and instead return a parse error as a lint error..
If it's still throwing you out then I need to know a bit more about your settings.. The issue is not with the globbing of your files so you can definitely use those path specifications. If there's something in one of those files crashing it though we need to see what..
The original issue is a problem with the AST we're using, it doesn't handle crlf line endings or tabs and generally just has a few issues on Windows. A lot of these are sorted in sass-lint 1.6 when we release that as it includes an update to the latest version of the AST.. The only thing blocking us releasing that is the AST includes a bash specific post install script which renders it completely useless on most people's windows machines.. Our hands are tied until someone updates the AST which is out of our hands..

Hey @DanPurdy,
Finally got around to testing this,

Can you try running this just using the sass-lint Cli without grunt please.. Parse errors should no longer dump you out and instead return a parse error as a lint error..

So using Node v4.4 with nvm and with sass-lint v1.5.1 on OSX:
$ sass-lint '*.scss' -v -q
.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:57
                  'line': node.content[i + 1].start.line,
                                             ^

TypeError: Cannot read property 'start' of undefined
    at processNode (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:57:46)
    at processNode (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:96:9)
    at processNode (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:96:9)
    at processNode (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:96:9)
    at processNode (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:96:9)
    at Object.module.exports.detect (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/lib/rules/indentation.js:100:5)
    at .nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/index.js:123:27
    at Array.forEach (native)
    at Function.sassLint.lintText (.nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/index.js:122:11)
    at .nvm/versions/node/v4.4.0/lib/node_modules/sass-lint/index.js:179:21

The original issue is a problem with the AST we're using, it doesn't handle crlf line endings or tabs and generally just has a few issues on Windows. A lot of these are sorted in sass-lint 1.6 when we release that as it includes an update to the latest version of the AST.

Did you want me to raise this as a different issue to track the two if they are not related?


DOCS: document style mistake

Hi @jingyuexing Thanks for reporting. I was trying to fix it but it looks like it's no longer the case.
Can you please recheck?

Hi @jingyuexing Thanks for reporting. I was trying to fix it but it looks like it's no longer the case.
Can you please recheck?

PS:I guess maybe just need to adjust the z-index property in css

Yes, I know that is z-index issue but I'm not getting the issue now. Can you please check it and let me know.
Awaiting your response.

oh, Sorry I was checking in dark mode 🙏🏻
Let me fix it.

FYI, We will be improving z-index in upcoming release that will completely remove z-index related issues. Thanks for reporting.

This is because the z-index setting of the syntax highlighting content is relatively large. Most of the content in the code block can float on top of other elements.


Indexing 101 Landing/Overview Page

Note to self: add info for mission/vision/contact/what to expect and when, where to find info/videos


Authenticating Spinner on the Login Screen

Example:
https://sourcey.com/beautiful-android-logn-and-signup-screens-with-material-design/screenshot-login-spinner.png

Example:
https://sourcey.com/beautiful-android-logn-and-signup-screens-with-material-design/screenshot-login-spinner.png

Yes buddy this will work perfectly
and if completed this work it will also clear the bug, #1

I've assigned you this issue


  I won't release it until the other one is done too, so we can revisit if really necessary.

no worries:)  Thanks!


Updated icon with new color options.

Hi daPhyre, as discussed: New icon colors, based on Brackets guidelines, with classes for each status. Let me know how you go!

Thanks!


docs: Fix broken links

Fix broken links in README.md and other cosmetic changes.
Signed-off-by: Devaraj Ranganna<EMAIL_ADDRESS>

@evedon @adbridge Please review.

readme links fixed during unification


[FEATURE] Assign existing security groups to a space

What area do you want to see improved?
terraform provider
Is your feature request related to a problem? Please describe.
There doesn't appear to be a way to assign an existing named security group to a space, either on space creation or as a separate resource.
Describe the solution you would like
I'd like to be able to do something like the following:
data "cloudfoundry_security_group" "trusted_egress" {
  name = "existing_egress_security_group"
}

resource "cloudfoundry_space" "app_space" {
  org = local.org_id
  name = local.space_name
}

resource "cloudfoundry_bound_security_group" "space_egress" {
  security_group = data.cloudfoundry_security_group.trusted_egress.id
  type = "running"
  spaces = [cloudfoundry_space.app_space.id]
}

Describe alternatives you have considered
The existing cloudfoundry_security_group resource is not accessible at the level of permission that I have, which can call both cf create-space and cf bind-security-group if I were using the CLI, so there do not appear to be any alternatives within this provider.
Additional context
No response

Considering the API is designed, we will need to create a new resource for managing bindings.

Its been assigned for immediate pickup @rahearn
considering the API documentation and the cf-cli and intuitive name for the resource would be security_group_binding and lifecycle = running/staging etc..

It would be better to have attributes running_spaces and staging_spaces similar to that of security_group resource instead.
I think  security_group_spaces_bindings would be more apt as a name. This makes it specific and obvious.


Add project profile page

Add project profile page for max
Edit project profile page details for Yee thern
Closes #11
Closes #14

Codecov Report
Base: 72.15% // Head: 72.15% // No change to project coverage :thumbsup:

Coverage data is based on head (212844b) compared to base (c7baa60).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #25   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix Typos and Minor Issues in Multiple Files

This Pull Request addresses various typographical errors and minor issues across multiple files in the project. These corrections enhance code quality, ensure consistency, and prevent potential runtime issues.
What Changed? Why?

styles.module.css

Corrected the invalid CSS property display: hidden; to display: none; in the .bannerSpacer class.
Removed the typo dispaly: none; from the .bannerSpacer class.

503.tsx

Fixed the typo in the error message from Error has occured to Error has occurred.

BridgeCards.tsx

Updated the CSS class from bg-hovergray to bg-hover-gray for consistency and to match naming conventions.

DesktopNav.tsx

Removed the duplicated items-center class from the navigation container to prevent redundant styling.

_document.tsx

Eliminated duplicate meta tags for twitter:domain to adhere to HTML standards and avoid potential SEO issues.

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1

Hi @wbnns I've addressed the feedback:

Reverted the twitter:domain meta tag to use property instead of name.
Corrected the display in styles.module.css.


Zmap with PF_RING

Hi,
We are trying to run zmap with PF_RING.
We have followed the install process with PF_RING. We have checked that PF_RING is working fine but when run zmap the hitrate is 0%
As an example output:
sudo ./src/zmap -i zc:enp65s0f0 -M udp -p 53 --source-ip=X.X.X.X --source-mac=X:X:X:X:X:X  -G X:X:X:X:X:X X.X.X.X/32
Oct 29 19:10:20.942 [WARN] blacklist: ZMap is currently using the default blacklist located at /etc/zmap/blacklist.conf. By default, this blacklist excludes locally scoped networks (e.g. <IP_ADDRESS>/8, <IP_ADDRESS>/8, and <IP_ADDRESS>/16). If you are trying to scan local networks, you can change the default blacklist by editing the default ZMap configuration at /etc/zmap/zmap.conf.
Oct 29 19:10:23.597 [INFO] zmap: output module: csv
Oct 29 19:10:23.597 [INFO] csv: no output file selected, will use stdout
0:00 0%; send: 0 0 p/s (0 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:01 13%; send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:02 25%; send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:03 38%; send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:04 50%; send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:05 63% (3s left); send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:06 75% (2s left); send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:07 88% (1s left); send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
0:08 100% (0s left); send: 1 done (508 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%
Oct 29 19:10:32.931 [INFO] zmap: completed
We are running this commit:
3d52a0b793bb55146baf82630e438b1b6fa66ec6
Our hardware:
Network card:
*-network:0
description: Ethernet interface
product: 82599ES 10-Gigabit SFI/SFP+ Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:41:00.0
logical name: enp65s0f0
version: 01
serial: 00:e0:ed:42:98:66
size: 10Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical fibre
configuration: autonegotiation=off broadcast=yes driver=ixgbe driverversion=4.1.5 duplex=full firmware=0x800000cb ip=x.x.x.x latency=0 link=yes multicast=yes port=fibre
PF_RING:
PF_RING Version          : 7.3.0 (dev:871afb2a4c7e2f9c88f08e66734a4669e89a0ca0)
Total rings              : 0
Standard (non ZC) Options
Ring slots               : 4096
Slot version             : 17
Capture TX               : Yes [RX+TX]
IP Defragment            : No
Socket Mode              : Standard
Cluster Fragment Queue   : 0
Cluster Fragment Discard : 0
Modules
ixgbe                 299008  0
vxlan                  49152  1 ixgbe
ptp                    20480  2 tg3,ixgbe
Thank you for the help.

Also during zmap compilation we have this warning:
zmap/src/zmap.c:210:60: warning: passing argument 8 of ‘pfring_zc_run_balancer’ from incompatible pointer type [-Wincompatible-pointer-types]
      zconf.pf.prefetches, round_robin_bursts_policy, NULL, distrib_func,
                                                            ^
In file included from zmap/src/socket.h:18:0,
                 from zmap/src/send.h:13,
                 from zmap/src/zmap.c:36:
/usr/local/include/pfring_zc.h:532:1: note: expected ‘pfring_zc_distribution_func {aka long int (*)(struct <anonymous> *, void *, void *)}’ but argument is of type ‘int32_t (*)(pfring_zc_pkt_buff *, pfring_zc_queue *, void *) {aka int (*)(struct <anonymous> *, void *, void *)}’
 pfring_zc_run_balancer(

What version of PF_RING are you using? We originally did this with 6.0.1, and it looks like the API might have changed since then.

Closing due to no response from reporter.


[BUG] - Problem with app

Describe the bug
A clear and concise description of what the bug is.
Smartphone (please complete the following information):

Device: [e.g. Pixel 4a]
Android Version: [e.g. Android 13]
App Version [e.g. 3.3.3]

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots (Only if necessary)
Additional context
Add any other context about the problem here.

No context to this bug.


Custom theme with theme.js file

I would like to create a custom theme that generates a single README.md file containing the entire public API for a project – suitable for small or mid-sized project on GitHub, for example. To do that, I would need to modify not just the Handlebars templates, but the theme.js file. This is apparently possible according to the documentation, but the part of the code that allows this to happen is commented out. Is there a reason for this? Or am I missing something?
If I'm not totally confused about this, I think there are three ways in which creating a custom theme.js file could be made easier:

Rather than evaluating theme.js, it should be imported with a require() call. The creator of the theme could then import the relevant classes (e.g. DefaultTheme, Renderer) from a single module. This would also make it possible to extend any theme – not just the default theme – which would resolve issue #36.
The TypeDoc API – along with its type declarations – should be exposed. It is already documented, so exposing it should be the easy part. This should make it possible to create a theme.ts file.
The themes guide in the documentation should be updated with a detailed example of creating a new theme with a theme.js or theme.ts file.

To illustrate, a theme.ts file might look like this:
// A single module exports the entire public API
import {DefaultTheme, AssetsPlugin, PageEvent} from 'typedoc/api';

// export = ... should also work for compatibility with module.exports in plain JS
export default class ReadmeTheme extends DefaultTheme {

  constructor(renderer, basePath) {
    super(renderer, basePath);

    // Remove components with the constructor to guard against typos and naming conflicts
    renderer.removeComponent(AssetsPlugin);

    this.listenTo(renderer, PageEvent.BEGIN, this.onRendererBeginPage);
  }

  // ...
}

These changes would likely be time-consuming, but I think they would make TypeDoc much more powerful. I would be happy to help with this in whatever way I can. I could even do a pull request, but I would certainly like some input first.
Thank you for this fantastic project.

Here's a little workaround:
https://github.com/thepalebluedot/typedoc-md-theme

:+1: I'd like to see typedoc have an out-of-box markdown output support.

typedoc-md-theme no longer exists it seems


Add pyproject.toml

Context

Directly calling setup.py for installing the Python package is deprecated. python setup.py install will throw a warning:

SetuptoolsDeprecationWarning: setup.py install is deprecated.
Use build and pip and other standards-based tools.

The new replacement for setup.py is PEP 517 and PEP 621.

PEP 621: The package's metadata is now specified in pyproject.toml. The TOML file is declarative and cannot contain arbitrary code unlike setup.py.

This PR provides

Replace setup.py sdist with build. This will install the build dependencies in an isolated environments and then generates sdist. Setuptools itself strongly suggests using this and to avoid using setup.py sdist since it is treated as deprecated. You can find more at https://github.com/pypa/setuptools/blob/245d72a8aa4d47e1811425213aba2a06a0bb64fa/docs/deprecated/commands.rst#L10

Modify the CI to build the sdist with python -m build

Remove the build-requirements.txt since we move those dependencies into pyproject.toml.

Remove the code in gen_protos.py where we install build dependencies.  This is not required since build-requirements are always installed from pyporject.toml

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R : @tvalentyn

Run Seed Job

retest this please

Run Seed Job

retest this please

Run Seed Job

retest this please

Run Seed Job

retest this please

There was some confusion in the commits on my part so I had to force commit again.

Run Seed Job

Run Seed Job

retest them please

retest this please

Run Seed Job

retest this please

@tvalentyn I addressed the comments and verified tests are working as expected. PTAL

Run Seed Job

retest this please

https://github.com/apache/beam/pull/28385#discussion_r1340561540
Some tasks like mypy, pylint doesn't need installation from wheels and they use toxTask and they run on linux. I think it would be good idea to go the current way

R: @tvalentyn

I addressed the comments. PTAL @tvalentyn. Thanks

Run Python 3.8 PostCommit

Run Seed Job

Run Seed Job

retest this please

Run Seed Job

Run Python_Coverage PreCommit

Run Python_PVR_Flink PreCommit

Run Java PreCommit

https://ci-beam.apache.org/job/beam_PreCommit_Python_Coverage_Phrase/69/ - python coverage test suite passes with expected changes on Jenkins. For GHA, it will be reflected once it is merged.

If there are any failures, please comment here and I will try to forward fix it.

From this run - https://github.com/apache/beam/actions/runs/6502267792/job/17661040535, I see one of the tests in the postcommits is failing. It was also seen on Jenkins. I have merged the solution 20 hours back. PTAL https://github.com/apache/beam/issues/28990. That would solve the failing test. let's monitor the tests and see if they go green for the next runs.

I started a run - https://github.com/apache/beam/actions/runs/6550155250 on the master. Will monitor it for any related failures to this PR.


[feat] Enable modifications to ReFrame's environment per system basis

This PR introduces the modules and variables parameters at the system level of the site configuration. This is useful in cases were a module is always needed to be loaded for launching jobs for example:
        'systems': {
            'foosys': {
                'modules': ['slurm']
                'hostnames': ['localhost'],
                'partitions': {
                    'compute': {
                        'scheduler': 'nativeslurm',
                        'environs': ['builtin-gcc'],
                    },
                }
            },

Notice that this modifies the ReFrame environment, whereas the same parameters defined for a partition do not.
Fixes #806.

@bcfriesen This fixes the issue you had when trying to load a module providing Slurm. You may now specify this module as parameter at the system level (check the description of this PR). Can you tell me if this works for you? Passing -m option should not be necessary any more.

Hi @vkarak,

@bcfriesen This fixes the issue you had when trying to load a module providing Slurm. You may now specify this module as parameter at the system level (check the description of this PR). Can you tell me if this works for you? Passing -m option should not be necessary any more.

Great! This is one of the last outstanding bugs that we have to work around at NERSC. We're returning from a system-wide maintenance today, so I will test this as soon as the systems come back (today or tomorrow).

Hi @vkarak, sorry for the delay. This patch indeed works for me, thanks!


Add node v0.12 and iojs on travis.yml

I found this pull request https://github.com/substack/node-browserify/pull/1110 .
Travis CI was failed, but current test works fine in my environment.
I would like to test this again.

@substack currently, travis test works fine!
please add io.js support on browserify.


Benchmark tests giving different results

The scores we get using lm_eval for an HF model today are different from the scores we got earlier this month:
lm_eval --model hf --model_args pretrained=EleutherAI/pythia-70m --tasks lambada_openai --device cuda:0 --batch_size 8 --verbosity DEBUG
We now get a perplexity of NaN and an accuracy of 0.0058.
In comparison, on around January 4th, we got a perplexity of 130.9624 and an accuracy of 0.2272.
I tried doing a rollback to the v0.4.0 commit from December 2023, and still get the perplexity of NaN and accuracy of 0.0058.
Are there any probable causes behind this divergence in benchmarks, and would there be any fixes that I could help look into?

You can run accelerate config in the command line to set up accelerate's config. It should also be visible at ~/.cache/huggingface/accelerate/default_config.yaml if you've set it up before, if I recall correctly.
I'd recommend using fp32 for the Pythia models consistently throughout your research paper, and noting in a footnote or appendix the discrepancies that arise when not using 32-bit precision. If you also provide a link to a codebase, then you can include the exact output files / exact commands run in lm-eval / codebase commit when running your experiments.

Sounds good!
We ran some of our lm_eval results on a cloud-based GPU, so we'll have to do some searching to figure out where the default_config.yaml is. In previous runs, I don't believe we ran accelerate config, so we'll also look into that command to standardize the params for the tests we ran.
Our group is planning to re-run our lm_eval test in the next couple of days; would it be possible for to keep this issue open for just a bit longer, in case we observe any other discrepancies in our results?

Yup, feel free to ping if you continue to observe any weirdness.

Closing for ease of tracking open Github issues, but please feel free to ping me on Discord if you encounter any extra issues or inconsistencies!


questions about batch size in GHMC_loss

Hi,  thanks for your nice work. In your paper, you mentioned the best bin size is 30, which is a balanced value, what is the batch size in your experiments when you using bin size 30?

@longchuan1985 We use the batch size of 16 (8 GPUs with two images per GPU), which can be seen in the example script. And I want to clarify that the relationship between the bin size and batch size is not so strong because the effect of bin size mainly depends on the distribution of the gradient norm of examples (but I admit larger batch size will make the distribution more steady).


Build for static V8 library on Windows

This PR adds the bits required to provide a prebuilt static V8 library on Windows, offering basically the same level of end user convenience as on Linux/Mac (i.e. not having to deal with a dozen DLLs in a distribution).
Existing Windows builds using v8go should not break, the change merely renders the need to package additional files with the executable unnecessary.

@cleiner ,
This is pretty cool, but I'm wondering if it makes more sense to try and get this merged into MSYS2, so everyone using their package has access to a static libv8.a, not just people using v8go. This also removes the need for this repo to track MSYS2's patches, and makes bundling the static library a simple copy command.

@neptoess,
I had similar thoughts along the way, but more in terms of asking the MSYS2 maintainers if they had tried submitting their patches to Chromium/V8, as it did support MINGW in the past, before the build system was migrated to GN (though I'm a little concerned this will turn out to be kind of a long term endeavor, if at all feasible).
With regard to merging this into MSYS2, I think there's nothing to merge here (except for the tiny 0002 patch) -- it would be more like asking for an additional package built to v8go's needs:

Changing the existing package would be breaking for the people currently depending on it
ICU is included in the MSYS2 build, but not in v8go; adding it would make the binary too big to bundle
v8_untrusted_code_mitigations is enabled for MSYS2, but not for v8go (don't know about the consequences of changing this)
I think the component build was chosen deliberately, so people can create their own snapshot_blobs

As I understand it, the need to track the MSYS2 package already exists (and would continue to exist even with a provided libv8.a), because if v8go uses a newer V8 version than MSYS2, Windows builds may break as the V8 API is not guaranteed to stay compatible, is it?
If this is the case, then versions shouldn't diverge and copying the patches will be one additional step in the "Upgrading the V8 binaries" section of the readme. There'd be no need to "patch the patches" as I did here.
That said, I get that it's a potential maintenance burden in its current form and I'd understand if the project would rather not take it on.

Good info @cleiner. I agree this is the path to take. I'll leave it up to @rogchap and the other maintainers to determine whether they want to bundle a static lib for Windows. I personally think it's a good idea though.

@cleiner WOW This looks amazing 🤩
Will make so many Windows users happy.
Will take a closer look this afternoon.

@cleiner can you possibly update with latest master? For some reason GH is returning a 500 when I try and use the GUI to try and update.
I've fixed the FOSSA issue, so the tests should now run successfully.

@zwang Do you have any time to look at this one, as you are more familiar with the Window ecosystem than I?
I want to make sure the path to upgrading V8 to latter versions will be possible/easy/documented, which is my main concern.

The overall changes looks good to me. Although I could not verify the correctness of the patches, I assume the patches are good since they are from mingw.
Regarding the path to upgrading V8 to latter versions, it seems to be possible and is well documented as I see.

@cleiner can you possibly update with latest master? For some reason GH is returning a 500 when I try and use the GUI to try and update.
I've fixed the FOSSA issue, so the tests should now run successfully.

@rogchap Rebased on current master.