wandb.init fails with error module 'psutil' has no attribute 'pid_exists'

Describe the bug

When I try to do wandb, it gives me a "pid not found in psutil" error

>>> import wandb
>>> run = wandb.init(
...     # Set the project where this run will be logged
...     project="my-awesome-project",
...     # Track hyperparameters and run metadata
...     config={
...         "learning_rate": 0.01,
...         "epochs": 10,
...     })

Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/__main__.py", line 3, in <module>
    cli.cli(prog_name="python -m wandb")
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 102, in wrapper
    return func(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 279, in service
    server.serve()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/server.py", line 118, in serve
    mux.loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 427, in loop
    raise e
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 425, in loop
    self._loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 411, in _loop
    if self._check_orphaned():
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 407, in _check_orphaned
    return not psutil.pid_exists(self._pid)
AttributeError: module 'psutil' has no attribute 'pid_exists'

Additional Files
No response
Environment
WandB version: wandb                     0.15.10                  pypi_0    pypi
OS: Linux
Python version: python                    3.10.4               h12debd9_0
Versions of relevant libraries: psutil                    5.9.5                    pypi_0    pypi
Additional Context
It worked well a few days ago.

Hi @dyhan316 thanks for reporting this issue. Was it working fine before with same wandb version? and did you upgrade any other package? may I please ask what's your current psutil version? and could you please send the debug.log and debug-internal.log file from this failed run? These files are under your local folder wandb/run-<date>_<time>-<run-id>/logs in the same directory where you’re running your code.

@thanos-wandb  thank you for the reply!
Yes, it did work and I did not upgrade anything. The  version of psutil is psutil 5.9.5 pypi_0 pypi.
Below is the error code (I did keyboard interrupt because exit() wouldn't stop)
Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wandb
>>> a = wandb.init(project='hi')
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/__main__.py", line 3, in <module>
    cli.cli(prog_name="python -m wandb")
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 102, in wrapper
    return func(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 279, in service
    server.serve()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/server.py", line 118, in serve
    mux.loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 427, in loop
    raise e
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 425, in loop
    self._loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 411, in _loop
    if self._check_orphaned():
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 407, in _check_orphaned
    return not psutil.pid_exists(self._pid)
AttributeError: module 'psutil' has no attribute 'pid_exists'
wandb: Currently logged in as: dyhan316 (cl_mri). Use `wandb login --relogin` to force relogin
Problem at: <stdin> 1 <module>t()...
wandb: ERROR Run initialization has timed out after 90.0 sec.
wandb: ERROR Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1184, in init
    raise e
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1165, in init
    run = wi.init()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 780, in init
    raise error
wandb.errors.CommError: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
>>> exit()
^CException ignored in atexit callback: <function _Manager._atexit_setup.<locals>.<lambda> at 0x2afaa11b9090>
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 155, in <lambda>
    self._atexit_lambda = lambda: self._atexit_teardown()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 164, in _atexit_teardown
    self._teardown(exit_code)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 175, in _teardown
    result = self._service.join()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/service.py", line 258, in join
    ret = self._internal_proc.wait()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1204, in wait
    return self._wait(timeout=timeout)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1938, in _wait
    (pid, sts) = self._try_wait(0)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1896, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt:

and here is the wandb.log
(CL_MRI) 2657% [x2519a02@skl02 logs]$ cat debug.log
2023-09-19 21:40:01,101 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Current SDK version is 0.15.10
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Configure stats pid to 98955
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from /home01/x2519a02/.config/wandb/settings
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from /scratch/x2519a02/wandb/settings
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from environment variables: {}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Applying setup settings: {'_disable_service': False}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Inferring run settings from compute environment: {'program': '<python with no main file>'}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_init.py:_log_setup():524] Logging user logs to /scratch/x2519a02/wandb/run-20230919_214001-mhx2jw7t/logs/debug.log
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_init.py:_log_setup():525] Logging internal logs to /scratch/x2519a02/wandb/run-20230919_214001-mhx2jw7t/logs/debug-internal.log
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():564] calling init triggers
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():571] wandb.init called with sweep_config: {}
config: {}
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():614] starting backend
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():618] setting up manager
2023-09-19 21:40:01,108 INFO    MainThread:98955 [backend.py:_multiprocessing_setup():105] multiprocessing start_methods=fork,spawn,forkserver, using: spawn
2023-09-19 21:40:01,110 INFO    MainThread:98955 [wandb_init.py:init():624] backend started and connected
2023-09-19 21:40:01,115 INFO    MainThread:98955 [wandb_init.py:init():715] updated telemetry
2023-09-19 21:40:01,119 INFO    MainThread:98955 [wandb_init.py:init():748] communicating run to backend with 90.0 second timeout
2023-09-19 21:41:31,303 ERROR   MainThread:98955 [wandb_init.py:init():774] encountered error: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
2023-09-19 21:41:31,447 ERROR   MainThread:98955 [wandb_init.py:init():1183] Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1165, in init
    run = wi.init()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 780, in init
    raise error
wandb.errors.CommError: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-

Hi @dyhan316 thanks for the additional information. It seems that wandb.init() call time outs. Are you connected to the internet, and do you change anything in your network configuration, eg proxy?
Could you please make sure that you're logged in CLI as such: wandb login --relogin? alternatively, you could do wandb.login(key='api-key') in your python script but that's not recommended to be committed in a git repository.

WandB Internal User commented:
thanos-wandb commented:
Hi @dyhan316 thanks for reporting this issue. Was it working fine before with same wandb version? and did you upgrade any other package? may I please ask what's your current psutil version? and could you please send the debug.log and debug-internal.log file from this failed run? These files are under your local folder wandb/run-<date>_<time>-<run-id>/logs in the same directory where you’re running your code.

WandB Internal User commented:
dyhan316 commented:
@thanos-wandb  thank you for the reply!
Yes, it did work and I did not upgrade anything. The  version of psutil is psutil 5.9.5 pypi_0 pypi.
Below is the error code (I did keyboard interrupt because exit() wouldn't stop)
Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wandb
>>> a = wandb.init(project='hi')
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/__main__.py", line 3, in <module>
    cli.cli(prog_name="python -m wandb")
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 102, in wrapper
    return func(*args, **kwargs)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/cli/cli.py", line 279, in service
    server.serve()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/server.py", line 118, in serve
    mux.loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 427, in loop
    raise e
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 425, in loop
    self._loop()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 411, in _loop
    if self._check_orphaned():
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 407, in _check_orphaned
    return not psutil.pid_exists(self._pid)
AttributeError: module 'psutil' has no attribute 'pid_exists'
wandb: Currently logged in as: dyhan316 (cl_mri). Use `wandb login --relogin` to force relogin
Problem at: <stdin> 1 <module>t()...
wandb: ERROR Run initialization has timed out after 90.0 sec.
wandb: ERROR Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1184, in init
    raise e
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1165, in init
    run = wi.init()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 780, in init
    raise error
wandb.errors.CommError: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
>>> exit()
^CException ignored in atexit callback: <function _Manager._atexit_setup.<locals>.<lambda> at 0x2afaa11b9090>
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 155, in <lambda>
    self._atexit_lambda = lambda: self._atexit_teardown()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 164, in _atexit_teardown
    self._teardown(exit_code)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 175, in _teardown
    result = self._service.join()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/service/service.py", line 258, in join
    ret = self._internal_proc.wait()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1204, in wait
    return self._wait(timeout=timeout)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1938, in _wait
    (pid, sts) = self._try_wait(0)
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/subprocess.py", line 1896, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt:

and here is the wandb.log
(CL_MRI) 2657% [x2519a02@skl02 logs]$ cat debug.log
2023-09-19 21:40:01,101 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Current SDK version is 0.15.10
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Configure stats pid to 98955
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from /home01/x2519a02/.config/wandb/settings
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from /scratch/x2519a02/wandb/settings
2023-09-19 21:40:01,102 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Loading settings from environment variables: {}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Applying setup settings: {'_disable_service': False}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_setup.py:_flush():76] Inferring run settings from compute environment: {'program': '<python with no main file>'}
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_init.py:_log_setup():524] Logging user logs to /scratch/x2519a02/wandb/run-20230919_214001-mhx2jw7t/logs/debug.log
2023-09-19 21:40:01,103 INFO    MainThread:98955 [wandb_init.py:_log_setup():525] Logging internal logs to /scratch/x2519a02/wandb/run-20230919_214001-mhx2jw7t/logs/debug-internal.log
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():564] calling init triggers
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():571] wandb.init called with sweep_config: {}
config: {}
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():614] starting backend
2023-09-19 21:40:01,104 INFO    MainThread:98955 [wandb_init.py:init():618] setting up manager
2023-09-19 21:40:01,108 INFO    MainThread:98955 [backend.py:_multiprocessing_setup():105] multiprocessing start_methods=fork,spawn,forkserver, using: spawn
2023-09-19 21:40:01,110 INFO    MainThread:98955 [wandb_init.py:init():624] backend started and connected
2023-09-19 21:40:01,115 INFO    MainThread:98955 [wandb_init.py:init():715] updated telemetry
2023-09-19 21:40:01,119 INFO    MainThread:98955 [wandb_init.py:init():748] communicating run to backend with 90.0 second timeout
2023-09-19 21:41:31,303 ERROR   MainThread:98955 [wandb_init.py:init():774] encountered error: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
2023-09-19 21:41:31,447 ERROR   MainThread:98955 [wandb_init.py:init():1183] Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
Traceback (most recent call last):
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1165, in init
    run = wi.init()
  File "/scratch/x2519a02/.conda/envs/CL_MRI/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 780, in init
    raise error
wandb.errors.CommError: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-

Artsiom Skarakhod commented:
Request #51874 "[SDK] wandb init doesn't work (u..." was closed and merged into this request. Last comment in request #51874:
Hi Danny,
I see that this is a duplicate of the thread you are having with my teammate Thanos. Therefore I will close and merge this thread into the one where Thanos is helping you out.
Warmly,
Artsiom

Hi @dyhan316 We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.

replace pip with conda
uninstall the current version with pip uninstall psutil
install with conda conda install psutil
this is worked for me.


Change GOVERSION to 1.19

Google's download link doesn't include patch version when it's .0. Fixing this to make sure it doesn't bite us in testing. I cut them an issue on the go repo
Signed-off-by: Brady Siegel<EMAIL_ADDRESS>

Closing in favor of updating only on minor version patch


Convert checkbox to radio-buttons

💥 Proposal
Convert all the checkboxes to radio-buttons.
Make sure everything is working fine after changing.

Please assign me this issue as a part of Cross Woc

Please assign me this issue as a part of Cross Woc

Go ahead @Akash20x
You are given 4 days to complete it.


[DO-NOT-MERGE][ACR] Add swagger for 2017-03-01 version

Update getCredentials to listCredentials to support multiple login credentials.
Refine regenerateCredential to support regenerate the specified login credential.
Add Sku to registry properties as a required property.
Rename GetProperties to Get.
Remove 202 from PUT.

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] Validation errors from the Linter extension for VS Code have all been fixed for this spec. (Note: for large, previously checked in specs, there will likely be many errors shown. Please contact our team so we can set a timeframe for fixing these errors if your PR is not going to address them).
[x] The spec follows the patterns described in the Swagger good patterns document unless the service API makes this impossible.

Fixes https://github.com/Azure/azure-rest-api-specs/issues/842

@anudeepsharma All requested changes should have been fixed and we will keep storage account access key as discussed.

@anudeepsharma It would be great if we can have this PR approved (even if not merged) so that we can have a locked version of our APIs. Additional comments are also appreciated. Thanks.

closed and reopned the PR so that Travis CI can run with latest changes from upstream/master. This PR https://github.com/Azure/azure-rest-api-specs/pull/978 fixed a bug in the test.

@anudeepsharma Is there any tooling support to generate examples automatically or are they provided by each service team manually?

@anudeepsharma The swagger has been updated with added examples. Please review, thanks.

@djyou - Please take a look at the model validation failures in the CI https://travis-ci.org/Azure/azure-rest-api-specs/jobs/207137659#L2527

@amarzavery Our RP doesn't return storage account access key back and this validation complains for either null value for missing value. What is the suggested workaround for this scenario?

@amarzavery Issues addressed. Please review and/or approve. Thank you. /cc @SajayAntony

@anudeepsharma Issues addressed or explained. Please review. Thanks.

@anudeepsharma Can we have this reviewed/approved? Thank you.

@anudeepsharma As discussed and agreed with ARM/spec team through emails, we are reverting back to storage account name and accessKey. /cc @SajayAntony @sivagms

We are currently modeling SkuName as a single value enum and as per earlier discussion, we made it "modelAsString": true so that it wouldn't be a breaking change when we add more values in the near future.
        "name": {
          "description": "The SKU name of the the container registry. Required for registry creation.",
          "enum": [
            "Basic"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "SkuName",
            "modelAsString": true
          }
        },

But Autorest treats this as a constant and it caused some other problem. One is that in the response the constant is not deserialized. The other is that, if it is modeled as a constant in the SDK, wouldn't it always be a breaking change when we add more values? @amarzavery @anudeepsharma /cc @SajayAntony

@anudeepsharma Please merge this PR and start SDK generation. Thanks.

No modification for Ruby

No modification for NodeJS

No modification for Python


chore(readme): add lead maintainer information

Add information about how is the lead maintainer of the project/repository.

Codecov Report

Merging #43 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   91.17%   91.17%
=======================================
  Files          71       71
  Lines        1201     1201
=======================================
  Hits         1095     1095
  Misses        106      106

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d70b5b9...d89545d. Read the comment docs.


Add headless selenium UI tests to CI pipeline

Context
Currently, I've flagged selenium tests as @ skipped because they take ages to run on my dev machine. It would be nice if they could be turned on in the CI build process
Current Behavior/Workaround
Run selenium tests manually
Ideal behavior
Run tests using GitHub Actions. I don't think I want to run them with each commit because I already have to wait 2 mins to see if a build is good. Browser tests would add more time to that.
I think it would be nice if the browser tests could run every night and I could get an email if there's a failure.
Things to consider
Might want to find out if there are any 'gotchas' using a headless browser. I am also wondering if running browser tests on an ubuntu container is good enough. Should I find a way to test different browsers and operating systems?
Check out https://www.youtube.com/watch?v=odUAJws0sPU

Verified on https://github.com/jsolly/blogthedata/pull/92
Just neede to add some options to Selenium to make it headles.


Updates for PhotoRealisticVisualEnhancement

https://github.com/SpaceODY/PRVE

Filename format for 64k changed from PRVE64k- to PRVE-64k
New low res variant added starting as copy of regular variant
Conflicts added between low res and regular. One conflict would be enough for the relationship resolver, but this way it will show up under the Relationships tab for both mods.

Fixes #9222.

I'm going to cancel the validation script because I think it ran out of CPU, RAM, and network capacity trying to process these mods. At least the inflation step completed OK.


Consolidate Namespaces (round 3)

Summary of the Pull Request
Consolidated all the namespaces from PowerToys and CommunityToolkit.

PR Checklist

[x] Closes: #30650
[x] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[x] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated

Detailed Description of the Pull Request / Additional comments
<Root
    xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
    xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
    xmlns:tk7controls="using:CommunityToolkit.WinUI.UI.Controls"
    xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
    xmlns:tkconverters="using:CommunityToolkit.WinUI.Converters"

Same as #30666, but now also applies to recently added files, such as for Command Not Found 👍

Is the window for 0.77 already closed?


Scrolling glitches in the bsky.app web client when viewed in Safari on iPadOS

When scrolling through the skyline using safari on iPadOS, the scrolling becomes glitchy after the equivalent of 3-4 screens have been scrolled.
The attached screencast shows the erratic scrolling behaviour, with the skyline jumping back and forth instead of scrolling smoothly.
To reproduce:

open safari on iPad
browse to bsky.app
scroll the skyline until the equivalent of 3-4 screens have been scrolled

Observed on:

iPad Air 2020 running iPadOS 16.2 and iPad Pro 12.9" 2021 running iPadOS 16.6.1
Bsky.app build 1.50.0

https://github.com/bluesky-social/social-app/assets/6984657/00550d5b-1210-4000-8230-5abca97c9608

This is actually an issue that's not specific to the ipad. I suspect it might have to do with image sizing, but I cant be sure

@pfrazee - So far, I haven't been able to reproduce the issue on another platform/browser, whether it's safari on MacOS, Chrome/Firefox/Edge/whatever on Windows, or Firefox or Chromium on Linux.


ghdl: Add version 4.1.0

This PR adds GHDL:

VHDL analyzer, compiler, simulator and (experimental) synthesizer

GHDL is an open source command line tool to analyse and simulate VHDL.
It has 2.3k stars on GitHub and is likely the most widely known/used open source VHDL simulator.

[X] I have read the Contributing Guide.

Seems to be a non-GUI tool so could be submitted into main bucket instead, since meeting the Main criteria.

You are right, should I recreate the package-request issue and PR for the Main bucket?

You are right, should I recreate the package-request issue and PR for the Main bucket?

Yes, please, I don't have rights to transfer items into Main.
I've only added a minor correction for extraction, otherwise looks good.


createIndex() on blockNumber key

Please see #101

Merged in #104 not sure why GitHub hasn't picked this merge up.


Add 'Skip to next (text) occurrence' feature to text editor

Adds ui_text_skip_selection_for_next_occurrence action and related implementation to text editor. This action is bound to Ctrl+Alt+D shorcut.
Used in conjunction with ui_add_selection_for_next_occurrence, it gives the user the ability to select many occurrences of a selection and avoid some of them.
Used without a previous selection, the action jumps to the next occurrence of the current word under the caret.

The behavior when you already have many occurrences selected and skip through an existing selection is a bit strange though. It's expected that these entries are deselected, but it cycles in an unusual order. In this video, I select all occurrences then skip through all occurrences:

Yes, I totally caught that during my manual testing. It's mainly due to the first assumption done :
int caret = get_caret_count() - 1;

which gets the last created caret selection to do later stuff in the skip process.
I faced a lots of these "side effects" and this current (final'ish) behavior/implementation is a a trade off I made for this tiny ('n apparently) simple feature without completely the code base around it :sweat_smile:.
I agree with you ('n thank you for that :love:) the current state is acceptable.
It will be awesome if someone with UX skills could define these kind of feature in the future.
To forecast future implementation needs, It may be useful to have the following text_edit.cpp improvements :

FIFO caret storage
text search method returning position start and position end (will simplify new_caret / and new selection computation)

Regards

@TontonSancho FYI, you marked some review comments as done, but there hasn't been a change to the PR yet. Maybe you're still working on it right now, but in case you thought this was updated already, it seems actually pushing your changes is missing.
Note: Please make modifications by amending the commit, and force pushing the changes, so that it stays as a single commit (see PR workflow).

@TontonSancho FYI, you marked some review comments as done, but there hasn't been a change to the PR yet. Maybe you're still working on it right now, but in case you thought this was updated already, it seems actually pushing your changes is missing.

^_^' It was building/testing on my side ...

Note: Please make modifications by amending the commit, and force pushing the changes, so that it stays as a single commit (see PR workflow).

I finally rebased and squashed the feature into a single commit.

Thanks! And congrats for your first merged Godot contribution :tada:


Action may not be able to determine job_id/html_url if run has more than 30 jobs

Summary
The jobs API endpoint by default only returns 30 jobs, i.e. currently this action will not be able to determine all job_id/html_url if there are more than 30 jobs in a run.
Details
The API (see https://docs.github.com/en/rest/reference/actions#list-jobs-for-a-workflow-run) has a URL parameter per_page so that one can specify how many entries should be returned. There is a hard limit of 100.
Suggestions

quick fix/hack: provide an action input parameter to be able to increase the number of returned jobs in one request
** this will at least help people with runs that contain 31 to 100 jobs
add some kind of pagination if a run has more jobs than are returned by the API
** use page URL parameter of the API depending on the first API response

{
  "total_count": 46,
  "jobs": [ ... ]
}

So in this example, if per_page equals the default value of 30 and the desired job name is not found in this response, perform a second request with ?page=2 and check the second response.

Sorry for the late responding. Thanks for your report. I'll look into it.

I have added the followings.

an option parameter, per_page in PR #8
some tests including test for workflow that has more than 31 jobs in #6

I'm not having any trouble with Docker at this moment, so not in a hurry to upgrade using Octokit, but I'll make sure I do.

I'm closing this issue because it is now possible to get the job_id even if there are more than 30 jobs.
Further improvements will be taken over in #10.


Inna : Inside JS ,4 Weeks

my fork of module repository

Inside JS

Learning Objectives

Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)

There is a lot to learn in this repository. If you can't master all the material
at once, that's expected! Anything you don't master now will always be waiting
for you to review when you need it. These 4 emoji's will help you prioritize
your study time and to measure your progress:

🥚: Understanding this material is required, it covers the base skills you'll
need to move on. You do not need to finish all of them but should feel
comfortable that you could with enough time.
🐣: You have started all of these exercises and feel you could complete them
all if you just had more time. It may not be easy for you but with effort you
can make it through.
🐥: You have studied the examples and started some exercises if you had time.
You should have a big-picture understanding of these concepts/skills, but may
not be confident completing the exercises.
🐔: These concepts or skills are not necessary but are related to this module.
If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push
yourself without getting distracted from the module's main objectives.

0. Asserting

Skills:

[ ] 🥚 Predicting Execution: You can use the browser's debugger to step
through your code. Before each step you can make a prediction about what
will happen, after each step you can check your prediction.
[ ] 🥚 Assertion Testing: You can write assertion tests to predict what
values will be in your program at a specific step of execution.

Language Features

[ ] 🥚 Comments: You can write clear, helpful comments and can explain
different ways comments can be used in a program.
[ ] 🥚 Strings: You can write and read string values in a program.
[ ] 🥚 let vs. const: You can explain the differences between let
and const including: uninitialized declarations and reassignment.
You can determine when a variable can be assigned with const in a
program.
[ ] 🥚 Strict Comparison: You can explain how the === and !==
operators compare strings, and can predict the result of any string
comparison.
[ ] 🥚 console.log: You can use console.log to create program traces
in the console, and to print other helpful info for developers.
[ ] 🥚 console.assert: You can use the console.assert for assertion
testing, and can write a helpful message assertion message.

1. Primitives and Operators

Skills:

[ ] 🥚 Predicting Truthiness: You can predict the truthiness of any
primitive value.
[ ] 🐣 Tracing Operators: You can use an operators trace table to
evaluate expressions with more than one operator, and you can check your
work with the [trace] button.

Language Features

[ ] 🥚 Primitive Types: You can explain the difference between the 5
main primitive types (string, number, boolean, null,
undefined) and what they are used for in a program.
[ ] 🥚 typeof: You can predict the typeof operator's output for
values from any of the 5 main primitive types.
[ ] 🥚 Explicit Coercion: You can predict & check the outputs when using
Boolean(), String() and Number() to convert between primitive
types.
[ ] 🥚 Truthiness Operators: You can explain how truthiness is used
when evaluating &&, ||, ! and ? :.
[ ] 🐣 Short-Circuiting: You can write an example that demonstrates how
short-circuiting works with && and ||.
Implicit Coercion:

[ ] 🐣 You can explain what implicit coercion is and how it can cause
problems in your programs.
[ ] 🐣 You can explain the rules for implicit coercion in common operators
such as +, ! and >.

[ ] 🐣 Comparisons: You can predict and check the result of any
primitive comparison.
[ ] 🐣 Template Literals: You can read and trace multi-line template
literal strings.
[ ] 🐥 Statements vs. Expressions: You can identify if a piece of code
is a statement or an expression.
[ ] 🐔 Arithmetic: You can use JavaScript to do math, and can explain or
debug your expressions when they evaluate to something unexpected.

2. Control Flow

Skills:

[ ] 🥚 Imperative Programming: You can define the imperative
programming paradigm and can explain how you know the programs in this
chapter are imperative.
Writing Interactive Programs: For programs that take a string from
users:

[ ] 🥚 Blanks: You can complete a program by filling in the blanks.
[ ] 🐣 Bugs: You can fix bugs in an otherwise complete program.
[ ] 🐣 Goals: You can write the missing portion of a program.
[ ] 🐔 Empty Page: You can develop a program with specific behavior
starting from an empty page.

[ ] 🐥 User Numbers: You can complete, debug and write programs that
cast user input from string to number.
🐥 Stateful Programs: You can step through, debug and complete
programs with an HTML/CSS interface that store user data in a variable
between interactions.
Refactoring Control Flow:

[ ] 🐥 Conditionals: You can refactor between truthiness operators and
if/else statements.
[ ] 🐥 Loops: You can either refactor between all loop types, or
explain when it is not possible (or a good idea).

Language Features: You are comfortable reading and tracing programs that
use ...

[ ] 🥚 Block Scope: You can show how block scope works using code
snippets and your browser's debugger.
[ ] 🥚 Conditionals: You can predict and trace a program's path through
conditional statements.
[ ] 🥚 While Loops: You can predict and trace simple programs that use
while loops.
[ ] 🥚 for-of Strings: You can predict and trace simple programs that
iterate through the characters of a string using for-of.
[ ] 🥚 For Loops: You can explain how a for loops works by refactoring
simple for loops into while loops.
[ ] 🐣 Break: You can predict and trace simple programs that use
break.
[ ] 🐣 Continue: You can predict and trace simple programs that use
continue.

3. Functions

Skills:

[ ] 🥚 Tracing: You can use the debugger to predict and check the
execution of small programs that use functions. This includes:
[ ] 🥚 Test Cases: You can explain a simple function's behavior using
inputs & outputs.
[ ] 🐣 Documenting Functions: You can write a JS Doc comment to describe
a function's behavior, inputs and outputs.

Language Features:

[ ] 🥚 ES6 Arrow Functions:

Defining a Function: You can show where a function is defined in a
program.
Parameters: You can find a function's parameters in it's definition
Return Statement: You can find the return statements in a function's
definition.
Calling a Function: You can show where a function called in a
program
Arguments: You can show the arguments passed to a function call.
Return Value: You can show how a function's return value is used
after the function call.

[ ] 🥚 Default Parameters: You can explain how default parameters work,
and how they help a developer read/understand a function definition.
[ ] 🐣 The Callstack: You can explain and inspect the callstack using
the browser's debugger.
[ ] 🐥 Variables in Functions: You can explain three different ways a
variable in a function can be declared/assigned, and can show this in
the debugger:

Parameters: A parameter is assigned it's value when a function is
called with arguments.
Local Variables: A variable declared in the function's curly braces.
Parent Scope Variables: A variable that was declared outside of the
function but used inside the function (avoid this for now.)

5. Unit Testing

Skills:

[ ] 🥚 Testing Environments: You understand that the conventional
describe/it/expect.toEqual functions are defined by a testing
library and made available as global variables in a testing
environment. They are not part of JavaScript!
[ ] 🥚 File Sub-Extensions: You can identify how a file is used by it
sub-extension: file.__.js. Sub-extensions are a convention for
developers and development tools. They do not change how JavaScript
inside the file works.
[ ] 🥚 Reading Tests: You can read unit tests to understand what a
function is supposed to do.
[ ] 🥚 Stepping Through Tests: You can step through unit tests in the
debugger, stepping over the global testing functions and into the
function you are testing.
[ ] 🐣 Writing Tests: Given a working function, you can write passing
unit tests to describe it's behavior.
[ ] 🐣 Debugging Functions: Given working tests and a function with
small mistakes, you can use the tests as a guide while debugging the
function.
[ ] 🐥 Passing Tests: Given working unit tests and an empty function,
you can write code to pass the tests.

Language Features:

nothing new here!

6. ES Modules

Skills:

[ ] 🥚 Spec Files: You can work with functions and unit tests separated
into two files.
[ ] 🥚 Visualizing Dependencies: You can use the
VSCode Dependency Cruiser extension
and the ?deps lens to visualize the dependencies in a folder.
[ ] 🐣 Refactoring Tests: You can refactor a function and unit tests
from one file to two files: one with the function, one with the unit
tests.

Language Features:

[ ] 🥚 Module Files: Are always in strict mode by default, no more
'use strict'!
[ ] 🥚 Named Exports: You can export a variable and it's value using
export const _ = () => {};
[ ] 🥚 Named Imports: You can import a variable and it's value from
another file using import { _ } from './path/to/file.js';
[ ] 🐥 Module Life-Cycle: You understand that ES Modules are static,
and are evaluated at creation phase.

6. Using Functions

Skills:

[ ] 🥚 Procedural Programming: You can define the procedural
programming paradigm and can explain how you know the programs in this
chapter are procedural.
[ ] 🥚 Using Functions: You can use a pre-written functions in a
program.
[ ] 🐣 Writing Functions: You can write functions that are used in a
program.
[ ] 🐥 Refactoring Functions: You can refactor a function out of a
program and test the function separately.
[ ] 🐔 Reverse-Engineering: You can reverse-engineer an example program
and refactor parts of your program into separate functions.

Language Features:

Nothing new here!

7. Arrays

Skills:

[ ] 🥚 Reference vs. Value: You can explain how arrays are stored in
memory and can demonstrate using examples run in JS Tutor.
[ ] 🥚 Deep vs. Shallow Comparison: You can explain use the concept of
reference vs. value to explain how a deep comparison is different than a
shallow comparison.
Side-Effects: You can ...

[ ] 🥚 Explain what side-effects are with an example.
[ ] 🥚 Avoid side effects when writing your own functions.
[ ] 🐣 Write tests to check if a function has side-effects.
[ ] 🐣 Fix side-effects in buggy functions.

Integrating Arrays: You can work with programs that use arrays to store
user data:

[ ] 🥚 Call: You can call pre-written functions in a program:
[ ] 🐣 Write: You can write functions that are used in a pre-written
program.
[ ] 🐣 Refactor: You can refactor logic from a program into a separate
function. You can avoid side-effects and test your function.
[ ] 🐔 Reverse-Engineer: You can reverse-engineer a program,
refactoring logic to a separate function if necessary.

🐥 Stateful Programs: You can step through, debug and complete
programs with an HTML/CSS interface that store user data in an array between
interactions.

Language Features: You are comfortable reading and tracing programs that
use ...

[ ] 🥚 Array Literals: You can create a new array in your program with
initial values using the array literal syntax:
const arr = ['items'];
🥚 Adding and Removing Items: You can use these methods to add and
remove items in an array:

[ ] arr.push(): Adds a new item to the end of an array.
[ ] arr.pop(): Removes the last item in an array.
[ ] arr.shift(): Adds a new item to the front of an array.
[ ] arr.unshift(): Removes the first item in an array.

🥚 Reading Items: You can read items in an array using:

[ ] arr[i]: Access a specific item in an array using square brackets a
positive index.
[ ] arr.at(i): Access a specific item in an array using .at() and a
positive or negative index.

[ ] 🥚 Updating Items: You can update any item in an array using it's
index, square brackets and assignments: arr[4] = 'hello'.
🥚 Iterating Over Arrays:

[ ] for (const item of arr): You use for-of loops to iterate
forwards through an array.
[ ] for (let i = ...): You can use for loops to iterate forwards and
backwards through an array.

[ ] 🥚 Array.isArray(): You can use Array.isArray() to check if
something is an array: Array.isArray(something)
[ ] 🥚 Spread Syntax: you can use spread syntax to create a shallow
copy of an array: const shallowCopy = [...arr];

8. Functional Array Methods

Skills:

[ ] 🥚 Declarative Programming: You can define the declarative
programming paradigm and can explain how you know that code using
functional array methods is declarative.
🥚 Array Strategies: You can explain these array strategies using a
diagram or drawing:

[ ] Mapping: Modifying each item in an array and putting the results
in a new array.
[ ] Filtering: Creating a new array with only the items from the old
array that match some criteria.
[ ] Every Item: Checking if every item in an array matches some
criteria.
[ ] Some Items: Checking if at least one item in an array matches some
criteria.
[ ] Finding: Finding the first item in an array that matches some
criteria.
[ ] Reducing: Combining all the items in an array to create a single
result.

🐣 Using Callbacks: You can explain what a callback is, and can ...

[ ] Pass a callback into a higher-order function that consumes it.
[ ] Write a callback for a higher-order function to consume.
[ ] Consume callbacks in a higher-order function that you write.
[ ] Decide when to declare callbacks inline, and when to declare them
separately.

[ ] 🐣 Debugging Functional Array Methods: You can step through code
that uses functional array methods in your debugger, and can use the
scopes panel to explain what is happening behind the scenes.

Language Features:

Array Methods: You can read and trace code that uses these array
methods, you can also use them to solve simple coding challenges:

[ ] 🥚 [].every
[ ] 🥚 [].some
[ ] 🐣 [].map
[ ] 🐣 [].filter
[ ] 🐣 [].find
[ ] 🐥 [].reduce

[ ] 🐣 Higher-Order Functions: You can explain what a higher order
function is using a simple example.
[ ] 🐥 Implicit Returns: You understand when a function can be written
with an implicit return and can decide if it makes your code more or
less readable.

9. Multiple Interactions

Skills:

[ ] 🥚 Avoiding Side Effects: You can read, debug and write functions
that use objects as arguments, without creating side-effects.
🐣 Stateful Programs: You can step through, debug and complete
programs with an HTML/CSS interface that store user data in an object
between interactions.

Language Features:

[ ] 🥚 Object Literals: You can declare a new object with initial
key/value pairs using object literal syntax:
const obj = { a: 1, b: 2 };.
[ ] 🐣 Dots vs. Brackets: You can explain the difference between dot
and bracket access in an object and can decide which one is best in
your code.
[ ] 🐣 Reference vs. Values: You can show that objects are stored by
reference with an example that modifies one object from two variables.

TOP

Week 1
I Need Help With:

I have a question about slice method  can you explain me why in this exercise we  cut  H not E ,  we start to count from 0 ?

What went well?

Primitives and Operators

What went less well?
Lessons Learned

Keep on practicing.

Sunday Prep Work
In progress

@inna9Z yes we start count from 0
and for the slice cuz if we translate in English (return to me the character from 1 to 5 so normal he will cut the 0 (H)  )

@johnedelbi  yes , but its means that H.0 E1. L3. L4. O5. slice(1, 5) he will cut H.O not E.1 ? I didn't get it

yes i try to read it to you so maybe it can be more clear in this example you ask the code to cut from 1 to 5 not included which means he will keep from 1 to 4
for example:
const john = 'johnedelbi';
console.log(str.slice(0, 4));
will give you  john
you can also see this video it can be better explained :
https://youtu.be/PC7G-isKUo4?t=273

@johnedelbi  thank you , now is more clear .

Hey @inna9Z, when you work with methods, always read the purpose of the methods and check how affects the original value.
Tip: Always check the result and str, after the process. You can easily understand what is going on here
_https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice_

@kod-man  thank you ) I got it *)

Week 2
I Need Help With:

I need some explanation about DOM exercises

What went well?

Control-flow
Function

What went less well?
Lessons Learned

Function , loops conditional , Math.random() , etc ...

Sunday Prep Work
Not yet

Week 3
I Need Help With:

Nothing

What went well?

Functional-array-methods
Multiple-interactions

What went less well?
Lessons Learned

Array Methods
Avoiding Side Effects

Sunday Prep Work
In progress

Week
I Need Help With:

Nothing

What went well?

Testing case
Function

What went less well?
Lessons Learned

First we need to write test case than function
Separation concept

Sunday Prep Work
In progress


The version 10.1.8 has issue with onLoad function

The version 10.1.8 is unable to make the preview of cropped image. The example code doesn't show how to do download. Also the example here https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-0h4db?file=/src/App.js:2697-3076 doesn't work properly with the version 10.1.8
I moved to version 9.0.4 with works fine as like the example.

When you say doesn't work what do you mean? I just tried https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-y831o?file=/src/App.tsx in Chrome 116 and it downloaded fine

The example in the sandbox works fine and I'm following this.

The version I installed in my react app was: 10.1.8
This version only show the uploaded image if I use img tag inside of ReactCorp but if I use only ReactCorp like the sandbox, the image doesn't come up
The Github repo has example with img tag, but sandbox example is without img tag
with the version: 10.1.8 if I crop image, the canvas is None, so nothing happened
To make sure, I did copy & paste the sandbox example in my react app and still didn't work
I removed the version 10.1.8 and installed again 9.0.4 and the sandbox code which I copied works fine & it's now running propely

This sounds like an issue with how you set things up but hard to say without seeing code. In v10 <img> goes inside the component and onLoad is not a prop on the library but standard onLoad on the image like in the sandbox:

Anyway glad you got it working in v9

Thanks for letting me know. Is it possible to update the repo readme file?

Developer need to use onLoad in img tag, isn't mentioned in the readme file.
So I found others like me having the same issue. So they are trying to implement based on readme file and the sandbox, but example are not matching.
So I asked to add additional example on using of img tag with different callback function like the screenshot you attached above.
hope you got it now

onLoad isn't mentioned anywhere in the readme docs except here:

there is an example of using onLoad on the image in the sandbox as well (on the image which is the correct way). So not sure what you mean.
There is a FAQ about an image preview which links to the codesandbox here:

The codesandbox linked to in the readme (https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-y831o) is using 10.1.8

I was looking this doc: https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-0h4db?file=/src/App.js:2697-3076

Ok I think I know what you mean - the v9 readme here https://github.com/DominicTobias/react-image-crop/tree/9.1.1 the hooks sandbox is linking to v10 instead of https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-0h4db?file=/src/App.js:2697-3076


Fix problems indentified by clippy

Changes
The following PR introduces the following changes:

Fixes problems identified by clippy.
Add clippy as part of the travis build step

Applicable Issues
N/A

Codecov Report

Merging #116 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   91.78%   91.78%
=======================================
  Files           4        4
  Lines         207      207
=======================================
  Hits          190      190
  Misses         17       17

Impacted Files
Coverage Δ

src/main.rs
52.94% <ø> (ø)
:arrow_up:

src/generators/names.rs
96% <100%> (ø)
:arrow_up:

src/utils.rs
92.3% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b385c0...f5901b8. Read the comment docs.


v1.3.240 update

Normal header stuff + same GN updates from Vulkan-Loader

CI Vulkan-Tools build queued with queue ID 10606.

CI Vulkan-Tools build # 893 running.

CI Vulkan-Tools build # 893 passed.


interactive mode should accept EOF

Describe the bug
The interactive mode (-i) does not understand EOF. In interactive CLIs, ctrl-d is usually used to exit them, which emits an EOF into the stream. This just causes mistral.rs to go haywire. Similarly, a pipe will emit an EOF when it is done, which causes the same breakdown. For example:
$ echo "Some prompt here" | cargo run --release --features "cuda cudnn" -- -i --isq Q4K plain -m microsoft/Phi-3-mini-128k-instruct -a phi3

Once it receives the EOF, it just starts sending blank messages to the model every time the model finishes answering the previous blank message.

@coder543, thank you for reporting this. I have fixed it in #267, can you please confirm that the fix works?

Yep, I can confirm it is fixed! Thanks!

Great!


Uncaught ServiceUnavailableError in exception_mapping_utils.py line 507

Aider version: 0.62.1
Python version: 3.9.6
Platform: macOS-15.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 24.1.0 (64bit)
Git version: git version 2.31.0
An uncaught exception occurred:
Traceback (most recent call last):
  File "handler.py", line 565, in completion
    response = client.post(
  File "http_handler.py", line 386, in post
    raise e
  File "http_handler.py", line 372, in post
    response.raise_for_status()
  File "_models.py", line 763, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '503 Service Unavailable' for url 'https://api.anthropic.com/v1/messages'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1755, in completion
    response = anthropic_chat_completions.completion(
  File "handler.py", line 580, in completion
    raise AnthropicError(
litellm.llms.anthropic.common_utils.AnthropicError: upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 827, in main
    coder.run()
  File "base_coder.py", line 738, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 775, in run_one
    message = self.preproc_user_input(user_message)
  File "base_coder.py", line 764, in preproc_user_input
    return self.commands.run(inp)
  File "commands.py", line 236, in run
    return self.do_run(command, rest_inp)
  File "commands.py", line 208, in do_run
    return cmd_method(args)
  File "commands.py", line 1021, in cmd_code
    return self._generic_chat_command(args, self.coder.main_model.edit_format)
  File "commands.py", line 1042, in _generic_chat_command
    coder.run(user_msg)
  File "base_coder.py", line 732, in run
    self.run_one(with_message, preproc)
  File "base_coder.py", line 781, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1278, in send_message
    saved_message = self.auto_commit(edited)
  File "base_coder.py", line 1979, in auto_commit
    res = self.repo.commit(fnames=edited, context=context, aider_edits=True)
  File "repo.py", line 110, in commit
    commit_message = self.get_commit_message(diffs, context)
  File "repo.py", line 195, in get_commit_message
    commit_message = simple_send_with_retries(
  File "sendchat.py", line 118, in simple_send_with_retries
    _hash, response = send_completion(**kwargs)
  File "sendchat.py", line 98, in send_completion
    res = litellm.completion(**kwargs)
  File "utils.py", line 1013, in wrapper
    raise e
  File "utils.py", line 903, in wrapper
    result = original_function(*args, **kwargs)
  File "main.py", line 2999, in completion
    raise exception_type(
  File "exception_mapping_utils.py", line 2116, in exception_type
    raise e
  File "exception_mapping_utils.py", line 507, in exception_type
    raise litellm.ServiceUnavailableError(
litellm.exceptions.ServiceUnavailableError: litellm.ServiceUnavailableError: AnthropicException - upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused. Handle with `litellm.ServiceUnavailableError`.

Thanks for trying aider and filing this issue. Your LLM provider is down or unavailable, but this should be handled more gracefully by aider.
A fix is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you. I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.


Add the Operator page in spanish

Signed-off-by: Christian Alexis Castro Guerrero<EMAIL_ADDRESS>Description
This PR fixes #4353
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

When the https://github.com/meshery/meshery/pull/4383 gets merged, the links in spanish would be avoided to appear in the home english index 👍🏼

Yay, @chal-gro! 🎈


[explorer] feat: added copy button beside address

What was the issue?

we like to add a copy button beside the address in the listing table.

What's the fix?

added copyButton component.
added addressField component, which contains the address and a copy button.
the copy button will be in  pages /accounts, /transactions, '/namespaces, /mosaics`

Example:

@Jaguar0625 Jenkins fail, caused by CSS stylelint.
stylelint (css) used space instead of tab.
I will create a separate PR for the lint problem.


Numerous history state changes during very first run

I'm trying to handle history state change using this way.
const redux = createRedux(stores);
BrowserHistory.listen(location => redux.dispatch(routeLocationDidUpdate(location)));

Next is a very first visit to the page and as you can see it changes the state 5 times.
Last one after my custom action (still investigation did my action affected such behaviour).
First POP is ok.
What's happening during next 3-4 times?

You can see from your logs that this is stuff that redux-router is doing.


CLOUDSTACK-9114: restartnetwork with cleanup should restart the RVRs one by one

Testing results:
(1) before change:
job started at 2015-12-09 09:26:07,570, ended at 2015-12-09 09:28:25,524
38 packets lost (333 packets transmitted, 295 received, 11% packet loss, time 332284ms)
(2) after change:
job started at 2015-12-09 09:32:00,543, ended at 2015-12-09 09:34:26,535
1 packet lost (623 packets transmitted, 622 received, 0% packet loss, time 622598ms)

Sounds like a great improvement. Will test it!
Pinging @wilderrodrigues to have a look.

Hi @ustcweizhou,
I made a couple of comments in your code that would need addressing. Could you have a look at that?
In addition, would you mind improving the smoke/test_vpc_redundant.py in order to add a check for the improvements you added?
Did you test this against RVR networks as well?
Cheers,
Wilder

@wilderrodrigues thanks for review!
This PR apply on redundant networks, not redundant VR for VPC.
I tested it several times. you may get a result from my first comment of this PR.

Hi @ustcweizhou,
The content is a bit misleading because you used the VpcVirtualNetworkApplianceService instead of VirtualNetworkApplianceService.
Concerning the tests, I know you did that. But if tomorrow (or within a week) we have to improve it, we will have to do the tests, manually, again. So improving the existing integration test will help everybody.
Could you also apply the changes I mentioned against the code, please?
Cheers,
Wilder

@wilderrodrigues
I used VirtualNetworkApplianceService at first, and met an issue like:
"spring autowiring with unique beans: Spring expected single matching bean but found 2"
this is because some functions are implemented in both of VirtualNetworkApplianceManagerImpl and VpcVirtualNetworkApplianceManagerImpl .
I changed it back to VirtualNetworkApplianceService  just now, the compilation succeed, the issue  does not exist any more, weird.
Anyway, I think it is not important. that is the same to definition in api/src/org/apache/cloudstack/api/BaseCmd.java:
public VpcVirtualNetworkApplianceService _routerService;

I know this issue. You can get it working with @Autowire and @Quialifier annotations. If BaseCmd does the same, then it should be fine.
Cheers,
Wilder

FYI, run integration tests:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=true \
component/test_vpc_redundant.py \
component/test_routers_iptables_default_policy.py \
component/test_routers_network_ops.py \
component/test_vpc_router_nics.py \
smoke/test_loadbalance.py \
smoke/test_internal_lb.py \
smoke/test_ssvm.py \
smoke/test_network.py

Result:
Create a redundant VPC with two networks with two VMs in each network ... === TestName: test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | Status : SUCCESS ===
ok
Create a redundant VPC with two networks with two VMs in each network and check default routes ... === TestName: test_02_redundant_VPC_default_routes | Status : SUCCESS ===
ok
Create a redundant VPC with two networks with two VMs in each network ... === TestName: test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers | Status : SUCCESS ===
ok
Test iptables default INPUT/FORWARD policy on RouterVM ... === TestName: test_02_routervm_iptables_policies | Status : SUCCESS ===
ok
Test iptables default INPUT/FORWARD policies on VPC router ... === TestName: test_01_single_VPC_iptables_policies | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_isolate_network_FW_PF_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_isolate_network_FW_PF_default_routes_egress_false | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_03_RVR_Network_check_router_state | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test nics after destroy ... === TestName: test_01_VPC_nics_after_destroy | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test default routes ... === TestName: test_02_VPC_default_routes | Status : SUCCESS ===
ok
Check the password file in the Router VM ... === TestName: test_isolate_network_password_server | Status : SUCCESS ===
ok
Check that the /etc/dhcphosts.txt doesn't contain duplicate IPs ... === TestName: test_router_dhcphosts | Status : SUCCESS ===
ok
Test to create Load balancing rule with source NAT ... === TestName: test_01_create_lb_rule_src_nat | Status : SUCCESS ===
ok
Test to create Load balancing rule with non source NAT ... === TestName: test_02_create_lb_rule_non_nat | Status : SUCCESS ===
ok
Test for assign & removing load balancing rule ... === TestName: test_assign_and_removal_lb | Status : SUCCESS ===
ok
Test to verify access to loadbalancer haproxy admin stats page ... === TestName: test02_internallb_haproxy_stats_on_all_interfaces | Status : SUCCESS ===
ok
Test create, assign, remove of an Internal LB with roundrobin http traffic to 3 vm's ... === TestName: test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 | Status : SUCCESS ===
ok
Test SSVM Internals ... === TestName: test_03_ssvm_internals | Status : SUCCESS ===
ok
Test CPVM Internals ... === TestName: test_04_cpvm_internals | Status : SUCCESS ===
ok
Test stop SSVM ... === TestName: test_05_stop_ssvm | Status : SUCCESS ===
ok
Test stop CPVM ... === TestName: test_06_stop_cpvm | Status : SUCCESS ===
ok
Test reboot SSVM ... === TestName: test_07_reboot_ssvm | Status : SUCCESS ===
ok
Test reboot CPVM ... === TestName: test_08_reboot_cpvm | Status : SUCCESS ===
ok
Test destroy SSVM ... === TestName: test_09_destroy_ssvm | Status : SUCCESS ===
ok
Test destroy CPVM ... === TestName: test_10_destroy_cpvm | Status : SUCCESS ===
ok
Test Remote Access VPN in VPC ... === TestName: test_vpc_remote_access_vpn | Status : SUCCESS ===
ok
Test VPN in VPC ... === TestName: test_vpc_site2site_vpn | Status : SUCCESS ===
ok
test_01_vpc_privategw_acl (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_01_vpc_privategw_acl | Status : SUCCESS ===
ok
test_02_vpc_privategw_static_routes (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_02_vpc_privategw_static_routes | Status : SUCCESS ===
ok
test_03_rvpc_privategw_static_routes (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_03_rvpc_privategw_static_routes | Status : SUCCESS ===
ok
Test for port forwarding on source NAT ... === TestName: test_01_port_fwd_on_src_nat | Status : SUCCESS ===
ok
Test for port forwarding on non source NAT ... === TestName: test_02_port_fwd_on_non_src_nat | Status : SUCCESS ===
ok
Test for reboot router ... === TestName: test_reboot_router | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_1_static_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_2_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_3_Load_Balancer_Rule | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 38 tests in 20142.499s

OK

And:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=false \
smoke/test_routers.py \
smoke/test_network_acl.py \
smoke/test_privategw_acl.py \
smoke/test_reset_vm_on_reboot.py \
smoke/test_vm_life_cycle.py \
smoke/test_vpc_vpn.py \
smoke/test_service_offerings.py \
component/test_vpc_offerings.py \
component/test_vpc_routers.py

Result:
Test router internal advanced zone ... === TestName: test_02_router_internal_adv | Status : SUCCESS ===
ok
Test restart network ... === TestName: test_03_restart_network_cleanup | Status : SUCCESS ===
ok
Test router basic setup ... === TestName: test_05_router_basic | Status : SUCCESS ===
ok
Test router advanced setup ... === TestName: test_06_router_advanced | Status : SUCCESS ===
ok
Test stop router ... === TestName: test_07_stop_router | Status : SUCCESS ===
ok
Test start router ... === TestName: test_08_start_router | Status : SUCCESS ===
ok
Test reboot router ... === TestName: test_09_reboot_router | Status : SUCCESS ===
ok
Test reset virtual machine on reboot ... === TestName: test_01_reset_vm_on_reboot | Status : SUCCESS ===
ok
Test advanced zone virtual router ... === TestName: test_advZoneVirtualRouter | Status : SUCCESS ===
ok
Test Deploy Virtual Machine ... === TestName: test_deploy_vm | Status : SUCCESS ===
ok
Test Multiple Deploy Virtual Machine ... === TestName: test_deploy_vm_multiple | Status : SUCCESS ===
ok
Test Stop Virtual Machine ... === TestName: test_01_stop_vm | Status : SUCCESS ===
ok
Test Start Virtual Machine ... === TestName: test_02_start_vm | Status : SUCCESS ===
ok
Test Reboot Virtual Machine ... === TestName: test_03_reboot_vm | Status : SUCCESS ===
ok
Test destroy Virtual Machine ... === TestName: test_06_destroy_vm | Status : SUCCESS ===
ok
Test recover Virtual Machine ... === TestName: test_07_restore_vm | Status : SUCCESS ===
ok
Test migrate VM ... === TestName: test_08_migrate_vm | Status : SUCCESS ===
ok
Test destroy(expunge) Virtual Machine ... === TestName: test_09_expunge_vm | Status : SUCCESS ===
ok
Test to create service offering ... === TestName: test_01_create_service_offering | Status : SUCCESS ===
ok
Test to update existing service offering ... === TestName: test_02_edit_service_offering | Status : SUCCESS ===
ok
Test to delete service offering ... === TestName: test_03_delete_service_offering | Status : SUCCESS ===
ok
Test for delete account ... === TestName: test_delete_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for admin account ... === TestName: test_public_ip_admin_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for user account ... === TestName: test_public_ip_user_account | Status : SUCCESS ===
ok
Test for release public IP address ... === TestName: test_releaseIP | Status : SUCCESS ===
ok
Test create VPC offering ... === TestName: test_01_create_vpc_offering | Status : SUCCESS ===
ok
Test VPC offering without load balancing service ... === TestName: test_03_vpc_off_without_lb | Status : SUCCESS ===
ok
Test VPC offering without static NAT service ... === TestName: test_04_vpc_off_without_static_nat | Status : SUCCESS ===
ok
Test VPC offering without port forwarding service ... === TestName: test_05_vpc_off_without_pf | Status : SUCCESS ===
ok
Test VPC offering with invalid services ... === TestName: test_06_vpc_off_invalid_services | Status : SUCCESS ===
ok
Test update VPC offering ... === TestName: test_07_update_vpc_off | Status : SUCCESS ===
ok
Test list VPC offering ... === TestName: test_08_list_vpc_off | Status : SUCCESS ===
ok
test_09_create_redundant_vpc_offering (integration.component.test_vpc_offerings.TestVPCOffering) ... === TestName: test_09_create_redundant_vpc_offering | Status : SUCCESS ===
ok
Test start/stop of router after addition of one guest network ... === TestName: test_01_start_stop_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test reboot of router after addition of one guest network ... === TestName: test_02_reboot_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to change service offering of router after addition of one guest network ... === TestName: test_04_chg_srv_off_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test destroy of router after addition of one guest network ... === TestName: test_05_destroy_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to stop and start router after creation of VPC ... === TestName: test_01_stop_start_router_after_creating_vpc | Status : SUCCESS ===
ok
Test to reboot the router after creating a VPC ... === TestName: test_02_reboot_router_after_creating_vpc | Status : SUCCESS ===
ok
Tests to change service offering of the Router after ... === TestName: test_04_change_service_offerring_vpc | Status : SUCCESS ===
ok
Test to destroy the router after creating a VPC ... === TestName: test_05_destroy_router_after_creating_vpc | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 41 tests in 8575.467s

OK

Sounds like a great feature @ustcweizhou @wilderrodrigues and I think we need to do this for both RVR and RVPC. When you guys are ready I can run the tests again. Thanks!

@remibergsma @DaanHoogland
This PR Looks Okay To Me, no good, but okay. Please merge it and I will improve the code and add Marvin tests to cover it because @ustcweizhou said he is too busy to do that.
I'm also busy, we are all busy. It should not be used as excuse to avoid writing tests. Even our managers know that.
I went into berserker mode and told him that next PR without tests will get a -1 from me, and I will hold to that promise.
Cheers,
Wilder

@wilderrodrigues thanks!
I am not in a hurry to merge it into 4.6 or master. Let's merge it after fully testing (scripts and functional test) and 2+ LGTM.
I did not write integration test script and have marvin tests for long time, the last I remember is the integration test for advanced zone with security group (e6863c612bfeda957c4e2acf14647c029a48d2c8). maybe @DaanHoogland can help us.

I will look at improving the integration tests but can you do the improvements to the code as @wilderrodrigues suggested (or comment on them)?

@DaanHoogland @wilderrodrigues
assume there are two routers now routerA (master) and routerB (backup).
if  we destroy routerA (master) at first, then routerB will become master without downtime. and another routerC will create as BACKUP. However, we need to destroy routerB as well, then routerC will become MASTER and another new routerD will become BACKUP.
in this processing, we also need to wait some seconds for keepalived/conntrackd on routerC to be up , because we should make sure that the services on BACKUP are running before destroying MASTER.
hence, I think the solution in PR is good (there is only one BACKUP->MASTER state change).
for the sleep or not, we need to test it. I added it because the test failedout in my testing (without sleep).

Ping @remibergsma @borisroman
This one needs an integration test to cover the changes. Worth writing one for. Who got time left? :)
Cheers,
Wilder

@ustcweizhou thanks, can you rebase against latest master and share state of your PR
this looks like an interesting change we should have
tag:needlove

closed as I have more commits for restart network, restartvpc, update network, upgrade network (from old version 4.5 or before).
the downtime of network is reduced to 1-5 seconds.

@ustcweizhou If you find some time to submit PRs for restartVPC+cleanup which does the router rebuild in sequence that would be awesome. Happy to help testing! Thanks!

@ustcweizhou ping, update on sending the prs?


Docs: Added Solutions to Leetcode 916

Related Issue
Closes #1973
Description
This PR adds the solutions to leetcode problem 916 - ( Word Subsets )
Type of PR

[ ] Bug fix
[ ] Feature enhancement
[X] Documentation update
[ ] Security enhancement
[ ] Other (specify): _______________

Screenshots / Videos (if applicable)

Checklist

[X] I have performed a self-review of my code.
[X] I have read and followed the Contribution Guidelines.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have followed the code style guidelines of this project.
[X] I have checked for any existing open issues that my pull request may address.
[X] I have ensured that my changes do not break any existing functionality.
[X] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently.
[X] I have read the resources for guidance listed below.
[X] I have followed security best practices in my code changes.

Additional Context
N/A

@shreyash3087 This repo has limitation of 150 points if you are contributing documentation

@sanjay-kv Alright sir,i wasnt aware about the limitations on the Repo for docs,sorry about that !

@Ajay-Dhangar how do we check the limitation on the repo?

https://github.com/GSSoC24/Contributor/tree/main/gssoc-guidelines
This has mentioned on the guidelines. Any technical issue you contribute to the repo doesn't come under this limitation to this repo. Only documentation.
We have mailed Everyone, Github discussion update, Linkedin Post update, Discord announcement has been made regarding the same
For admin we will give more beginner users who can work on the documentation. there is new batch training program from next week.


2021 07 04/post list

Add missing post-list web component.

(note: Trying to get updated data to actually test this with - not sure it's coming through to github)


test_server: Set LOCAL_UPLOADS_DIR in set_up_django.

We map 'LOCAL_UPLOADS_DIR' to the value 1 to negate
an overwrite.  This is accomplished by configuring the
LOCAL_UPLOADS_DIR attribute to the empty string only
if the mapped value is not found in the environment.
Testing Plan:
tools/test-*

Updated @timabbott

Merged as 1418b8b05f6d02828b48c42d13dde7b2dd537d5c, after rewriting the commit message and comments to be clear that the environment doesn't automatically do anything to Django settings -- it's only for ones that we have explicit code to read the environment that such a behavior exists.


[wip]update conda recipe to use conda dnnl

seems great! only the macos version cannot find dnnl?

the travis test results still cannot find "deprecated"
I think the "deprecated" should be put at "run" rather than "host" in conda_build_config.yaml, because it is used at runtime (while build process doesn't need).

the travis test results still cannot find "deprecated"
I think the "deprecated" should be put at "run" rather than "host" in conda_build_config.yaml, because it is used at runtime (while build process doesn't need).

@chrishkchris thanks for the advice

Should be ok now.


Versioning unclear

The README mentions no version number but lists source files for version 1.0. On my HDD I have found versions 4.0 and 5.0 (build 1349) of this software. Version 5.0 shows a copyright message "Copyright 1998-2012 Expert Commercial Software Pty Ltd" and links to the (now dead) https://www.hexedit.com.
So what's the state of this repository version-wise? Is the code the one that was used for 5.0?

Sorry, I had not updated the README since version 1.0.  The comment I added later was to say that the list of files was as at 1.0 (but there have been a lot of other files added since then).
But yes, this is the latest version of the code (5.0) as you can see here: https://github.com/AndrewWPhillips/HexEdit/blob/master/HexEdit/HexEdit.rc#L2645


Numba np.zeros giving incorrect result and wierd behavior

I am using numpy structured dtype for some tasks and came across this wierd bug:
import numpy as np
from numba import njit

custom_type = np.dtype([("a", np.int32),("b",np.int32)])
@njit
def get_zero():
    z = np.zeros(1, dtype=custom_type)[0]
    return z

print("output: {}".format(get_zero()))

this prints
output: (-555819298, -555819298)
expected output
output: (0,0)
On further playing with this, it seems like a early memory free type of bug. I think numba is somehow freeing up the memory allocated by np.zeros prematurely. This is an alternative code to show that:
import numpy as np
from numba import njit

custom_type = np.dtype([("a", np.int32),("b",np.int32)])
@njit
def get_zero_int():
    x = np.zeros(1, dtype=custom_type)
    y = x[0]["a"]
    z = x[0]["a"] # if you comment this line, then the output will magically become garbage
    return y

print("output: {}".format(get_zero_int()))

on running as it is, this prints
output: 0
but on commenting the said line and running, this prints:
output: -555819298
This leads me to believe that keeping the z = x[0]["a"] line somehow prevents numba from freeing the memory early, but I'm not sure.
Used versions:
python: 3.7.6
numpy: 1.18.1
numba: 0.48.0

Thanks for the report. I think there's numerous bugs here.

The allocation works ok.
The getitem directly on the allocation "works" but does the wrong thing.
Doing g = np.zeros(1, dtype=custom_type) and returning g[0] causes problems within the cpython wrapper.
That adding the z = line magically fixes it and it otherwise produces the same nonsense suggest invalid it's behaviour.


View Scale: Missing check mark

Testing: #16326

VSCode Version: 1.8-insiders
OS Version: Win

Steps to Reproduce:

Open dependancies view in debug mode.
Activate via view menu
It's now in the activity bar.  But there is no check-mark right click context menu.  There probably shoudl be...

Additionally is it possible to add that tot he view meny like we do for AutoSave

Sean

As designed, the checkbox only shows up for "pinned" viewlets (those that are kept in the activit bar.)


A way of knowing if RTL/LTR was chosen to create a wrapper MUI component (to make RTL work on all MUI components).

Hi,
When using React's MUI, setting direction using dir or document.dir doesn't work perfectly and an extra library must be installed (pnpm i stylis-plugin-rtl).
Is there a way of knowing what the value of the addon is? Some global value or event?
In the previous package it seems like there was a way to do it:
import addons from '@storybook/addons';
import { Direction_MODE_EVENT_NAME } from 'storybook-rtl-addon';

// get channel to listen to event emitter
const channel = addons.getChannel();

// create a component that listens for the event change
function MyComponent({ children }) {
  // this example uses hook but you can also use class component as well
  const [direction, setDirection] = useState();

  useEffect(() => {
    // listen to direction change
    channel.on(Direction_MODE_EVENT_NAME, setDirection);
    return () => channel.off(Direction_MODE_EVENT_NAME, setDirection);
  }, [channel, setDirection]);

  return
{children}
;
}

I'd love some advice please :)
Thank you for your time 🌻

Oh no! I accidentally removed the exports needed to do this. I'll get a fix out today

@literalpie
Wow thank you so much!!! ✨✨✨✨ That was super fast! :)


bochs: make bochs emulation work out of box

Seems like the support for bochs was there, but a bit bitrotted.
I've restored it, because emulator boots COSEC successfully. Though Lua fails, but that is another story.

Glad to see contributors!
I have never actually tested it for bochs seriously, so it's a nice addition.
Just one request: can you move .bochs-template into res/?
Also, I gradually moved to using CD images instead of floppies (after trying to write a floppy driver without any chance to test it on a real floppy), maybe Bochs could use CD images too? That would remove the need for different *menu.lst.
A note about kernel.nm: if you boot a non-stripped kernel using GRUB (i.e. not using direct qemu -kernel build/kernel), you already have the symbol information loaded in memory and you can access it using built-in commands elf sections, elf syms like this:

sure. I've tried CD boot first, don't know why I failed yesterday.


pombase-go-physical-interactions.tsv.gz

The
pombase-go-physical-interactions.tsv.gz file here
https://curation.pombase.org/dumps/latest_build/exports/
is empty....
(I have a feeling this happened very recently, because  esyN is currently displaying these interactions)

Thanks for spotting that.  It looks like it happened in the last day or two.  I've copied the most recent good version of the file to the latest_build/exports/ directory so esyN will update OK while I fix things.

It looks like owltools was failing and it caused a bunch of problem.  I ran the load manually and it's fine.  I think I've fixed the load script.  I see how it goes over night.

It's working now.


problems building for no_std enviroment

wasmi uses num_rational::BigRational for float conversion since 7fe6ef4e355faac97c66a691ea96e99eccb73e22
BigRational needs the bigint or bigint-std but the no_std version does not work at the moment :
from num-rational release-notes:

In the future, it may be possible to use the bigint feature with no_std

this way num-rational forces std since thes is no bigint for no_std

side note: bigint could be supported on no_std with https://github.com/rust-num/num-bigint/pull/101

This should be fixed now that #230 has been merged.


Error: No Project. in 'Object.ThrowNoProject' during 'quickinfo'

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript Version Prefix: 2.7.1
VSCode Version 1.20.0-insider
command requested: quickinfo
hitting sessions: 15531
proportion of all sessions: 0.02117434374667681
stack
Error: No Project.
    at Object.ThrowNoProject (tsserver.js:84179:23)
    at ScriptInfo.getDefaultProject (tsserver.js:84787:46)
    at ProjectService.getDefaultProjectForFile (tsserver.js:87359:39)
    at IOSession.Session.getFileAndProjectWorker (tsserver.js:89734:87)
    at IOSession.Session.getFileAndProject (tsserver.js:89719:29)
    at IOSession.Session.getQuickInfoWorker (tsserver.js:89779:31)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:88934:61)
    at unknown (tsserver.js:90355:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90346:28)
    at IOSession.Session.executeCommand (tsserver.js:90355:33)
    at IOSession.Session.onMessage (tsserver.js:90375:35)
    at Interface.<anonymous> (tsserver.js:91576:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

Should be a duplicate / comment on https://github.com/Microsoft/TypeScript/issues/22070


Fix a typo

Microsoft,
This is David Ball with Vector Solutions (formerly Redvector). We've found a typo in the tutorial page that needs to be corrected. The section below:
b. In the Identifier (Entity ID) text box, type a URL using the following pattern: https://<Companyname>.redvector.com/saml2
Should be changed to:
b. In the Identifier (Entity ID) text box, type a URL using the following pattern: https://sso2.redvector.com/saml2
This typo is causing our clients numerous problems during their setup. I don't expect the change to be made until you can validate this request is legitimate so I can be reached at<EMAIL_ADDRESS>Thank you,
David Ball
Vector Solutions Development Team

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7f663d35-8216-4473-62d9-d6d75a87f1e8
Version Independent ID: 42345812-efa7-49c3-aa33-e31802a6a9d2
Content: Tutorial: Azure Active Directory integration with RedVector
Content Source: articles/active-directory/saas-apps/redvector-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@davideball thanks! Fixing this.

Thanks! Just made a pull request to fix this https://github.com/MicrosoftDocs/azure-docs-pr/pull/119828
CC @jeevansd


[wip] Refine the logic while reporting the packet loss

check dallas ocp-4.13-vanilla example-cnf

hi @capolrik we could maybe merge this PR, and then add documentation about example-cnf network schema later on, after the meeting with Franck, when we'd have a better understanding of the situation.


Add new status field to analysis model

As we discussed in the specs doc, we'll need a new status field with possible values of DRAFT, PENDING and GENERATED. I think the existing boolean locked field will technically be redundant since it can be derived as locked = status != 'DRAFT'.

@adelavega I think it would be fine to keep the locked field (so we don't have to make too many changes to the existing code) and add a status field with the possible values of PASSED, FAILED and PENDING. Basically status would display the status of the latest submission. If the analysis fails, the locked flag should be cleared too so the client can make changes and resubmit.


feat(code): add function to download notebook outputs

BUG=b/371574828
CHILD=#185
CC=@rosbo,@dster2,@jplotts
Extends the same functionality from models.py, datasets.py and competition.py to the notebooks at https://kaggle.com/code.
Request For Comments: Mostly looking for guidance on how to handle the naming. There's a bit of interchanging usage between code (the website endpoint route), notebooks (the Kaggle resource being targeted), and kernels (the /api/v1 endpoint route)
TODO(#185): adding tests in a followup since that requires propping up a stubbed API server. Trying to keep this diff from getting any bigger.
Changes
handle.py

added a new *Handle data type
using Code to align with the route on the main site https://kaggle.com/code

cache.py

added new functions to dictate the cached path for notebook outputs based on the properties in CodeHandle
this mostly mirrors the same structure as the model, dataset, and competition paths.

the cache structure is split into the output_path, archive_path, a _completion_file_marker_path for individual files in the download payload, and a _completion_file_marker_path for the entire download payload.

the structure is as follows:<cache_root>/
└── code/
    └── username/
        └── notebook_slug/
            ├── output.complete  <-- tracker for the entire output
            ├── .complete/       <-- trackers for per file within the output
            │   ├── file1.txt.complete
            │   └── file2.txt.complete
            ├── output.archive   <-- the compressed output (.tar.gz or .zip)
            └── output/          <-- the uncompressed output
                ├── file1.txt
                └── file2.txt

http_resolver.py

Implemented the NotebookOutputHttpResolver
Note, we don't currently have an API endpoint to download notebook output in a kagglehub-compatible compression format (left a TODO with our internal tracker for this)
It leverages the our existing KaggleApiV1Client + the new cache location mentioned above

registry.py + __init__.py

bootstraps the NotebookOutputHttpResolver so that it can be called by kagglehub.notebook_output_download in code.py

code.py

the entry point to the notebook output downloading functionality
the file is named code.py to align with our navigation paths at https://kaggle.com (similar to models, datasets, and competitions). Open to changing if needed.
the function is named notebook_output_download to be more specific about what's being downoaded

Not sure why this build error is happening:
Step #3 - "lint": cmd [1] | ruff check .
Step #3 - "lint": src/kagglehub/gcs_upload.py:13:33: A004 Import `ConnectionError` is shadowing a Python builtin
Step #3 - "lint":    |
Step #3 - "lint": 12 | import requests
Step #3 - "lint": 13 | from requests.exceptions import ConnectionError, Timeout
Step #3 - "lint":    |                                 ^^^^^^^^^^^^^^^ A004
Step #3 - "lint": 14 | from tqdm import tqdm
Step #3 - "lint": 15 | from tqdm.utils import CallbackIOWrapper
Step #3 - "lint":    |
Step #3 - "lint":
Step #3 - "lint": src/kagglehub/gcs_upload.py:69:16: UP031 Use format specifiers instead of percent format
Step #3 - "lint":    |
Step #3 - "lint": 67 |             suffix_index += 1
Step #3 - "lint": 68 |             size /= 1024.0
Step #3 - "lint": 69 |         return "%.*f%s" % (precision, size, suffixes[suffix_index])
Step #3 - "lint":    |                ^^^^^^^^ UP031
Step #3 - "lint":    |
Step #3 - "lint":    = help: Replace with format specifiers
Step #3 - "lint":
Step #3 - "lint": Found 2 errors.

that file doesn't appear in this diff at all. cc @rosbo in case you know

@KeijiBranshi ruff is not pinned to a specific version. This is probably a new check: https://github.com/Kaggle/kagglehub/blob/8b1fae8632f9d381cebb14ec50c56d7ff5fbeb1b/pyproject.toml#L58
ruff 0.8.0 was released 10 hours ago: https://pypi.org/project/ruff/#history
We could pin ruff but at the same time, we would need to remember to bump the version up. If it's only a single error, you can simply fix it. If you have many error, just pin ruff to 0.7.4 and file a bug to bump up the version.

@KeijiBranshi ruff is not pinned to a specific version. This is probably a new check:
https://github.com/Kaggle/kagglehub/blob/8b1fae8632f9d381cebb14ec50c56d7ff5fbeb1b/pyproject.toml#L58
ruff 0.8.0 was released 10 hours ago: https://pypi.org/project/ruff/#history
We could pin ruff but at the same time, we would need to remember to bump the version up. If it's only a single error, you can simply fix it. If you have many error, just pin ruff to 0.7.4 and file a bug to bump up the version.

Fixed here 0cd1661d43a2d7c221dd49570c693b236f019696

fyi @calderjo going to merge now to unblock. lmk if you have any comments though and I can address in a follow up iteration