message
stringlengths
13
484
diff
stringlengths
38
4.63k
fix dagit download mocks script Summary: Not really sure how this changed in the last week, but... Test Plan: Ran `make download-mocks`, saw toy mocks return valid pipeline snapshots Reviewers: dgibson, sashank
@@ -47,7 +47,7 @@ MOCKS.push( variables: { pipelineSelector: { pipelineName: name, - repositoryLocationName: "<<in_process>>", + repositoryLocationName: "toys_repository", repositoryName: "toys_repository" }, rootHandleID: "",
Handle non-numeric features in ``fast_predict()``. Also add logger creation that was missing before.
@@ -99,7 +99,15 @@ def fast_predict( predictions for the input features. It contains the following columns: "raw", "scale", "raw_trim", "scale_trim", "raw_trim_round", and "scale_trim_round". + + Raises + ------ + ValueError + If ``input_features`` contains any non-numeric features. """ + # initialize a logger if none ...
Remove log translation function calls from ironic.db Remove all calls to logging functions from the db directory of ironic. In this instance, there were very few, and all were to _LW. Partial-bug:
@@ -34,7 +34,7 @@ from sqlalchemy.orm import joinedload from sqlalchemy import sql from ironic.common import exception -from ironic.common.i18n import _, _LW +from ironic.common.i18n import _ from ironic.common import states from ironic.conf import CONF from ironic.db import api @@ -783,8 +783,8 @@ class Connection(api...
TST: Update `travis-test.sh` for C99 Most of this was already done, but we were still raising an error for declaration after a statement because the Windows Python 2.7 compiler did not allow it. We can fix this now as NumPy >= 1.17 has dropped Python 2.7 support.
@@ -25,8 +25,7 @@ if [ -n "$PYTHON_OPTS" ]; then fi # make some warnings fatal, mostly to match windows compilers -werrors="-Werror=declaration-after-statement -Werror=vla " -werrors+="-Werror=nonnull -Werror=pointer-arith" +werrors="-Werror=vla -Werror=nonnull -Werror=pointer-arith" # build with c99 by default
Update opioidper1000.json removed oxycodone 30mg MR as no longer considered high dose in Opioids Aware
"twice daily (120mg daily dose), whereas MST 30mg are not, as the daily dose is 60mg. ", "We have not included preparations used for breakthrough pain, e.g. Oramorph, or opioid injections which tend to be ", "used more commonly in palliative care. We have calculated morphine equivalencies using ", - "the <a href='https...
Add OpenAPIHub to Development PR inactive resolve
@@ -581,6 +581,7 @@ API | Description | Auth | HTTPS | CORS | | [OneSignal](https://documentation.onesignal.com/docs/onesignal-api) | Self-serve customer engagement solution for Push Notifications, Email, SMS & In-App | `apiKey` | Yes | Unknown | | [OOPSpam](https://oopspam.com/) | Multiple spam filtering service | No ...
Check read-after write consistency Perform a read right after a write to check if the consistency is respected when read-after-write is performed from the same host
@@ -67,7 +67,9 @@ def verify_directory_correctly_shared(remote_command_executor, mount_dir, schedu head_node_file = random_alphanumeric() logging.info(f"Writing HeadNode File: {head_node_file}") remote_command_executor.run_remote_command( - "touch {mount_dir}/{head_node_file}".format(mount_dir=mount_dir, head_node_file...
Update kombu to 4.2.2.post1 Fixes
@@ -252,9 +252,9 @@ isodate==0.6.0 \ jmespath==0.9.3 \ --hash=sha256:f11b4461f425740a1d908e9a3f7365c3d2e569f6ca68a2ff8bc5bcd9676edd63 # kombu is required by celery -kombu==4.2.2 \ - --hash=sha256:9bf7d37b93249b76a03afb7bbcf7149a358b6079ca2431e725414b1caa10922c \ - --hash=sha256:52763f41077e25fe7e2f17b8319d8a7b7ab953a88...
Only retrieve released pcluster AMIs. This change only applies to integration tests for released versions. In the develop code, we should conditionally retrieve AMI depending if the test is running as released test or develop test.
@@ -42,7 +42,7 @@ OS_TO_REMARKABLE_AMI_NAME_OWNER_MAP = { } # Get official pcluster AMIs or get from dev account -PCLUSTER_AMI_OWNERS = ["amazon", "self"] +PCLUSTER_AMI_OWNERS = ["amazon"] # Pcluster AMIs are latest ParallelCluster official AMIs that align with cli version OS_TO_PCLUSTER_AMI_NAME_OWNER_MAP = { "alinux2...
Get rid of "sending ack" in peer logging In one case this isn't accurate anymore, and in the other cases it isn't interesting.
@@ -40,8 +40,8 @@ class GetPeersRequestHandler(Handler): def handle(self, connection_id, message_content): request = GetPeersRequest() request.ParseFromString(message_content) - LOGGER.debug("got peers request message " - "from %s. sending ack", connection_id) + + LOGGER.debug("Got peers request message from %s", conne...
[syncBN] test update to resolve Using identical learning rate for both DDP with sync BN and single process BN. The previous configure leaves the impression that sync BN requires adjusting lr in the script, which is not true.
@@ -92,6 +92,8 @@ inp_bn = inp_t.clone().requires_grad_() grad_bn = grad_output_t.clone().detach() out_bn = bn(inp_bn) out_bn.backward(grad_bn) +for param in bn.parameters(): + param.grad = param.grad / args.world_size bn_opt = optim.SGD(bn.parameters(), lr=1.0) sbn = apex.parallel.SyncBatchNorm(feature_size).cuda() @@...
Fix for bug in loading dotted modules from the command line for when you are trying to do something like: $ ginga --loglevel=40 --stderr --plugins=stginga.plugins.DQInspect
@@ -16,23 +16,28 @@ __all__ = ['ModuleManager'] def my_import(name, path=None): """Return imported module for the given name.""" - #mod = __import__(name) - if path is None: - fp, path, description = imp.find_module(name) + if path is not None: + description = ('.py', 'r', imp.PY_SOURCE) + + with open(path, 'r') as fp:...
Shut up pylint some more since it kept suggesting to add an import that is not needed nor used. If you add the import and then lint using .pylintrc, it then complains about the unused import.
''' Tests for loop state(s) ''' - # Import Python Libs from __future__ import absolute_import, print_function, unicode_literals +# Disable pylint complaining about incompatible python3 code and suggesting +# from salt.ext.six.moves import range +# which is not needed (nor used) as the range is used as iterable for both...
fix typo in comment fix typo
@@ -394,7 +394,7 @@ class HfArgumentParser(ArgumentParser): def parse_yaml_file(self, yaml_file: str, allow_extra_keys: bool = False) -> Tuple[DataClass, ...]: """ - Alternative helper method that does not use `argparse` at all, instead loading a json file and populating the + Alternative helper method that does not us...
Added protocol change for cip03 Fixed some errors in compose format when reset was not enabled
"testnet_block_index": 2287021 }, + "cip03": { + "minimum_version_major": 9, + "minimum_version_minor": 59, + "minimum_version_revision": 6, + "block_index": 753000, + "testnet_block_index": 2288000 + }, "issuance_asset_serialization_format": { "mainnet":{ "1":{ "value":">QQ??If" }, - "1000000":{ + "753000":{ "value":"...
lightbox: update help text for `v` shortcut. New behavior of the `v` shortcut updated in documentation. Follow up to
</tr> <tr> <td class="hotkey">v</td> - <td class="definition">{% trans %}Show images in message{% endtrans %}</td> + <td class="definition">{% trans %}Show images in thread{% endtrans %}</td> </tr> <tr id="edit-message-hotkey-help"> <td class="hotkey">i then Enter</td>
Adds argument validation for group size argument Also renames the class variable for the iterable to match other built-ins.
@@ -314,12 +314,18 @@ class groupsof{object}: """groupsof(n, iterable) returns an iterator that returns groups of length n. If the length of the iterable is not divisible by n, the last group may be of size < n. """ - __slots__ = ("_grp_size", "_iterable") + __slots__ = ("_grp_size", "_iter") def __init__(self, n, iter...
Small fix of the Depthwise Convolution example in python3 * fix for python3 fix for python3 * Update depthwise_conv2d_map_test.py remove sys.append
@@ -78,12 +78,14 @@ def test_depthwise_conv2d_map(): index_w = pad_left_scipy - pad_left_tvm for i in range(batch): for j in range(out_channel): - depthwise_conv2d_scipy[i,j,:,:] = signal.convolve2d(input_np[i,j/channel_multiplier,:,:], np.rot90(filter_np[j/channel_multiplier,j%channel_multiplier,:,:], 2), + depthwise_...
Fixing issue # 40167 with file.replace where the diff output does not display correctly.
@@ -2231,8 +2231,8 @@ def replace(path, check_perms(path, None, pre_user, pre_group, pre_mode) if show_changes: - orig_file_as_str = ''.join([salt.utils.to_str(x) for x in orig_file]) - new_file_as_str = ''.join([salt.utils.to_str(x) for x in new_file]) + orig_file_as_str = [salt.utils.to_str(x) for x in orig_file] + n...
2 step re-execution test Summary: had to prove to myself this worked as expected Test Plan: its a test Reviewers: max, prha, nate
@@ -620,6 +620,41 @@ def add_one(num): assert reexecution_result.result_for_solid('add_one').output_value() == 2 +def test_two_step_reexecution(): + @lambda_solid + def return_one(): + return 1 + + @lambda_solid + def add_one(num): + return num + 1 + + @pipeline + def two_step_reexec(): + add_one(add_one(return_one()))...
fix test_incremental_load_hidden_core Cache state after load with missig cores should be "incomplete" rather than "running.
@@ -110,8 +110,11 @@ def test_incremental_load_hidden_core(): with TestRun.step("Load cache"): cache = casadm.load_cache(cache_dev) - if cache.get_status() is not CacheStatus.running: - TestRun.fail(f"Cache {cache.cache_id} should be running but is {cache.get_status()}.") + if cache.get_status() is not CacheStatus.inco...
Fix asyncio create_task syntax for compatibility with python < 3.7 The `asyncio.create_task` method was introduced with python 3.7. To be compatible with older version, we should use `asyncio.get_event_loop().create_task`
@@ -153,7 +153,10 @@ class IOCache: raise e queue.task_done() - tasks = [asyncio.create_task(worker(queue)) for _ in range(n_workers)] + tasks = [ + asyncio.get_event_loop().create_task(worker(queue)) + for _ in range(n_workers) + ] for job in jobs: for f in chain(job.input, job.expanded_output):
Incidents: define allowed roles and emoji These serve as whitelists, i.e. any reaction using an emoji not explicitly allowed, or from a user not specifically allowed, will be rejected. Such reactions will be removed by the bot.
@@ -4,7 +4,7 @@ from enum import Enum from discord.ext.commands import Cog from bot.bot import Bot -from bot.constants import Emojis +from bot.constants import Emojis, Roles log = logging.getLogger(__name__) @@ -17,6 +17,10 @@ class Signal(Enum): INVESTIGATING = Emojis.incident_investigating +ALLOWED_ROLES: t.Set[int] ...
modules/nilrt_ip.py: Add default value for gateway In case that connman cannot provide a default gateway, then this should have a default value (0.0.0.0) to keep consistency between various ip modules.
@@ -156,7 +156,9 @@ def _get_service_info(service): state = service_info.get_property('State') if state == 'ready' or state == 'online': data['up'] = True - data['ipv4'] = {} + data['ipv4'] = { + 'gateway': '0.0.0.0' + } ipv4 = 'IPv4' if service_info.get_property('IPv4')['Method'] == 'manual': ipv4 += '.Configuration'
Adding the decode('utf-8') method This will fix the problem when trying to send the lintrc file to celery because the JSON serializer expects a valid JSON string type instead of bytes when Python 3.6+ is used. Ref:
@@ -56,7 +56,7 @@ def get_lintrc(repo, ref): """ log.info('Fetching lintrc file') response = repo.file_contents('.lintrc', ref) - return response.decoded + return response.decoded.decode('utf-8') def register_hook(repo, hook_url):
Replace Send Option with SocketCommand Replace the use of Option for messages sent, with a SocketCommand. This makes the action performed explicit, particularly with respect to the Shutdown command.
@@ -63,13 +63,18 @@ impl MessageConnection<ZmqMessageSender> for ZmqMessageConnection { } } +#[derive(Debug)] +enum SocketCommand { + Send(Message), + Shutdown +} #[derive(Clone)] pub struct ZmqMessageSender { context: zmq::Context, address: String, inbound_router: InboundRouter, - outbound_sender: Option<SyncSender<Op...
Make sure environment settings are merged in for requests Fixes
@@ -67,12 +67,13 @@ class RequestsHttpConnection(Connection): url = '%s?%s' % (url, urlencode(params or {})) start = time.time() - try: request = requests.Request(method=method, url=url, data=body) prepared_request = self.session.prepare_request(request) - response = self.session.send( - prepared_request, - timeout=tim...
fix header delete profile moves the "Delete profile" header inside the if-block
<input type="submit" name="cancel" value="{% trans 'Cancel' %}" class="btn" /> </form> - <h2>{% trans "Delete profile" %}</h2> - {% if settings.PROFILE_DELETE %} + <h2>{% trans "Delete profile" %}</h2> + <p> {% trans 'If you want to remove all your account information please proceed by clicking the button below.' %} </...
ci: remove the composer image test This test that compiles and compare image-info from manifests is redundant with the tests from manifest-db.
@@ -55,27 +55,6 @@ RPM: - aws/rhel-9.1-nightly-aarch64 INTERNAL_NETWORK: "true" -Composer Tests: - stage: test - extends: .terraform - script: - - schutzbot/deploy.sh - - /usr/libexec/tests/osbuild-composer/image_tests.sh - parallel: - matrix: - - RUNNER: - - aws/fedora-35-x86_64 - - aws/fedora-35-aarch64 - - aws/fedor...
Support HTTP/2 Server Push via ASGI This is only attempted (and possible) if the server supports server push and annonces so in the extensions dictionary. Currently Hypercorn is the only ASGI server to support this extension.
@@ -62,6 +62,15 @@ class ASGIHTTPConnection: 'status': response.status_code, 'headers': headers, }) + + if 'http.response.push' in self.scope.get('extensions', {}): + for path in response.push_promises: + await send({ + 'type': 'http.response.push', + 'path': path, + 'headers': [], + }) + async for data in response.res...
Add proxy support for rutracker plugin [new] rutracker: Added proxy support
@@ -16,7 +16,6 @@ from flexget.event import event from flexget.db_schema import versioned_base from flexget.plugin import PluginError from flexget.manager import Session -from requests import Session as RSession from requests.auth import AuthBase from requests.utils import dict_from_cookiejar from requests.exceptions i...
do not integrate thumbnail Storing thumbnail representation in the DB doesn't make sense. There will be eventually pre-integrator that could allow this with profiles usage.
@@ -164,7 +164,7 @@ class ExtractReview(publish.Extractor): "ext": "jpg", "files": os.path.basename(thumbnail_path), "stagingDir": staging_dir, - "tags": ["thumbnail"] + "tags": ["thumbnail", "delete"] }) def _check_and_resize(self, processed_img_names, source_files_pattern,
validate: fail in check_devices at the right task see for details. Fixes:
- name: devices validation when: devices is defined block: - - name: validate devices is actually a device + - name: get devices information parted: device: "{{ item }}" unit: MiB register: devices_parted + failed_when: False with_items: "{{ devices }}" - name: fail if one of the devices is not a device fail: msg: "{{ ...
doc/common/extensions: Basic styling. Turns it into a table with images, using builtin RTD classes for CSS.
:mod:`umath <umath>` -- Math functions ============================================================ +This MicroPython module is similar to the `math module`_ in Python. +It is available on these hubs: + .. pybricks-requirements:: stm32-extra stm32-float -This MicroPython module is similar to the `math module`_ in Pytho...
Remove duplicate fields from the registration model [#PLAT-1061]
@@ -15,7 +15,7 @@ from website import settings from website.archiver import ARCHIVER_INITIATED from osf.models import ( - OSFUser, RegistrationSchema, RegistrationApproval, + OSFUser, RegistrationSchema, Retraction, Embargo, DraftRegistrationApproval, EmbargoTerminationApproval, ) @@ -40,11 +40,6 @@ class Registration(...
Add redirect to notion privacy location. Since this is a backwards compatibility redirect, the page should redirect the user rather than rely on the cloudflare worker.
@@ -5,3 +5,8 @@ icon: fab fa-discord --- You should be redirected. If you are not, [please click here](https://www.notion.so/pythondiscord/Python-Discord-Privacy-ee2581fea4854ddcb1ebc06c1dbb9fbd). + +<script> + // Redirect visitor to the privacy page + window.location.href = "https://www.notion.so/pythondiscord/Python-...
fix: ignore unpicklable hooks If any custom app use import statement in hooks.py everything breaks. Hooks.py while being python file is still only supposed to be used for configuring. This PR ignores unpicklable members of hooks.py
@@ -1432,6 +1432,8 @@ def get_doc_hooks(): @request_cache def _load_app_hooks(app_name: str | None = None): + import types + hooks = {} apps = [app_name] if app_name else get_installed_apps(sort=True) @@ -1447,9 +1449,13 @@ def _load_app_hooks(app_name: str | None = None): if not request: raise SystemExit raise - for k...
Update __init__.py Import CieanaSAOSDriver
@@ -51,6 +51,7 @@ from Exscript.protocols.drivers.vxworks import VxworksDriver from Exscript.protocols.drivers.ericsson_ban import EricssonBanDriver from Exscript.protocols.drivers.rios import RIOSDriver from Exscript.protocols.drivers.eos import EOSDriver +from Exscript.protocols.drivers.cienasaos import CienaSAOSDriv...
Fix user deletion An improper check causes problems when trying to delete a user. This fixes that error.
@@ -1098,9 +1098,9 @@ def admin_manageuser(): data = jdata['data'] if jdata['action'] == 'delete_user': - if username == current_user.username: - return make_response(jsonify( { 'status': 'error', 'msg': 'You cannot delete yourself.' } ), 400) user = User(username=data) + if user.username == current_user.username: + re...
read res with CovMat regul Load Pst with a *.res file that contains rows for CovMat regularization observation groups. loads res file, only keeping columns that match headers strips Cov, Mat. and na strings sets cols to float
@@ -253,8 +253,12 @@ def read_resfile(resfile): header = line.lower().strip().split() break res_df = pd.read_csv( - f, header=None, names=header, sep=r"\s+", converters=converters + f, header=None, names=header, sep=r"\s+", converters=converters, + usecols=header #on_bad_lines='skip' ) + # strip the "Cov.", "Mat." and ...
create-project.py: fix a Python3 syntax error In Python3, octal notation for integer literals requires the "0o" prefix. TN:
@@ -38,7 +38,7 @@ def generate(lang_name): with open(filename, 'w') as f: f.write(template.format(**template_args)) - os.chmod('manage.py', 0755) + os.chmod('manage.py', 0o755) MANAGE_TEMPLATE = '''#! /usr/bin/env python
fix(docs): format docs ### Summary & Motivation ### How I Tested These Changes
@@ -57,11 +57,9 @@ Let's get started by downloading the [`tutorial_dbt_dagster` example](https://gi <a href="https://docs.getdbt.com/reference/warehouse-setups/bigquery-setup"> BigQuery </a> - ,{" "} - <a href="https://docs.getdbt.com/reference/warehouse-setups/redshift-setup"> + , <a href="https://docs.getdbt.com/refe...
Update ESP32_Code.ino Including the chip ID for the ESP32 (48 bits long or 6 bytes). Avoiding the use of String for the stored ID. Avoiding the use of the String class at all in the future would be great.
@@ -76,6 +76,8 @@ volatile int wifiStatus = 0; volatile int wifiPrev = WL_CONNECTED; volatile bool OTA_status = false; +volatile char ID[23]; // DUCO MCU ID + void WiFireconnect( void * pvParameters ) { int n = 0; unsigned long previousMillis = 0; @@ -266,7 +268,7 @@ void Task1code( void * pvParameters ) { Serial.print...
Update Alien 3 (USA, Europe) (Action Replay).cht Change 99 to 63 hex. 99 results in 0 and weapon, granage ,flame is not usable. 63 shows visually the same as 99 but works and can shoot
cheats = 9 cheat0_desc = "Infinite Pulse Rifle Ammo" -cheat0_code = "FF0844:99" +cheat0_code = "FF0844:63" cheat0_enable = false cheat1_desc = "Infinite Time" @@ -9,15 +9,15 @@ cheat1_code = "FF0866:60" cheat1_enable = false cheat2_desc = "Infinite Fuel" -cheat2_code = "FF0846:99" +cheat2_code = "FF0846:63" cheat2_enab...
libcurl/7.71.1 : fix wolfssl path not specified to configure similar to openssl, wolfssl path needs to be specified while executing configure script for libcurl with-wolfssl option
@@ -199,7 +199,8 @@ class LibcurlConan(ConanFile): openssl_path = self.deps_cpp_info["openssl"].rootpath.replace("\\", "/") params.append("--with-ssl=%s" % openssl_path) elif self.options.with_wolfssl: - params.append("--with-wolfssl") + wolfssl_path = self.deps_cpp_info["wolfssl"].rootpath.replace("\\", "/") + params....
Minor cleanup * Use consistent quoting in verbose optimization output for the hard import stuff.
@@ -665,7 +665,7 @@ class ExpressionImportModuleHard( return ( new_node, "new_raise", - "Hard module %s attribute missing %r pre-computed." + "Hard module '%s' attribute missing '%s* pre-computed." % (self.value_name, attribute_name), ) else: @@ -691,14 +691,14 @@ class ExpressionImportModuleHard( return ( result, "new...
Convert positions to list h5py returns tuples, so enforcing a list here.
@@ -68,7 +68,7 @@ class MdaInputExtractor(InputExtractor): geom=np.zeros((M,nd)) for ii in range(len(channel_ids)): info0=input_extractor.getChannelInfo(channel_ids[ii]) - geom[ii,:]=info0['location'] + geom[ii,:]=list(info0['location']) if not os.path.exists(output_dirname): os.mkdir(output_dirname) mdaio.writemda32(r...
MAINT: Fix unused IgnoreException in nose_tools/utils.py It did not have `pass` in the definition. It appears unused, so should be removed at some point.
@@ -1849,6 +1849,7 @@ def _gen_alignment_data(dtype=float32, type='binary', max_size=24): class IgnoreException(Exception): "Ignoring this exception due to disabled feature" + pass @contextlib.contextmanager
[docs] Clarify that import supports a list Ref - documentation is misleading, it's now possible to have a rule import multiple additional configuration files, ie: ```yaml # my-rule.yml name: my-rule import: - $HOME/conf.d/base.yml - $HOME/conf.d/slack-alerter.yml ```
@@ -315,7 +315,8 @@ import ``import``: If specified includes all the settings from this yaml file. This allows common config options to be shared. Note that imported files that aren't complete rules should not have a ``.yml`` or ``.yaml`` suffix so that ElastAlert 2 doesn't treat them as rules. Filters in imported file...
readme: fix windows binary build step fixes:
@@ -51,9 +51,10 @@ If you want to build your own Windows binaries: 1. Install [cx_freeze](https://anthony-tuininga.github.io/cx_Freeze/) 3. Follow the steps listed under [From source](#from-source) 4. cd path\to\svtplay-dl && mkdir build -5. `python setversion.py` # this will change the version string to a more useful ...
Makefile: fix sh issue [[ is a bash-builtin indeed no sh.
@@ -231,7 +231,7 @@ define update_pin $(eval new_ver := $(call get_remote_version,$(2),$(3))) $(DOCKER_RUN) -i $(CALICO_BUILD) sh -c '\ - if [[ ! -z "$(new_ver)" ]]; then \ + if [ ! -z "$(new_ver)" ]; then \ go get $(1)@$(new_ver); \ go mod download; \ fi' @@ -244,7 +244,7 @@ define update_replace_pin $(eval new_ver :=...
Fix dependency-installation bug in Java MLflow model scoring server Fixed a dependency-installation bug that prevented running the Java MLflow model scoring server against a docker image built via mlflow sagemaker build-and-push-container.
@@ -71,7 +71,10 @@ def _get_mlflow_install_step(dockerfile_context_dir, mlflow_home): "RUN mvn " " --batch-mode dependency:copy" " -Dartifact=org.mlflow:mlflow-scoring:{version}:jar" - " -DoutputDirectory=/opt/java/jars" + " -DoutputDirectory=/opt/java/jars\n" + "RUN cp /opt/java/mlflow-scoring-{version}.pom /opt/java/...
navbar_alerts: Change HTML ordering for obvious tab order. Fixes
<div id="panels"> <div data-process="notifications" class="alert alert-info"> - <span class="close" data-dismiss="alert" aria-label="{{ _('Close') }}" role="button" tabindex=0>&times;</span> <div data-step="1"> {% trans %}Zulip needs your permission to <a class="request-desktop-notifications alert-link" role="button" t...
[swarming] comment out default reboot in on_bot_idle added in We don't want this to happen by default. It interfere with smoke tests.
@@ -305,10 +305,10 @@ def on_bot_idle(bot, since_last_action): bot has been idle. """ # Don't try this if running inside docker. - if sys.platform != 'linux2' or not platforms.linux.get_inside_docker(): - uptime = os_utilities.get_uptime() - if uptime > 12*60*60 * (1. + bot.get_pseudo_rand(0.2)): - bot.host_reboot('Per...
Fix dquery. add `long` type as python int add `[NOT] LIKE` predication add `[NOT] IN` predication
@@ -156,6 +156,7 @@ class Type(Token): 'string':STR, 'int':INT, 'float':FLOAT, + 'long':INT, } reverse_mapping = dict(reversed(i) for i in mappping.items()) @classmethod @@ -198,11 +199,11 @@ class SpecialChar(Token): KEYWORDS = r'select|from|where|like|having|order|not|and|or|group|by|desc|asc|'\ r'as|limit|in|sum|cou...
Fix, python flag "no_warnings" was not working on all platforms. * According to the docs, this function must be called before the interpreter is initialized. It seems it had no effect on macOS then, although worked on Linux.
@@ -508,6 +508,21 @@ int main(int argc, char **argv) { char const *old_env = getenv("PYTHONHASHSEED"); setenv("PYTHONHASHSEED", "0", 1); #endif + + /* Disable CPython warnings if requested to. */ +#if NO_PYTHON_WARNINGS + { +#if PYTHON_VERSION >= 0x300 + wchar_t ignore[] = L"ignore"; +#else + char ignore[] = "ignore"; ...
Fix syntax problem in Action doc [ci skip] Recent change introduced an xml problem which prevents the docs from validating or building - transforming so it builds now.
@@ -65,9 +65,9 @@ is set to <literal>2</literal> or higher, then that number of entries in the command string will be scanned for relative or absolute paths. The count will reset after any -<literal>&&</literal> entries are found. +<literal>&amp;&amp;</literal> entries are found. The first command in the action string ...
remove cache from gitlab ci gitlab ci's cache servers are currently broken
@@ -13,12 +13,12 @@ stages: .basetest: &testbaseanchor stage: basic-tests - cache: - key: tavern-project-cache - paths: - - .cache/pip - - .tox - policy: pull + # cache: + # key: tavern-project-cache + # paths: + # - .cache/pip + # - .tox + # policy: pull before_script: - pip install tox @@ -68,11 +68,11 @@ py36: # Mak...
fix soft_nms_cpu call in BoxWithNMSLimit Summary: Pull Request resolved: introduces a bug of misaligned arguments.
@@ -99,6 +99,7 @@ bool BoxWithNMSLimitOp<CPUContext>::RunOnDevice() { nms_thres_, soft_nms_min_score_thres_, soft_nms_method_, + -1, /* topN */ legacy_plus_one_); } else { std::sort(
fix(report): correction of logo present in the patient discharge summary fix(report): updated images in patient discharge report
</head> <body class="max-w-5xl mx-10 mt-4 text-sm"> <div class="bg-white overflow-hidden sm:rounded-lg m-6"> - <div class="mx-auto flex justify-center"> - <img class='h-28' src="https://cdn.coronasafe.network/kgovtlogo.png"/> - </div> </div> <div class="mt-2 text-center w-full font-bold text-3xl"> {{patient.facility.na...
Submitting with the run-appinspect step, however we are currently missing an appinspect username and password stored as secrets, so we know it will fail. Testing if it will fail on validation or fail during test run.
@@ -162,7 +162,6 @@ jobs: - uses: actions/download-artifact@v2 with: name: content-pack-build - path: build/ #This explicitly uses a different version of python (2.7) - uses: actions/setup-python@v2 @@ -214,49 +213,50 @@ jobs: build/DA-ESS-ContentUpdate-latest.tar.gz build/DA-ESS_AmazonWebServices_Content-latest.tar.gz...
Update installation guide The link of Red Hat certificate system release notes is out of date, replace it with the latest link. Also specify the absolute path of barbican.conf to follow the convention.
@@ -34,7 +34,7 @@ Crypto plugin and the PKCS#11 crypto plugin. Simple Crypto Plugin ^^^^^^^^^^^^^^^^^^^^ -This crypto plugin is configured by default in barbican.conf. This plugin +This crypto plugin is configured by default in ``/etc/barbican/barbican.conf``. This plugin is completely insecure and is only suitable for...
Enables Ansible logs OCP multimaster plan When installing OCP using the multimaster plan, Ansible logs are lost. Enabling them on /etc/ansible/ansible.cfg, so in case of failure during the installation, there is a log to check. By default to /var/log/ansible.log.
@@ -8,6 +8,7 @@ ssh-keyscan -H master03.karmalabs.local >> ~/.ssh/known_hosts ssh-keyscan -H node01.karmalabs.local >> ~/.ssh/known_hosts ssh-keyscan -H node02.karmalabs.local >> ~/.ssh/known_hosts export IP=`ip a l eth0 | grep 'inet ' | cut -d' ' -f6 | awk -F'/' '{ print $1}'` +sed -i "s/#log_path/log_path/" /etc/ansi...
Add description to policies in certificates.py blueprint: policy-docs
@@ -25,12 +25,26 @@ certificates_policies = [ policy.RuleDefault( name=POLICY_ROOT % 'discoverable', check_str=base.RULE_ANY), - policy.RuleDefault( - name=POLICY_ROOT % 'create', - check_str=base.RULE_ADMIN_OR_OWNER), - policy.RuleDefault( - name=POLICY_ROOT % 'show', - check_str=base.RULE_ADMIN_OR_OWNER), + base.crea...
tests: when running test set USE_RHCS=true to install set ceph_rhcs=true When invoking the tests if USE_RHCS=true is set then all tests will be run with ceph_rhcs=True.
@@ -9,9 +9,11 @@ skipsdist = True [purge] commands= cp {toxinidir}/infrastructure-playbooks/purge-cluster.yml {toxinidir}/purge-cluster.yml - ansible-playbook -vv -i {changedir}/hosts {toxinidir}/purge-cluster.yml --extra-vars="ireallymeanit=yes fetch_directory={changedir}/fetch" + ansible-playbook -vv -i {changedir}/h...
doc: give more attention to Catalina issues doc It's easy to miss the Catalina issues doc when reading the readme. Since it can be a common issue among developers, it makes sense to give more attention to it in the readme. PR-URL:
@@ -37,10 +37,11 @@ Depending on your operating system, you will need to install: ### On macOS +**ATTENTION**: If your Mac has been _upgraded_ to macOS Catalina (10.15), please read [macOS_Catalina.md](macOS_Catalina.md). + * Python v2.7, v3.5, v3.6, v3.7, or v3.8 * [Xcode](https://developer.apple.com/xcode/download/) ...
TST: removed unknown keyword unit test Since the nan_policy keyword is now a parameter, we don't need to test for unknown keyword arguement input.
@@ -1660,12 +1660,6 @@ class TestCircFuncs(object): assert_raises(ValueError, stats.circstd, x, high=360, nan_policy='foobar') - def test_bad_keyword(self): - x = [355, 5, 2, 359, 10, 350, np.nan] - assert_raises(TypeError, stats.circmean, x, high=360, foo="foo") - assert_raises(TypeError, stats.circvar, x, high=360, f...
Changed syntax from v2 to v3 client-certs = v2 syntax --> --set client_certs=value = v3 syntax cadir = v2 syntax --> --set cadir=value = v3 syntax
@@ -143,14 +143,14 @@ mitmproxy --cert *.example.com=cert.pem By default, mitmproxy will use `~/.mitmproxy/mitmproxy-ca.pem` as the certificate authority to generate certificates for all domains for which no custom certificate is provided (see above). You can use your own -certificate authority by passing the `--cadir ...
Add filter "user_id" for cluster receiver list This patch adds "user_id" to cluster receiver's query map, so that user can get the required result when doing cluster receiver list. Partial-Bug:
@@ -27,7 +27,8 @@ class Receiver(resource.Resource): allow_delete = True _query_mapping = resource.QueryParameters( - 'name', 'type', 'cluster_id', 'action', 'sort', 'global_project') + 'name', 'type', 'cluster_id', 'action', 'sort', 'global_project', + user_id='user') # Properties #: The name of the receiver.
[IMPR] Check for missing generator after setup() call Bot.setup may create the generator. Therefore check for it after setup() call in front of the loop.
@@ -1385,16 +1385,16 @@ class BaseBot(OptionHandler): @raise AssertionError: "page" is not a pywikibot.page.BasePage object """ self._start_ts = pywikibot.Timestamp.now() + self.setup() + if not hasattr(self, 'generator'): raise NotImplementedError('Variable %s.generator not set.' % self.__class__.__name__) - if PY2: #...
[internal] fix non-empty __init__.py Not sure how I ended up copying the contents of a register.py into this `__init__.py`. Fix by clearing out the file. [ci skip-rust] [ci skip-build-wheels]
-# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -from pants.backend.go.lint.vet import skip_field -from pants.backend.go.lint.vet.rules import rules as go_vet_rules - - -def rules(): - return ( - *go_vet_rules(), - *skip_field.rules(...
fix(stock_all_pb.py): fix stock_a_all_pb interface fix stock_a_all_pb interface
@@ -336,7 +336,6 @@ def stock_a_all_pb() -> pd.DataFrame: temp_df = pd.DataFrame(data_json["data"]) temp_df['date'] = pd.to_datetime( temp_df["date"], unit="ms", utc=True).dt.tz_convert("Asia/Shanghai").dt.date - del temp_df['marketId'] del temp_df['weightingAveragePB'] return temp_df
Fix Shellcheck SC2064: Use single quotes on traps Use single quotes, otherwise this expands now rather than when signalled.
@@ -57,7 +57,7 @@ case "$DEB_BUILD_OPTIONS" in # Copy tests to a temporary directory so that we can put them on the # PYTHONPATH without putting the uninstalled synapse on the pythonpath. tmpdir=`mktemp -d` - trap "rm -r $tmpdir" EXIT + trap 'rm -r $tmpdir' EXIT cp -r tests "$tmpdir"
Fix comparison to None The comparison should be made using 'is' keyword instead of '=='
@@ -18,7 +18,7 @@ if not os.path.exists(requirements): pip.main(['install', '--upgrade', '-r', requirements]) -if which('unzip') == None: +if which('unzip') is None: print('The following executables are needed and were not found: unzip') print('Downloading datasets (this might take several minutes depending on your int...
issue426-timeout-no-error settings.py add boto3 timeouts for aws info lookups
@@ -7,6 +7,7 @@ import base64 import os import boto3 +import botocore.config import logging import re @@ -181,23 +182,27 @@ SCRUBBING_RULE_CONFIGS = [ INCLUDE_AT_MATCH = get_env_var("INCLUDE_AT_MATCH", default=None) EXCLUDE_AT_MATCH = get_env_var("EXCLUDE_AT_MATCH", default=None) +# Set boto3 timeout +boto3_config = bo...
Remove broken link from resources.md I am recommending the removal of the following link as it does not seem to be working and a quick search did not turn any results for the project. Text in question: ## Tools 1. [cntr](https://github.com/nsgonultas/cntr): A command line day counter to track your progress easily
## Other resources 1. [CodeNewbie - #100DaysOfCode Slack Channel](https://codenewbie.typeform.com/to/uwsWlZ) -## Tools -1. [cntr](https://github.com/nsgonultas/cntr): A command line day counter to track your progress easily - ## Books (both coding and non-coding) ### Non-Coding
use 'ip route get' over 'ip addr' for interface check use ip route get over ip addr for interface check
@@ -85,7 +85,7 @@ else fi # get name of active interface (eth0 or wlan0) -network_active_if=$(ip addr | grep -v "lo:" | grep 'state UP' | tr -d " " | cut -d ":" -f2 | head -n 1) +network_active_if=$(ip route get 255.255.255.255 | awk -- '{print $4}' | head -n 1) # get network traffic # ifconfig does not show eth0 on Ar...
stream_stats: Add a column representing type of stream. This adds a column which represents whether a stream is public or private. Fixes
@@ -40,13 +40,18 @@ class Command(BaseCommand): print("%10s %d public streams and" % ("(", public_count), end=' ') print("%d private streams )" % (private_count,)) print("------------") - print("%25s %15s %10s" % ("stream", "subscribers", "messages")) + print("%25s %15s %10s %12s" % ("stream", "subscribers", "messages"...
[metricbeat] remove unused /var/lib/docker/container mount This mount don't seem to be used by metricbeat as we don't use `add_docker_metadata` processor.
@@ -68,9 +68,6 @@ spec: hostPath: path: {{ .Values.hostPathRoot }}/{{ template "metricbeat.fullname" . }}-{{ .Release.Namespace }}-data type: DirectoryOrCreate - - name: varlibdockercontainers - hostPath: - path: /var/lib/docker/containers - name: varrundockersock hostPath: path: /var/run/docker.sock @@ -142,9 +139,6 @...
used openstack cli in magnum devstack plugin Currently magnum CI tests(magnum/tests/contrib/post_test_hook.sh) uses python clients(nova,neutron, glance) for openstack operations. We should start using openstack client instead. Closes-Bug:
@@ -43,8 +43,7 @@ function create_test_data { # cf. https://bugs.launchpad.net/ironic/+bug/1596421 echo "alter table ironic.nodes modify instance_info LONGTEXT;" | mysql -uroot -p${MYSQL_PASSWORD} ironic # NOTE(yuanying): Ironic instances need to connect to Internet - neutron subnet-update private-subnet --dns-nameserv...
Superstarify: use user mentions in mod logs `format_user` isn't used in the apply mod log cause it already shows both the old and new nicknames elsewhere.
@@ -12,6 +12,7 @@ from bot import constants from bot.bot import Bot from bot.converters import Expiry from bot.utils.checks import with_role_check +from bot.utils.messages import format_user from bot.utils.time import format_infraction from . import utils from .scheduler import InfractionScheduler @@ -181,8 +182,8 @@ c...
Fix a bug in import of shape keys The shape key index is overwritten by the inner loop: io_scene_gltf2/blender/imp/gltf2_blender_mesh.py", line 135, in set_mesh if i >= len(prim.targets): TypeError: '>=' not supported between instances of 'tuple' and 'int'
@@ -109,21 +109,21 @@ class BlenderMesh(): obj.shape_key_add(name="Basis") current_shapekey_index = 0 - for i in range(max_shape_to_create): + for sk in range(max_shape_to_create): # Check if this target has POSITION - if 'POSITION' not in prim.targets[i].keys(): - gltf.shapekeys[i] = None + if 'POSITION' not in prim.t...
client: report exception in archive_files_to_storage so that we can track how often this happens.
@@ -1664,6 +1664,8 @@ def archive_files_to_storage(storage, files, blacklist, verify_push=False): if backoff > 100: raise + on_error.report('error before %d second backoff' % backoff) + logging.exception( 'failed to run _archive_files_to_storage_internal,' ' will retry after %d seconds', backoff)
gdbserver: delete FlashLoader on exception during commit. This ensures that there is no stale data in a reused FlashLoader instance, in case the user tries another load. (Which may encounter the same exception that happened the first time, but at least it's not adding another failure to the mix.)
@@ -714,9 +714,10 @@ class GDBServer(threading.Thread): elif b'FlashDone' in ops : # Only program if we received data. if self.flash_loader is not None: + try: # Write all buffered flash contents. self.flash_loader.commit() - + finally: # Set flash loader to None so that on the next flash command a new # object is used...
Raise TypeError when scalar value is passed to add_column. Closes
@@ -1942,9 +1942,13 @@ class Table: col = self._convert_data_to_col(col, name=name, copy=copy, default_name=default_name) + # Assigning a scalar column to an empty table should result in an + # exception (see #3811). + if col.shape == () and len(self) == 0: + raise TypeError("Empty table cannot have column set to scala...
Update working-at-mattermost.rst Added MatterCon 2019 video Updated "country" to be "region/country" per things everyone must know
@@ -39,6 +39,7 @@ This gives us tremendous advantages: Also, we have Meetups around the world to deepen and broaden our relationships and build the future of our products together: +* Take a look at the `MatterCon 2019 (held in Punta Cana, Dominican Republic) video <https://youtu.be/pMySvCfy7Bw>`_. * Check out `MatterC...
add test for fori_loop index batching fixes
@@ -312,6 +312,13 @@ class LaxControlFlowTest(jtu.JaxTestCase): expected = (onp.array([10, 11]), onp.array([20, 20])) self.assertAllClose(ans, expected, check_dtypes=False) + def testForiLoopBatchedIssue1190(self): + f = lambda x: lax.fori_loop(0, 4, lambda _, x: x + 1, x) + jaxpr = api.make_jaxpr(api.vmap(f))(np.arang...
(docs) restrict PrevNext to only work within top-level sections Test Plan: docs Reviewers: yuhan, sashank
import { useRouter } from 'next/router'; -import Link from 'next/link'; -import { flatten } from 'utils/treeOfContents/flatten'; +import { flatten, TreeLink } from 'utils/treeOfContents/flatten'; import { useTreeOfContents } from 'hooks/useTreeOfContents'; import { VersionedLink } from './VersionedComponents'; @@ -8,23...
don't return None Returning None means 'go to next router'
@@ -43,9 +43,12 @@ class MonolithRouter(object): def allow_migrate(db, app_label): + """ + :return: Must return a boolean value, not None. + """ if app_label == ICDS_REPORTS_APP: db_alias = get_icds_ucr_db_alias() - return db_alias and db_alias == db + return bool(db_alias and db_alias == db) elif app_label == SYNCLOGS...
test-run-dev: Delete commented-out code. We don't disable code by commenting it out -- that leaves a mess. We delete it. Remembering what the code was is what source control is for. This fixes "test-run-dev: Disable Nagios check." from a few weeks ago.
@@ -36,38 +36,11 @@ def start_server(logfile_name: str) -> Tuple[bool, str]: return failure, ''.join(datalog) -def test_nagios(nagios_logfile): - # type: (IO[str]) -> bool - ZULIP_DIR = os.path.join(TOOLS_DIR, '..') - API_DIR = os.path.join(ZULIP_DIR, 'api') - os.chdir(API_DIR) - subprocess.call(['./setup.py', 'install...
encode for py3 Fixes
@@ -30,6 +30,9 @@ import signal import select import logging +# Import salt libs +from salt.ext import six + mswindows = (sys.platform == "win32") try: @@ -566,6 +569,9 @@ class Terminal(object): try: if self.stdin_logger: self.stdin_logger.log(self.stdin_logger_level, data) + if six.PY3: + written = os.write(self.chil...
Added link to wduco repository I've added a direct link to wDUCO
@@ -244,7 +244,7 @@ Hashrate Calculators for AVR/ESP platforms are available in the [Useful tools br * [@Tech1k](https://github.com/Tech1k/) - kristian@beyondcoin.io * **Contributors:** - * [@ygboucherk](https://github.com/ygboucherk) (wDUCO dev) + * [@ygboucherk](https://github.com/ygboucherk) ([wDUCO](https://github....
Wait for element to be visible before getting text The original version of these tests appeared to be racey.
@@ -77,7 +77,7 @@ class SmallListTest(SeleniumTestCase): "&denom=total_list_size&selectedTab=summary" ) ) - warning = self.find_by_xpath("//div[contains(@class, 'toggle')]/a") + warning = self.find_visible_by_xpath("//div[contains(@class, 'toggle')]/a") self.assertIn("Remove", warning.text) xlabels = self.find_by_xpath...
fix: changed logger.error --> logger.exception in hope to fix missing tracebacks
@@ -322,7 +322,7 @@ class Task: self.logger.info(f"Running '{self.name}'", extra={"action": "run"}) def log_failure(self): - self.logger.error(f"Task '{self.name}' failed", exc_info=True, extra={"action": "fail"}) + self.logger.exception(f"Task '{self.name}' failed", extra={"action": "fail"}) def log_success(self): sel...
added route_linewidth additional parameter add in plot_graph_routes the possibility to pass route_linewidth as list of different linewidth one for each route to be plotted
@@ -319,7 +319,7 @@ def plot_graph_route( return fig, ax -def plot_graph_routes(G, routes, route_colors="r", **pgr_kwargs): +def plot_graph_routes(G, routes, route_colors="r", route_linewidth=4, **pgr_kwargs): """ Plot several routes along a graph. @@ -331,6 +331,8 @@ def plot_graph_routes(G, routes, route_colors="r", ...
[Chore] Fix ubuntu rules file for systemd Problem: Supplied systemd service should be disabled by default. However, for some reason, they are enabled automatically after installation for baker, accuser and tx-node packages. Solution: Be very explicit about systemd installation in debhelper rules.
@@ -195,8 +195,8 @@ def mk_dh_flags(package): def gen_systemd_rules_contents(package, binaries_dir=None): - override_dh_install_init = "override_dh_installinit:\n" package_name = package.name.lower() + units = set() for systemd_unit in package.systemd_units: if systemd_unit.instances is None: if systemd_unit.suffix is ...
AbstractNodeData.arguments: update docstring TN:
@@ -771,15 +771,8 @@ class AbstractNodeData(object): which take at least a mandatory Self argument and return the corresponding data. - This is a list that describes all other arguments. For each argument, - this contains a tuple for: - - * the name of the argument; - * its type; - * its default value as a string, or N...
BUG: fixed bug in extracting type Fixed bug to extract type instead of numpy class `dtype`, which wraps `type`.
@@ -1598,7 +1598,7 @@ class Instrument(object): """ # Get the data type - data_type = data.dtype + data_type = data.dtype.type # Check for object type if data_type != np.dtype('O'):
Temporarily pause Python 3.10 CI tests due to scikit-learn issues with Windows Scikit-learn is planning to add Python 3.10 support in the middle of December 2021, according to scikit-learn/scikit-learn#21882
@@ -76,7 +76,7 @@ jobs: needs: [cache_nltk_data, cache_third_party] strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.7', '3.8', '3.9'] os: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.os }}
fix: Add Currency Yemeni Rial Closes issue
}, "Yemen": { "code": "ye", + "currency": "YER", "currency_fraction": "Fils", "currency_fraction_units": 100, + "smallest_currency_fraction_value": 0.01, + "currency_name": "Yemeni Rial", "currency_symbol": "\ufdfc", "number_format": "#,###.##", "timezones": [