message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
config_service: Removed hotlist from feedback link.
Since our hotlist is not publicly writable, we need to remove the hotlist
from the feedback link
Review-Url: | crdx('setFeedbackButtonLink', 'https://bugs.chromium.org/p/chromium/issues/' +
'entry?cc=cwpayton@google.com,%20ayanaadylova@google.com,' +
'%20hinoka@chromium.org,%20sergeyberezin@chromium.org' +
- '&components=Infra%3EPlatform%3EConfig&labels=Infra-DX&blocking=730832' +
- '&hotlists=luci-config');
+ '&components=Infr... |
Add/refactor unit tests for the CloudFormation API wrapper
SIM:
CR: | # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
-import unittest
import mock
+from pytest_socket import disable_socket, enable_socket
+import unittest
-from ... |
Commentary about size constraints on TensorImpl.
Summary:
Pull Request resolved: | @@ -1311,4 +1311,50 @@ protected:
bool reserved_ = false;
};
+
+// Note [TensorImpl size constraints]
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// Changed the size of TensorImpl? If the size went down, good for
+// you! Adjust the documentation below and the expected size.
+// Did it go up? Read on...
+//
+// Struct size... |
Fix
Turns out the issue was in the way lambdas work internally upon having an empty stack. | @@ -229,9 +229,13 @@ def _safe_apply(function, *args):
'''
args = reverse(args)
if function.__name__ == "_lambda":
- return function(list(args), len(args))[-1]
+ ret = function(list(args), len(args))
+ if len(ret): return ret[-1]
+ else: return []
elif function.__name__.startswith("FN_"):
- return function(list(args))[... |
Made js-console work with windows
Got rid of the condition where the process is considered to be done when stdout or stderr outputs | @@ -214,10 +214,6 @@ def execjs(js, jslib, timeout=None, force_docker_pull=False, debug=False, js_con
error_thread.daemon=True
error_thread.start()
- # mark if output/error is ready
- output_ready=False
- error_ready=False
-
while (len(wselect) + len(rselect)) > 0:
try:
if nodejs.stdin in wselect:
@@ -227,29 +223,16 @@... |
Bugfix: close() would sometimes hang for RtMidi input ports.
This change was somehow not included in the earlier commit that claimed to
have fixed this. | @@ -169,6 +169,7 @@ class Port(ports.BaseIOPort):
self._midiin.ignore_types(False, False, True)
self._queue = queue.Queue()
self._parser = Parser()
+ if self.callback is not None:
self.callback = callback
if is_output:
|
Minor: add static_assert to Pickler buffering.
Summary:
Pull Request resolved:
This is followup on the pickler buffering change.
ghstack-source-id:
Test Plan: This just adds an static assert, hence if it builds, we're good. | @@ -201,12 +201,14 @@ class Pickler {
// the left of a '::', its type cannot be deduced by the compiler so one must
// explicitly instantiate the template, i.e. push<int>(int) works, push(int)
// does not)
+ static constexpr size_t kBufferSize = 256;
template <typename T>
void push(typename std::common_type<T>::type va... |
Added thresholding option to correlation mode
Relates to | @@ -1463,7 +1463,7 @@ class UHFQC_correlation_detector(UHFQC_integrated_average_detector):
def __init__(self, UHFQC, AWG=None, integration_length=1e-6,
nr_averages=1024, rotate=False, real_imag=True,
channels=[0, 1], correlations=[(0, 1)],
- seg_per_point=1, single_int_avg=False,
+ seg_per_point=1, single_int_avg=False... |
Update server requirements
Via and | @@ -31,9 +31,9 @@ You can deploy and run TiDB on the 64-bit generic hardware server platform in th
| Component | CPU | Memory | Local Storage | Network | Instance Number (Minimum Requirement) |
| :------: | :-----: | :-----: | :----------: | :------: | :----------------: |
-| TiDB | 16 core+ | 16 GB+ | SAS, 200 GB+ | G... |
Add --self option to tlmgr update command
Also updates tlmgr infrastructure | @@ -88,4 +88,4 @@ a good idea to periodically update the TeXLive packages by running:
.. code-block:: shell
- /opt/texlive/bin/x86_64-linux/tlmgr update --all
+ /opt/texlive/bin/x86_64-linux/tlmgr update --self --all
|
Add reviewers filter
Only includes those that have left a review | @@ -77,6 +77,12 @@ def get_round_leads(request):
return User.objects.filter(round_lead__isnull=False).distinct()
+def get_reviewers(request):
+ """ All users that have left a review """
+ User = get_user_model()
+ return User.objects.filter(review__isnull=False).distinct()
+
+
class Select2CheckboxWidgetMixin(filters.F... |
fix(cz/conventional_commits): optionally expect '!' right before ':' in schema_pattern
Closes: | @@ -178,8 +178,8 @@ class ConventionalCommitsCz(BaseCommitizen):
def schema_pattern(self) -> str:
PATTERN = (
- r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)!?"
- r"(\(\S+\))?:(\s.*)"
+ r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)"
+ r"(\(\S+\))?!?:(\s.*)"
)
return PATTE... |
Fixing TTSN unit tests
got lost in rebase | @@ -796,8 +796,8 @@ Caffe2Ops Caffe2Backend::CreateMatMul(OnnxNode* onnx_node, int opset_version) {
//==============================================
// Rest of the member funtions for Caffe2Backend
//==============================================
-std::unordered_set<std::string> Caffe2Backend::AllNamesInGraph(
- const ... |
Change it back to checking just the statuses but have it write out the
result so people can see the reason in case of failures | @@ -91,6 +91,9 @@ def test_checks_api(dcos_api_session):
# check that the returned statuses of each check is 0
expected_status = {c: 0 for c in checks.keys()}
response_status = {c: v['status'] for c, v in results['checks'].items()}
+
+ # print out the response for debugging
+ logging.info('Response: {}'.format(results)... |
Point preview statsd at tools
We are running a statsd exporter on tools to collect all our statsd
metrics for scraping by Prometheus
Update preview to point there instead of at the local one which has
issues with redeployment and DNS changing | @@ -70,7 +70,7 @@ applications:
AWS_SECRET_ACCESS_KEY: '{{ AWS_SECRET_ACCESS_KEY }}'
{% if environment == 'preview' %}
- STATSD_HOST: "notify-statsd-exporter-{{ environment }}.apps.internal"
+ STATSD_HOST: "statsd.notify.tools"
STATSD_PREFIX: ""
{% else %}
STATSD_HOST: "statsd.hostedgraphite.com"
|
Fix crash in WaitingPeers.put_nowait() when peer is not alive
Closes: | @@ -16,6 +16,7 @@ from eth_utils import (
)
from p2p.abc import CommandAPI
+from p2p.exceptions import PeerConnectionLost
from p2p.exchange import PerformanceAPI
from trinity.protocol.common.peer import BaseChainPeer
@@ -79,7 +80,11 @@ class WaitingPeers(Generic[TChainPeer]):
return sum(scores) / len(scores)
def put_no... |
Add FIXME
Summary: Add a cross-reference to the subselection Github issues
Test Plan: N/A
Reviewers: schrockn, alangenfeld, prha | @@ -208,6 +208,11 @@ def multiprocess_executor(init_context):
check_cross_process_constraints(init_context)
+ # ExecutionTargetHandle.get_handle returns an ExecutionTargetHandleCacheEntry, which is a tuple
+ # (handle, solid_subset). Right now we are throwing away the solid_subset that we store in the
+ # cache -- this... |
Allow the use of sub-batching when using regularizers
The regularizer is reset after every sub-batch. This frees the computational graph and allow a new backward pass for the next sub-batch. | @@ -234,6 +234,9 @@ class TrainingLoop(ABC):
loss.backward()
current_epoch_loss += loss.item()
+ # reset the regularizer to free the computational graph
+ self.model.regularizer.reset()
+
# update parameters according to optimizer
self.optimizer.step()
|
Adds enable_old_python_results_unpickling() function.
Updates the module-name-manipulation that is needed for old-version
Results pickles to load and gathers this logic into a new
enable_old_python_results_unpickling function which now must be
called before old-version Results pickles will load. | @@ -400,14 +400,16 @@ class Results(object):
' Please update this call with one to:\n'
' pygsti.report.create_general_report(...)\n'))
-class ResultOptions(object):
- """ Unused. Exists for sole purpose of loading old Results pickles """
- pass
+
+def enable_old_python_results_unpickling():
#Define empty ResultCache cl... |
ExplicitConsdes: call dtors if marker before exit
We need to make sure the called function is not _exit or _Exit,
as atexit-registered functions are not called in these cases. | @@ -204,12 +204,29 @@ class ExplicitConsdes : public ModulePass {
if (!called)
continue;
- if (isMarkExit(called)) {
- dtorsBefore.push_back(call);
- }
+ if (!isExit(called))
+ continue;
- if (isExit(called) && !hasMarkExit) {
+ if (!hasMarkExit) {
dtorsBefore.push_back(call);
+ } else {
+ // look for __INSTR_mark_exit... |
[batch] handle events with no operation
These are always delete operations that have failed due to the worker not
existing. | @@ -556,7 +556,13 @@ journalctl -u docker.service > dockerd.log
log.warning(f'unknown event resource type {resource_type}')
return
- operation_started = event['operation'].get('first', False)
+ operation = event.get('operation')
+ if operation is None:
+ # occurs when deleting a worker that does not exist
+ log.info(f'... |
Disable deploy pipeline
Summary: Disabling this until we're ready to consume the artifacts produced by the Scala builds
Test Plan: n/a
Reviewers: max, alangenfeld, prha, schrockn | @@ -523,10 +523,6 @@ def coverage_step():
)
-def deploy_trigger_step():
- return {'label': 'Deploy Trigger', 'trigger': 'deploy', 'branches': 'master', 'async': True}
-
-
def pylint_steps():
res = []
@@ -651,9 +647,7 @@ def releasability_tests():
steps += releasability_tests()
if DO_COVERAGE:
- steps += [wait_step(), c... |
Added missing ESP f/w for Kona EV
Stoteler##4896 DongleID/route 9e02651652ef6c6f|2021-02-15--10-15-28 | @@ -339,7 +339,10 @@ FW_VERSIONS = {
(Ecu.transmission, 0x7e1, None): [b'\xf1\x816U2VE051\x00\x00\xf1\x006U2V0_C2\x00\x006U2VE051\x00\x00DOS4T16NS3\x00\x00\x00\x00', ],
},
CAR.KONA_EV: {
- (Ecu.esp, 0x7D1, None): [b'\xf1\x00OS IEB \r 105\x18\t\x18 58520-K4000\xf1\xa01.05', ],
+ (Ecu.esp, 0x7D1, None): [
+ b'\xf1\x00OS ... |
Update smokeloader.txt
>nymaim | @@ -1567,12 +1567,6 @@ privacy-tools-for-you-802.com
privacy-tools-for-you-900.com
privacy-tools-for-you-901.com
-# Reference: https://www.virustotal.com/gui/file/0003d39fdeaf2d242c347bc8bf5d8bebe911897349e1406cbb6e219d5c831cd7/detection
-
-http://107.182.129.235
-http://171.22.30.106
-http://85.31.46.167
-
# Generic t... |
NL Capacity Update
No source update required | ]
],
"capacity": {
- "biomass": 1243,
- "coal": 4631,
- "gas": 15570,
+ "biomass": 1280,
+ "coal": 4000,
+ "gas": 15496,
+ "geothermal": 0,
"hydro": 38,
"hydro storage": 0,
"nuclear": 486,
- "solar": 3937,
- "wind": 4626
+ "oil": 0,
+ "solar": 5710,
+ "wind": 4930
},
"contributors": [
"https://github.com/corradio",
- "... |
test_signup: Attach prereg_user to confirmation obj.
Tests attached a UserProfile to confirmation objects,
which is not very valid as this is the only place
where this is done. Now we attach PreregUser to
the confirmation object, making the tests correct. | @@ -1467,8 +1467,12 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
# make sure users can't take a valid confirmation key from another
# pathway and use it with the invitation url route
def test_confirmation_key_of_wrong_type(self) -> None:
- user = self.example_user('hamlet')
- url ... |
fix pytorch mobile build
Summary:
Pull Request resolved:
add a missing file and fix a std::to_string call.
Test Plan: buck build //xplat/caffe2:torchAndroid#android-armv7,shared | @@ -385,7 +385,7 @@ std::string mangleMethodName(
for (size_t method_idx = 0;; method_idx++) {
auto mangled = method_name;
if (method_idx != 0) {
- mangled += std::to_string(method_idx);
+ mangled += c10::to_string(method_idx);
}
bool found = false;
for (Function* fn : mod_type->methods()) {
|
1.1.5 hotfix changelog
Summary:
Changelog for an OSS release that includes the partitions page fix. | # Changelog
+# 1.1.5 (core) / 0.17.5 (libraries)
+
+### Bugfixes
+
+- [dagit] Fixed an issue where the Partitions tab sometimes failed to load for asset jobs.
+
# 1.1.4 (core) / 0.17.4 (libraries)
### Community Contributions
|
Add MockAsyncWebhook to mock `discord.Webhook` objects
I have added a mock type to mock `discord.Webhook` instances. Note
that the current type is specifically meant to mock webhooks that
use an AsyncAdaptor and therefore has AsyncMock/coroutine mocks for
the "maybe-coroutine" methods specified in the `discord.py` docs... | @@ -502,3 +502,24 @@ class MockReaction(CustomMockMixin, unittest.mock.MagicMock):
self.message = kwargs.get('message', MockMessage())
self.users = AsyncIteratorMock(kwargs.get('users', []))
+
+webhook_instance = discord.Webhook(data=unittest.mock.MagicMock(), adapter=unittest.mock.MagicMock())
+
+
+class MockAsyncWebh... |
Rewrite TestCompleter to not inherit from BaseControllerTest
SIM:
CR: | # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import os
+import shutil
import mock
-
-from .basecontrollertest import BaseControllerTest
+from pytest_sock... |
fix recognition on stages not consuming AP
close | @@ -31,7 +31,7 @@ def recognize(img):
logger.logtext('ccoeff=%f' % coef)
consume_ap = coef > 0.9
- apimg = img.crop((100 * vw - 22.917 * vh, 2.917 * vh, 100 * vw, 8.194 * vh)).convert('L')
+ apimg = img.crop((100 * vw - 21.019 * vh, 2.917 * vh, 100 * vw, 8.194 * vh)).convert('L')
reco_Noto, reco_Novecento = load_data()... |
mypy fix
Summary: Fix race condition Set -> AbstractSet for resource events
Test Plan: mypy
Reviewers: alangenfeld, sandyryza | import logging
import os
from enum import Enum
-from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, Set, Union, cast
+from typing import TYPE_CHECKING, AbstractSet, Any, Dict, List, NamedTuple, Optional, Union, cast
from dagster import check
from dagster.core.definitions import (
@@ -776,7 +776,7 @... |
Mark ParamType.fail() as NoReturn
This function just raises a click.BadParameter exception with the supplied arguments. | @@ -351,7 +351,7 @@ class _ParamType:
def split_envvar_value(self, rv: str) -> List[str]:
...
- def fail(self, message: str, param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> None:
+ def fail(self, message: str, param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> NoReturn:
...
|
simplify _int_or_vec helper function
This patch reduces the number of arguments of the _int_or_vec helper function
by providing f as a bound method. | @@ -3405,9 +3405,9 @@ def dotarg(__argname: str, *arrays: IntoArray, shape: Tuple[int, ...] = (), dtyp
# BASES
-def _int_or_vec(f, self, arg, argname, nargs, nvals):
+def _int_or_vec(f, arg, argname, nargs, nvals):
if isinstance(arg, numbers.Integral):
- return f(self, int(numeric.normdim(nargs, arg)))
+ return f(int(n... |
Add some metrics for pghoard base backup
backup duration
backup completed
backup failed
backup completed
backup failed | @@ -145,6 +145,7 @@ class PGBaseBackup(Thread):
def run(self):
try:
basebackup_mode = self.site_config["basebackup_mode"]
+ start_time = time.monotonic()
if basebackup_mode == BaseBackupMode.basic:
self.run_basic_basebackup()
elif basebackup_mode == BaseBackupMode.local_tar:
@@ -159,6 +160,7 @@ class PGBaseBackup(Threa... |
Unify OpenMP calibration code
Remove the duplication, and simplify the branching logic so it's easier
to read.
Also OpenMP is written like that, not as OPENMP in all-caps. | @@ -65,10 +65,10 @@ else:
os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
import platform
-from .utilities import _blas_info
+from qutip.utilities import _blas_info
qutip.settings.eigh_unsafe = (_blas_info() == "OPENBLAS" and
platform.system() == 'Darwin')
-del platform
+del platform, _blas_info
# -------------------------... |
bumped vault version to latest;
git commit -m | FROM alpine
-ENV VAULT_VERSION 0.6.2
+ENV VAULT_VERSION 0.7.0
ADD https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip vault.zip
RUN apk add --update unzip openssl ca-certificates curl jq && \
|
Add time_line_operator to notifications, enable printing of CPE estimates in stderr log
Summary: Add time_line_operator to notifications, enable printing of IPS and Direct scores in stderr log | @@ -267,6 +267,9 @@ class DoublyRobustEstimator:
)
direct_method_score = float(torch.mean(direct_method_values))
+ logger.info(
+ f"Normalized Direct method score = {direct_method_score * normalizer}"
+ )
direct_method_std_error = bootstrapped_std_error_of_mean(
direct_method_values.squeeze(),
sample_percent=hp.bootstr... |
handle scenario optimizing in proforma/views.py
was returning incomplete proforma if scenario was still optimizing | @@ -55,6 +55,9 @@ def proforma(request, run_uuid):
try:
scenario = ScenarioModel.objects.get(run_uuid=run_uuid)
+ if scenario.status.lower() == "optimizing...":
+ return HttpResponse("Problem is still solving. Please try again later.", status=425) # too early status
+
try: # see if Proforma already created
pf = ProForm... |
feat(stock_zh_index_value_csindex): add stock_zh_index_value_csindex interface
add stock_zh_index_value_csindex interface | @@ -376,7 +376,7 @@ def stock_zh_a_minute(
if __name__ == "__main__":
- stock_zh_a_daily_hfq_df_one = stock_zh_a_daily(symbol="sh603843", start_date="20171103", end_date="20210908", adjust="")
+ stock_zh_a_daily_hfq_df_one = stock_zh_a_daily(symbol="sh600308", start_date="20171103", end_date="20211021", adjust="qfq")
p... |
Reduce priority for max gpu test
Reduce priority of max gpu provision test to 3 | @@ -110,10 +110,10 @@ class GpuTestSuite(TestSuite):
""",
timeout=TIMEOUT,
- # min_gpu_count is 8 since it is currently the max GPU count supported
- # in Azure, 'Standard_ND96asr_v4'
+ # min_gpu_count is 8 since it is current
+ # max GPU count available in Azure
requirement=simple_requirement(min_gpu_count=8),
- prior... |
config_util improvement
* Minor improvement to config_util
1. Environment varible for not using gin. gin's wrapper is very complicated, which can make debugging unfriendly and slow down the execution.
2. Error report for misuse of alf.config()
* comment
* Fix message | @@ -83,6 +83,8 @@ def config(prefix_or_dict, mutable=True, raise_if_used=True, **kwargs):
**kwargs: only used if ``prefix_or_dict`` is a str.
"""
if isinstance(prefix_or_dict, str):
+ assert len(kwargs) > 0, ("**kwargs should be provided when "
+ "'prefix_or_dict' is a str")
prefix = prefix_or_dict
configs = dict([(pre... |
Stop trying to use pytest-xdist when using pytest-cov
It works fine for me on my Mac, but it doesn't seem to work right on either TravisCI or AppVeyor.
It appears to calculate the code coverage incorrectly when using pytest-xdist. | @@ -12,11 +12,9 @@ deps =
pyperclip
pytest
pytest-cov
- pytest-xdist
six
commands =
- py.test -v -n2 --cov=cmd2 --basetemp={envtmpdir} {posargs}
- {envpython} examples/example.py --test examples/exampleSession.txt
+ py.test -v --cov=cmd2 --basetemp={envtmpdir} {posargs}
codecov
[testenv:py33]
@@ -57,11 +55,9 @@ deps =
... |
Don't send empty dict on shutdown
Fixes | @@ -148,10 +148,6 @@ class Request:
r["jsonrpc"] = "2.0"
r["id"] = id
r["method"] = self.method
- if self.params is not None:
- r["params"] = self.params
- else:
- r["params"] = dict()
return r
|
Updated elmah-log-file.yaml
Updated redirect, description and reference | @@ -2,15 +2,24 @@ id: elmah-log-file
info:
name: elmah.axd Disclosure
- author: shine
+ author: shine, idealphase
severity: medium
+ description: |
+ ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET we... |
[Holidays] Check for future month of current year
Advanced error handling | @@ -37,7 +37,9 @@ class Holidays:
"Use {}holidays setkey to set API key.".format(ctx.prefix)))
return
if not self.config["premiumkey"] \
- and month == int(datetime.now().strftime('%m')) or year > int(datetime.now().strftime('%Y')):
+ and month == int(datetime.now().strftime('%m')) or \
+ year > int(datetime.now().strf... |
Implemented some more commands
But I gotta figure out how to vectorise them without explicitly vectorising them | @@ -278,6 +278,9 @@ class Stack(list):
def __mult__(self, rhs):
return self.contents * rhs
+ def __iter__(self):
+ return iter(self.contents)
+
def do_map(self, fn):
temp = []
obj = self.pop()
@@ -400,8 +403,8 @@ def orderless_range(a, b, lift_factor=0):
def summate(item):
x = as_iter(item)
result = 0
- for _ in x:
- r... |
chore: update readme slogan
Making coherence for brand slogan | <img src="https://github.com/jina-ai/jina/blob/master/.github/logo-only.gif?raw=true" alt="Jina banner" width="200px">
</p>
<p align="center">
-The easiest way to build neural search on the cloud
+An easier way to build neural search in the cloud
</p>
<br>
|
Update new password prompt
No longer prompts for new password if --new_password parameter is used | @@ -166,7 +166,7 @@ def init_cmdline(config_options, wallet_path, server, *, config: 'SimpleConfig')
config_options['password'] = config_options.get('password') or password
- if cmd.name == 'password':
+ if cmd.name == 'password' and 'new_password' not in config_options:
new_password = prompt_password('New password:')
... |
[batch] always use throttler to delete pods
Without this fix, we almost never release the semaphore | @@ -670,7 +670,7 @@ class Job:
self._state = new_state
- await self._delete_pod()
+ await app['pod_throttler'].delete_pod(self)
await self._delete_pvc()
await self.notify_children(new_state)
|
Change submodules to use https instead of git
* This should be easier to get through proxies and work for
more people according to Github. | [submodule "tests/CPython26"]
path = tests/CPython26
- url = git@github.com:Nuitka/Nuitka-CPython-tests
+ url = https://github.com/Nuitka/Nuitka-CPython-tests.git
branch = CPython26
[submodule "tests/CPython27"]
path = tests/CPython27
- url = git@github.com:Nuitka/Nuitka-CPython-tests
+ url = https://github.com/Nuitka/... |
Fixed typo in vm.args example
I think in the vm.args example the line with `-kernel inet_dist_listen_max 9100` should in fact be `-kernel inet_dist_listen_min 9100` | @@ -127,7 +127,7 @@ and ``-kernel inet_dist_listen_max 9200`` like below:
-name ...
-setcookie ...
...
- -kernel inet_dist_listen_max 9100
+ -kernel inet_dist_listen_min 9100
-kernel inet_dist_listen_max 9200
.. _cluster/setup/wizard:
|
Run pyright as part of the CI process
This doesn't do verifytypes yet due to a bug in Pyright | @@ -41,9 +41,7 @@ jobs:
- name: Run pyright
run: |
- # It is OK for the types to not pass at this stage
- # We are just running it as a quick reference check
- pyright || echo "Type checking did not pass"
+ pyright
- name: Run black
if: ${{ always() && steps.install-deps.outcome == 'success' }}
|
Fixed patch version
This should have been bumped _before_ 0.60.12.1 was tagged. Not sure if we want to force re-tag or release 0.60.12.2 (making this commit a bit silly) | @@ -50,7 +50,7 @@ import distutils.dir_util
gafferMilestoneVersion = 0 # for announcing major milestones - may contain all of the below
gafferMajorVersion = 60 # backwards-incompatible changes
gafferMinorVersion = 12 # new backwards-compatible features
-gafferPatchVersion = 0 # bug fixes
+gafferPatchVersion = 1 # bug f... |
Fix misnamed variable in view_file template
h/t | userId: ${ user['id'] | sjson, n },
userName: ${ user['fullname'] | sjson, n },
userUrl: ${ ('/' + user['id'] + '/') if user['id'] else None | sjson, n },
- userProfileImage: ${ urls['profile_image_url'].replace('&', '&') | sjson, n }
+ userProfileImage: ${ urls['profile_image'].replace('&', '&') | sjson, n }
}... |
test: xfailed TaskExecutable termination. Bug
needs to be fixed. | @@ -254,7 +254,7 @@ def test_task_depend_success(tmpdir, cls, expected):
],
"2020-01-01 07:30",
False,
- id="Don't run (terminated)"),
+ id="Don't run (terminated)", marks=pytest.mark.xfail(reason="BUG: termination should correspond to failure")),
pytest.param(
# Termination is kind of failing but retry is not applicab... |
Fix virt.pool_running state documentation
virt.pool_running needs the source to be a dictionary, which the
documentation was not reflecting. Along the same lines the source hosts
need to be a list, adjust the example to show it. | @@ -744,11 +744,11 @@ def pool_running(name,
- owner: 1000
- group: 100
- source:
- - dir: samba_share
- - hosts:
- one.example.com
- two.example.com
- - format: cifs
+ dir: samba_share
+ hosts:
+ - one.example.com
+ - two.example.com
+ format: cifs
- autostart: True
'''
|
Remove NVCR.io workaround
Now that we have knative 0.7 the workaround is no longer needed! | 2. Your cluster's Istio Ingress gateway must be network accessible.
3. Your cluster's Istio Egresss gateway must [allow Google Cloud Storage](https://knative.dev/docs/serving/outbound-network-access/)
-
-> Knative is not able to resolve containers from the NVIDIA container registry.
-To work around this you need to ski... |
Exposing NeutronDhcpOvsIntegrationBridge
Using this, users can assign already available parameter
ovs_integration_bridge in dhcp_agent.ini | @@ -84,10 +84,15 @@ parameters:
type: string
description: Specifies the default CA cert to use if TLS is used for
services in the internal network.
+ NeutronDhcpOvsIntegrationBridge:
+ default: ''
+ type: string
+ description: Name of Open vSwitch bridge to use
conditions:
service_debug_unset: {equals: [{get_param: Neu... |
Fix language for sphinx 5.0
As per | @@ -93,7 +93,7 @@ release = bluesky.__version__
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
-language = None
+language = "en"
# There are two options for replacing |today|: either, you set today to some
# non-false value, ... |
Fix line endings in windows machine
On windows machines the default line endings are \r\n instead of \n. This causes code to fail in the filterPair function. Fix details here | @@ -250,7 +250,7 @@ conversations = loadConversations(os.path.join(corpus, "movie_conversations.txt"
# Write new csv file
print("\nWriting newly formatted file...")
with open(datafile, 'w', encoding='utf-8') as outputfile:
- writer = csv.writer(outputfile, delimiter=delimiter)
+ writer = csv.writer(outputfile, delimite... |
Update Tezos sources
Problem: yet another Tezos version was released.
We need to bump the revisions used.
Solution: updated versions for Tezos sources. | "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"tezos": {
- "ref": "refs/tags/v9.6",
+ "ref": "refs/tags/v9.7",
"repo": "https://gitlab.com/tezos/tezos",
- "rev": "af8891d9a11fe9e96dd4e0d6a54f095ca4d6f23b",
+ "rev": "853629c2c4db0003b073cce0dddbfb69e73d3275",
"type": "git"
}
}
|
Updated time widget to not show today icon
This doesn't do anything for time-only widgets. | @@ -761,7 +761,7 @@ hqDefine("cloudcare/js/form_entry/entries", function () {
var d = moment(date, self.clientFormat);
return d.isValid() ? d : null;
},
- }));
+ }, self.extraOptions));
self.$picker.on("dp.change", function (e) {
if (!e.date) {
self.answer(Const.NO_ANSWER);
@@ -785,6 +785,9 @@ hqDefine("cloudcare/js/fo... |
adapting caffe2 operator docs generator to pytorch url
Summary: Pull Request resolved: | @@ -54,8 +54,8 @@ class GHMarkdown(Markdown):
def getCodeLink(formatter, schema):
formatter = formatter.clone()
- path = os.path.join("caffe2", os.path.relpath(schema.file, "caffe2"))
- schemaLink = ('https://github.com/caffe2/caffe2/blob/master/{path}'
+ path = os.path.relpath(schema.file, "caffe2")
+ schemaLink = ('h... |
linopt: For MILP unit commitment GPLK should return "optimal"
Not "integer optimal". This is consistent with pyomo output. | @@ -623,8 +623,9 @@ def run_and_read_glpk(n, problem_fn, solution_fn, solver_logfile,
termination_condition = info.Status.lower().strip()
objective = float(re.sub('[^0-9\.\+\-]+', '', info.Objective))
- if termination_condition == "optimal":
+ if termination_condition in ["optimal","integer optimal"]:
status = "ok"
+ t... |
Opt out of nextjs telemetry
Fixes | @@ -145,6 +145,8 @@ FETCH_FEES = false
DISABLE_LINKS = true
DISABLE_LNMARKETS = true
NO_VERSION_CHECK = true
+# https://nextjs.org/telemetry#how-do-i-opt-out
+NEXT_TELEMETRY_DISABLED=1
# -----------
# Account Configs
|
[Concat] fix rtlsim by doing no order reversal during packing
this may be a problem in the future | @@ -132,16 +132,12 @@ class Concat(HLSCustomOp):
idt = self.get_input_datatype()
total_elems = self.get_total_elems()
total_bw = idt.bitwidth() * total_elems
- lbit = 0
- hbit = total_bw - 1
for (i, elems) in enumerate(elems_per_stream):
bw = idt.bitwidth() * elems
- lbit = hbit - bw + 1
inp_stream = "hls::stream<ap_ui... |
Update for ElGoonishShive and ElGoonishShiveNP
Strip no longer supports ID numbers after May 21 site revamp per Dan Shive. Code here switched to ComicControl. Tested and verified locally. (fixes | @@ -11,7 +11,7 @@ from re import compile, escape, IGNORECASE
from ..helpers import indirectStarter, xpath_class
from ..scraper import _BasicScraper, _ParserScraper
from ..util import tagre
-from .common import _WordPressScraper, _WPNavi, WP_LATEST_SEARCH
+from .common import _ComicControlScraper, _WordPressScraper, _WP... |
clarify $db/_security section
- point out that values are optional
- add curl example
- language fixes | functionality.
If both the names and roles fields of either the admins or members
- properties are empty arrays, it means the database has no admins or
- members.
+ properties are empty arrays, or are not existent, it means the database
+ has no admins or members.
Having no admins, only server admins (with the reserved... |
Updates for SSO rebranding
Updates to the `credentials.rst` file to incorporate changes required by the SSO rebranding campaign.
Also updated the build settings to use 2022 as the copyright year. | @@ -51,7 +51,7 @@ master_doc = 'index'
# General information about the project.
project = 'Boto3 Docs'
-copyright = '2021, Amazon Web Services, Inc'
+copyright = '2022, Amazon Web Services, Inc'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in variou... |
str -> StringSource for azure compute log manager config
Summary: As the title.
Test Plan: Existing tests
Reviewers: alangenfeld | import os
from contextlib import contextmanager
-from dagster import Field, check, seven
+from dagster import Field, StringSource, check, seven
from dagster.core.storage.compute_log_manager import (
MAX_BYTES_FILE_READ,
ComputeIOType,
@@ -88,11 +88,11 @@ def inst_data(self):
@classmethod
def config_type(cls):
return {
... |
fs: ssh: pass timeout to paramiko's connect()
Prior to this commit, DVC could hang indefinitely when connecting to
remote SSH filesystems. This should address this. | @@ -40,7 +40,9 @@ class SSHConnection:
host=host, **kwargs
)
)
- self.timeout = kwargs.get("timeout", 1800)
+
+ kwargs.setdefault("timeout", 1800)
+ self.timeout = kwargs["timeout"]
self._ssh = paramiko.SSHClient()
|
[MNT] temp MR to remove 2977 merge conflicts - part 3
Reverts sktime/sktime#4206, see there for explanation of the strategy to resolve the merge conflict with | "maintenance"
]
},
+ {
+ "login": "pranavvp16",
+ "name": "Pranav Prajapati",
+ "avatar_url": "https://avatars.githubusercontent.com/u/94780581?v=4",
+ "profile": "https://www.linkedin.com/in/pranav-prajapati-a5b413226/",
+ "contributions": [
+ "code",
+ "test"
+ ]
+ },
+ {
+ "login": "romanlutz",
+ "name": "Roman Lutz... |
Fix heatmap aug in ElasticTransformation
Fix for two errors in ElasticTransformation,
both affecting augmentation for heatmaps with
different sizes than the underlying images.
* Fix heatmap shape being read out incorrectly;
resulted in error.
* Fix generated heatmap arrays sometimes being
slightly below/above 0.0/1.0; ... | @@ -2046,7 +2046,7 @@ class ElasticTransformation(Augmenter):
# This may result in indices of moved pixels being different.
# To prevent this, we use the same image size as for the base images, but that
# requires resizing the heatmaps temporarily to the image sizes.
- height_orig, width_orig = heatmaps_i.arr_0to1
+ he... |
Add sort order field from Customize Form
* Add sort order field from Customize Form
fixes support issue WN-SUP25048
* Handle case when meta_sort_field is undefined | @@ -91,16 +91,12 @@ frappe.ui.SortSelector = Class.extend({
var me = this;
var meta = frappe.get_meta(this.doctype);
+ var { meta_sort_field, meta_sort_order } = this.get_meta_sort_field();
+
if(!this.args.sort_by) {
- if(meta.sort_field) {
- if(meta.sort_field.indexOf(',')!==-1) {
- parts = meta.sort_field.split(',')[... |
Ignore skip-magic-trailing-comma formatting with git blame
This adds a formatting commit to ignore when doing git blame. | @@ -9,3 +9,9 @@ cb6940a40141dba95cba84f5acc27acbeb65b17c
# Format cirq-google with latest version of black (#5160)
77fb93af5ebbb5bcf7f8a4dc3fd2fba0e827488c
+
+# Format cirq-google with skip-magic-trailing-comma (#5171)
+01a7cb94a90482557ac26b705adbb379e139a7b2
+
+# Format according to new black rules (#5259)
+27152c63c... |
Handle no common facade version
Ensure we handle issues where we can't find a common version of a
facade | @@ -651,9 +651,16 @@ class Connection:
# so in order to be compatible forwards and backwards we speak a
# common facade versions.
if name in client_facades:
+ try:
known = client_facades[name]['versions']
discovered = facade['versions']
version = max(set(known).intersection(set(discovered)))
+ except ValueError:
+ # th... |
[core/engine] handle single-module errors
instead of terminating the whole status bar when an error occurs, just
show a (truncated) error for that single widget.
this should also enable auto-recovery if the module returns to a "good"
state, but that hasn't been tested yet.
see and | @@ -38,6 +38,7 @@ class Module(object):
self.name = config.get("name", self.__module__.split(".")[-1])
self._config = config
self.id = self.name
+ self.error = None
self._next = int(time.time())
self._default_interval = 0
@@ -67,6 +68,12 @@ class Module(object):
if widget.name == name:
return widget
+ def errorWidget(s... |
ci: Remove unnecessary steps from production upgrade script.
This removes some steps which are no longer necessary to be run
in the production upgrade script. The steps were used due to
errors related to supervisor failing to restart which was resolved
in the commit | @@ -11,13 +11,12 @@ set -x
# need to do some preparatory steps. It is a goal to delete these
# steps.
-# Reinstall rabbitmq-server and supervisor.
+# Reinstall rabbitmq-server.
#
# * For rabbitmq-server, we likely need to do this to work around the
# hostname changing on reboot causing RabbitMQ to not boot.
-# * For su... |
ceph-iscsi: don't use bracket with trusted_ip_list
The trusted_ip_list parameter for the rbd-target-api service doesn't
support ipv6 address with bracket.
Closes: | - name: add mgr ip address to trusted list with dashboard - ipv6
set_fact:
- trusted_ip_list: '{{ trusted_ip_list }},{{ hostvars[item]["ansible_all_ipv6_addresses"] | ips_in_ranges(public_network.split(",")) | last | ipwrap }}'
+ trusted_ip_list: '{{ trusted_ip_list }},{{ hostvars[item]["ansible_all_ipv6_addresses"] | ... |
Add profile to ReportInterfaceFacts
HG--
branch : feature/microservices | @@ -103,6 +103,7 @@ class ReportFilterApplication(SimpleReport):
(
mo.name,
mo.address,
+ mo.profile_name,
iface
)
]
@@ -110,6 +111,6 @@ class ReportFilterApplication(SimpleReport):
return self.from_dataset(
title=self.title,
columns=[
- _("Managed Object"), _("Address"), _("Interface")
+ _("Managed Object"), _("Addres... |
downstream-ci: include the ocs version in the `latest-stable` tag
Builds that pass the acceptance tests will now be tagged as
`latest-stable-$ocs_version` instead of just `latest-stable`. | @@ -105,10 +105,11 @@ pipeline {
def registry_image = "${env.OCS_REGISTRY_IMAGE}"
// quay.io/rhceph-dev/ocs-registry:4.2-58.e59ca0f.master -> 4.2-58.e59ca0f.master
def registry_tag = registry_image.split(':')[-1]
- // tag ocs-registry container as 'latest-stable'
- build job: 'quay-tag-image', parameters: [string(name:... |
Formatting
[skip-ci] | @@ -28,7 +28,7 @@ spec:
spec:
containers:
- name: memtire
- image: 100.64.176.12:80/wca/memtier_benchmark:d3ca4bb06f80a8eb83de6116ce6b7c3abe7ca153
+ image: 100.64.176.12:80/wca/memtier_benchmark:5fcfe9599d4ddf7bb6ecde3361bba547a23a3626
command:
- bash
- -c
|
swarming_bot: silence IOError during time.sleep()
This happens when time.sleep() calls returns with '[Errno 4] Interrupted
function call' which gets converted to an IOError exception, as the host is
shutting down. | @@ -1319,6 +1319,7 @@ def host_reboot(message=None, timeout=None):
"""
# The shutdown process sends SIGTERM and waits for processes to exit. It's
# important to not handle SIGTERM and die when needed.
+ # TODO(maruel): We may want to die properly here.
signal.signal(signal.SIGTERM, signal.SIG_DFL)
deadline = time.time(... |
BUG: updated numpy version
Updated the numpy version to be specific. | @@ -18,7 +18,7 @@ jobs:
numpy_ver: "1.20"
os: ubuntu-latest
- python-version: "3.6.8"
- numpy_ver: "oldest-supported-numpy"
+ numpy_ver: "1.19.5"
os: "ubuntu-20.04"
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
|
Using html.unescape() instead of HTMLParser.unescape()
The unescape method is deprecated and will be removed in 3.5 | @@ -2,7 +2,7 @@ import re
from datetime import datetime, timedelta
from email.utils import formataddr
-from html.parser import HTMLParser
+from html import unescape
from django.conf import settings
from django.forms import ValidationError
@@ -242,8 +242,7 @@ def notify_about_activity_log(addon, version, note, perm_sett... |
Fix example for new_zeros in documentation
Fix for Issue | @@ -139,9 +139,9 @@ Args:
Example::
>>> tensor = torch.tensor((), dtype=torch.float64)
- >>> tensor.new_ones((2, 3))
- tensor([[ 1., 1., 1.],
- [ 1., 1., 1.]], dtype=torch.float64)
+ >>> tensor.new_zeros((2, 3))
+ tensor([[ 0., 0., 0.],
+ [ 0., 0., 0.]], dtype=torch.float64)
""".format(**new_common_args))
|
Modified code snippets for `exclude_package_data` example
Made them consistent with the snippets given on the Package Discovery
page. The changes made here are similar to the changes made to the
previous example. | @@ -285,10 +285,9 @@ included in the installation, then you could use the ``exclude_package_data`` op
[options]
# ...
- packages =
- mypkg
+ packages = find:
package_dir =
- mypkg = src
+ = src
include_package_data = True
[options.exclude_package_data]
@@ -299,11 +298,11 @@ included in the installation, then you could ... |
add test to plugins/ambari/client.py
Add missing test for plugins/ambari/client.py.
*test_import_credential | @@ -95,6 +95,20 @@ class AmbariClientTestCase(base.SaharaTestCase):
"http://spam", verify=False, auth=client._auth,
headers=self.headers)
+ def test_import_credential(self):
+ resp = mock.Mock()
+ resp.text = ""
+ resp.status_code = 200
+ self.http_client.post.return_value = resp
+ client = ambari_client.AmbariClient(s... |
Fix issue with checklist.
The checklist values are not and , but instead the length of the checklist is used to determine which values have been checked off. | @@ -135,7 +135,7 @@ def layout():
dcc.Checklist(
id='speck-enable-presets',
options=[{'label': 'Use presets', 'value': 'True'}],
- values=['False']
+ values=[]
),
html.Br(),
|
Fix watchmedo tests in Windows
Unexpectedly, but on test_load_config_invalid running, PyYAML get_single_data() raises different execptions for Linux and Windows. This PR adds ScannerError for passing tests under Windows. | @@ -3,7 +3,8 @@ from __future__ import unicode_literals
from watchdog import watchmedo
import pytest
-import yaml
+from yaml.constructor import ConstructorError
+from yaml.scanner import ScannerError
import os
@@ -36,7 +37,8 @@ def test_load_config_invalid(tmpdir):
).format(critical_dir)
f.write(content)
- with pytest.... |
Terminal mostly done, servers enabled.
grblserver doesn't work since it's coded up for an older methodology. | @@ -944,10 +944,8 @@ class Console(Module, Pipe):
yield 'bind [<key> <command>]'
yield 'alias [<alias> <command>]'
yield '-------------------'
- yield 'consoleserver'
yield 'ruidaserver'
yield 'grblserver'
- yield 'lhyserver'
yield '-------------------'
yield 'refresh'
return
@@ -1278,7 +1276,7 @@ class Console(Module,... |
Update version.py
Bumped to v0.0.6 | @@ -4,7 +4,7 @@ Provides information on the current InvenTree version
import subprocess
-INVENTREE_SW_VERSION = "0.0.5"
+INVENTREE_SW_VERSION = "0.0.6"
def inventreeVersion():
@@ -15,7 +15,6 @@ def inventreeVersion():
def inventreeCommitHash():
""" Returns the git commit hash for the running codebase """
- # TODO - Thi... |
Apply suggestions from code review
Reverting to `assertIs`. | {% elif property == "ability" -%}
def test_{{ description }}(self):
score = Character().{{ property }}()
- self.assertTrue({{ supercase["expected"] | replace("&&","and") }})
+ self.assertIs({{ supercase["expected"] | replace("&&","and") }}, True)
{% elif property == "character" -%}
def test_{{ description}}(self):
{% i... |
try to debug error in tests (revert me)
Error Message
object of type 'NoneType' has no len()
Stacktrace
Traceback (most recent call last):
File "/tmp/kitchen/testing/tests/unit/utils/test_network.py", line 225, in test_parse_host_port
host, port = network.parse_host_port(host_port)
File "/tmp/kitchen/testing/salt/utils... | @@ -1968,8 +1968,9 @@ def parse_host_port(host_port):
host = host_ip
except ValueError:
log.debug('"%s" Not an IP address? Assuming it is a hostname.', host)
- except TypeError as _e_:
- log.error('"%s" generated a TypeError exception', host)
- raise _e_
+# Todo: uncomment and handle
+# except TypeError as _e_:
+# log.... |
Moved create_inbound after dao_create_service
Need to do this otherwise no service.id is available to link the servce to the inbound number | @@ -71,11 +71,11 @@ def create_service(
sms_sender=sms_sender,
)
+ dao_create_service(service, service.created_by, service_id, service_permissions=service_permissions)
+
if do_create_inbound_number and INBOUND_SMS_TYPE in service_permissions:
create_inbound_number(number=sms_sender, service_id=service.id)
- dao_create_... |
Set to the one we use everywhere else
There are multiple xmlns attributes in xforms, but the one we want isn't
the one on the <meta /> node, but the non-namespaced one on the data
node. | @@ -1711,7 +1711,7 @@ def _get_form_metadata_context(domain, form, timezone, support_enabled=False):
from corehq.apps.hqwebapp.templatetags.proptable_tags import get_default_definition, get_tables_as_columns
meta = form.form_data.get('meta', None) or {}
-
+ meta['@xmlns'] = form.xmlns
meta['received_on'] = json_format_... |
Gracefully handle unrecognised BNF codes
This should be a rare and temporary situation. See | @@ -148,7 +148,10 @@ def measure_numerators_by_org(request, format=None):
# Fetch names after truncating results so we have fewer to look up
names = Presentation.names_for_bnf_codes([i["bnf_code"] for i in results])
for item in results:
- item["presentation_name"] = names[item["bnf_code"]]
+ # Occasional issues with BN... |
refactor: get_group_by_count
Refactored raw query and partial get_all building with db.query + qb
notation equivalent. Added type hints & f-strings.
Intent: This particular API (for field "assigned_to") was taking
a while to run so decided to refactor this in hopes of perf improvemnts.
Result: 50% reduction in response... | -# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
+# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
+from typing import Dict, List
+
import frappe
+from frappe.query_builder.functions import Count
+from frappe.query_builder.terms import subqry
+from fr... |
Update the broken link for sample cri.d/conf.yaml
Zendesk ticket: | @@ -84,7 +84,7 @@ CRI does not include any events.
Need help? Contact [Datadog support][5].
-[1]: https://github.com/DataDog/datadog-agent/blob/master/cmd/agent/dist/conf.d/cri.d/conf.yaml.example
+[1]: https://github.com/DataDog/datadog-agent/blob/master/cmd/agent/dist/conf.d/cri.d/conf.yaml.default
[2]: https://docs.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.