ValueError: num_samples should be a positive integer value, but got num_samples=0

Thank you for your amazing work!
I have encountered some error like https://github.com/opendilab/InterFuser/issues/8, I'm not sure if there are something wrong in my data generation process or my "dataset_index.txt",could you please give me some hints?
here is the log when i run "bash scripts/train.sh"
(interfuser) hxa@hxa-Nitro-AN515-58:~/InterFuser/interfuser$ bash scripts/train.sh
/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launch.py:188: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use_env is set by default in torchrun.
If your script expects `--local_rank` argument to be set, please
change it to read from `os.environ['LOCAL_RANK']` instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions

  FutureWarning,
Training with a single process on 1 GPUs.
Loading pretrained weights from url (https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/resnet50d_ra2-464e36ba.pth)
Model interfuser_baseline created, param count:52935567
Data processing configuration for current model + dataset:
	input_size: (3, 224, 224)
	interpolation: bicubic
	mean: (0.485, 0.456, 0.406)
	std: (0.229, 0.224, 0.225)
	crop_pct: 0.875
CNN backbone and transformer blocks using different learning rates!
165 weights in the cnn backbone, 274 weights in other modules
AMP not enabled. Training in float32.
Scheduled epochs: 35
Sub route dir nums: 0
Sub route dir nums: 0
Traceback (most recent call last):
  File "train.py", line 1844, in <module>
    main()
  File "train.py", line 1140, in main
    pin_memory=args.pin_mem,
  File "/home/hxa/InterFuser/interfuser/timm/data/carla_loader.py", line 118, in create_carla_loader
    loader = loader_class(dataset, **loader_args)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 344, in __init__
    sampler = RandomSampler(dataset, generator=generator)  # type: ignore[arg-type]
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 108, in __init__
    "value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 7489) of binary: /home/hxa/anaconda3/envs/interfuser/bin/python3
Traceback (most recent call last):
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launch.py", line 195, in <module>
    main()
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launch.py", line 191, in main
    launch(args)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launch.py", line 176, in launch
    run(args)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/run.py", line 756, in run
    )(*cmd_args)
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/home/hxa/anaconda3/envs/interfuser/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 248, in launch_agent
    failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
train.py FAILED
------------------------------------------------------------
Failures:
  <NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-02-23_10:39:25
  host      : hxa-Nitro-AN515-58
  rank      : 0 (local_rank: 0)
  exitcode  : 1 (pid: 7489)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

here is my train.sh
GPU_NUM=1
DATASET_ROOT='/home/hxa/InterFuser/dataset/'

./distributed_train.sh $GPU_NUM $DATASET_ROOT  --dataset carla --train-towns 1 2 3 4 6 7 10  --val-towns 5 \
    --train-weathers 0 1 2 3 4 5 6 7 8 9  --val-weathers 10 11 12 13 \
    --model interfuser_baseline --sched cosine --epochs 25 --warmup-epochs 5 --lr 0.0005 --batch-size 16  -j 16 --no-prefetcher --eval-metric l1_error \
    --opt adamw --opt-eps 1e-8 --weight-decay 0.05  \
    --scale 0.9 1.1 --saver-decreasing --clip-grad 10 --freeze-num -1 \
    --with-backbone-lr --backbone-lr 0.0002 \
    --multi-view --with-lidar --multi-view-input-size 3 128 128 \
    --experiment interfuser_baseline \
    --pretrained

and my "dataset_index.txt" is like
/home/hxa/InterFuser/data/eval/routes_town05_long_02_22_10_54_29/ 940

I have noticed that my path of generated dataset is
/home/hxa/InterFuser/data/eval/routes_town05_long_02_22_10_54_29/

not like
weather-7/data/routes_town06_long_w7_11_28_18_28_35/

my path haven't prefix like "weather-7" so I'm not sure if there are something wrong in my dataset generation.

and i found many of these folders are empty,except these folders with prefix "rgb" and "actors_data"  "birdview" "measurement",is it normal?

after setup the enviroment,i directly tried to generate dataset with a single CARLA Server by run
carla/CarlaUE4.sh --world-port=2000 -opengl
./leaderboard/scripts/run_evaluation.sh

and here is my "run_evaluation.sh"
#!/bin/bash

export CARLA_ROOT=carla
export CARLA_SERVER=${CARLA_ROOT}/CarlaUE4.sh
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla
export PYTHONPATH=$PYTHONPATH:$CARLA_ROOT/PythonAPI/carla/dist/carla-0.9.10-py3.7-linux-x86_64.egg
export PYTHONPATH=$PYTHONPATH:leaderboard
export PYTHONPATH=$PYTHONPATH:leaderboard/team_code
export PYTHONPATH=$PYTHONPATH:scenario_runner

export LEADERBOARD_ROOT=leaderboard
export CHALLENGE_TRACK_CODENAME=SENSORS
export PORT=2000 # same as the carla server port
export TM_PORT=2500 # port for traffic manager, required when spawning multiple servers/clients
export DEBUG_CHALLENGE=0
export REPETITIONS=1 # multiple evaluation runs
export ROUTES=leaderboard/data/training_routes/routes_town05_long.xml
export TEAM_AGENT=leaderboard/team_code/auto_pilot.py  #leaderboard/team_code/interfuser_agent.py # agent
#export TEAM_CONFIG=leaderboard/team_code/interfuser_config.py # model checkpoint, not required for expert
export CHECKPOINT_ENDPOINT=results/sample_result.json # results file
export SCENARIOS=leaderboard/data/scenarios/town05_all_scenarios.json
export SAVE_PATH=data/eval # path for saving episodes while evaluating
export RESUME=True

python3 ${LEADERBOARD_ROOT}/leaderboard/leaderboard_evaluator.py \
--scenarios=${SCENARIOS}  \
--routes=${ROUTES} \
--repetitions=${REPETITIONS} \
--track=${CHALLENGE_TRACK_CODENAME} \
--checkpoint=${CHECKPOINT_ENDPOINT} \
--agent=${TEAM_AGENT} \
--agent-config=${TEAM_CONFIG} \
--debug=${DEBUG_CHALLENGE} \
--record=${RECORD_PATH} \
--resume=${RESUME} \
--port=${PORT} \
--trafficManagerPort=${TM_PORT}

i try to still Generate Data  with a single CARLA Server but via run
cd carla
CUDA_VISIBLE_DEVICES=0 ./CarlaUE4.sh --world-port=20000 -opengl &

cd dataset
python init_dir.py
cd ..
cd data_collection
python generate_yamls.py # You can modify fps, waypoints distribution strength ...

# If you don't need all weather, you can modify the following script
python generate_bashs.py
python generate_batch_collect.py
cd ..

and
bash data_collection/batch_run/run_route_routes_town01_long.sh

now, the generated dataset seems to be normal and no empty folders

Hi, thanks for your feekback!
For Issue 1 (https://github.com/opendilab/InterFuser/issues/20#issue-1596135703), the issue is because the training progamme can not find data. The path listed in dataset_index.txt should be relative path, not absolute path. When it loads the data, it will concat the DATASET_ROOT and the paths listed in dataset_index.txt. Besides, make sure dataset_index.txt  is placed in directory DATASET_ROOT.
For Issue 2, it looks like it's running properly, so feel free to keep discussing if you have any further questions.

@deepcs233 Thanks for your reply!
I want to have a quick pass through this great project to improve myself,but i have not enough computing resource,the scenarios and weather conditions are too many for me,i'm not sure if i could only generate a part of dataset to train a agent?Will this cause any problems?could you please give me some advices?

To reduce space usuage, i recommand you to use random weather to collect the data of all routes, rather than use 21 kinds of weather to collect the data repeatly, which will collect 21X times data. This way can cover as much weather and routes as possible with the minimal space usage. I estimate it will only use about 150G disk space and can get the best model with limited space. You can refer to https://github.com/opendilab/InterFuser/issues/18#issuecomment-1420344529 to modify the related code.

@deepcs233 thanks a lot ,and sorry for take up your time.


PDF download page restriction?

Hi!
I've been trialing your code and it's really great, however, when I enter a targetdomain that I know contains a PDF of say 200 pages, it only downloads a section of the report and only say 30 pages. I have very limited programming experience so just wondering what the reason might be.
Many thanks

Thanks for checking the tool out. When you say that it should return 200 pages do you mean 200 search engine pages or 200 PDF results?

Thanks for the reply. It's when a pdf is downloaded from a site, it seems to only download it partially. So, I know the PDF on the website consists of say 200 pages, but then only say, chapter 9, downloads. So it seems selective.
Many thanks once again


docs: add chinese version  of ducument

add  chinese version  of ducument

Thanks, but we don’t want us to maintain Chinese documents all the time, This will increase a lot of maintenance costs.
What other peoples think?

Thanks, but we don’t want us to maintain Chinese documents all the time, This will increase a lot of maintenance costs. What other peoples think?

+1
This issue has not been updated for too long, I will close it


fix: topology hooks

Description
What does the PR do?
Remove unused variable
Testing
How was this PR tested?
Manually

The failed test for Python 2.7 seems unrelated to this PR


[T2A6][T01-T1]Rahumathmarini

Ready for review

This PR/issue should be against a repo in the org nus-cs2103-AY1617S4 not against the repo in se-edu org :-)
Closing...


The problem of calculating dynamic regional indicators

Hello, may I ask how to calculate indicators separately for dynamic areas?Looking forward to your reply!

thanks for your interest
We average depth errors over the intersection of dynamic masks and valid depth masks for dynamic evaluation. You can refer to the evaluation code and metric code for details :)

thanks for your interest
We average depth errors over the intersection of dynamic masks and valid depth masks for dynamic evaluation. You can refer to the evaluation code and metric code for details :)

Thank you for your reply. How can I train on the Cityscapes dataset?

Just make sure you can get the GT pose for this dataset, and then you can organize the data in a way similar to the KITTI odometry dataset


Dispatch is not a function

I am getting this error  " Dispatch is not a function "  every time when I run it.
This is the section of code from login Page where i am getting this error.
   handleSubmit(e){
        e.preventDefault();
        console.log(JSON.stringify(this.state));
        this.setState({ submitted : true });
        const { username, password } = this.state;
        // console.log(username);
        // console.log(password);
        const { dispatch } = this.props;
        if ( username && password) {
            console.log('sasjas');
            dispatch(userActions.login(username,password)); //  Dispatch is not a function
        }
    }

Hi there @sanjeetiitr,
Did you install  and have "redux-thunk": "^2.2.0" in your package.json?
And are you using it in your client/index.js like so:
... other imports
import {createStore, applyMiddleware, compose} from 'redux'
import thunkMiddleware from 'redux-thunk'

import reducers from './reducers'
import App from './components/App'
let store = createStore(reducers, compose(
  applyMiddleware(thunkMiddleware),
  window.devToolsExtension ? window.devToolsExtension() : f => f
))

... <App />

This is late, but are you sure you mapped the dispatch to props ? or maybe what @emilyparkes mentioned ?

This can happen if your component uses mapDispatchToProps, which stops dispatch from being injected into your component, there's more information available at https://react-redux.js.org/using-react-redux/connect-mapdispatch#why-is-my-component-not-receiving-dispatch


Regular expresions in path

Hi guys,
Do we have a way to describe an endpoint with paths with a variable number of segments? For example, I have a route declared with this:
'/open/{fullpath:.*}'
This let me to process routes like:
/open/some-file.ext
/open/some-folder/some-file.ext
/open/some-folder/some-folder2/some-file.ext
etc
While I don't have problems with the code, the validator doesn't allow this:
"OpenAPI spec contains no such operation [/open/some-folder/some-file.ext,get]"
Digging in the spec, I found this comment where a "/seg1/seg2/*" is mentioned:
https://github.com/OAI/OpenAPI-Specification/issues/892#issuecomment-281692262
Regards.

Looks like it's not supported by the spec itself?

I think we cannot validate things that are not in spec at the moment, as this will create our own flavour of spec, which would confuse other users. Feel free to reopen this issues when the OAS will have this feature


Investigate slowness of unit tests

Following on from #1215
There are still a number of unit tests that seem to be slowing down unit test execution. This seems to be related to exceptions that are raised during successful execution of a test, and these seem to cause a delay. The reason why these exceptions cause the delay is unknown.
e.g. in test_given_no_tip_found_ever_when_get_tip_into_view_then_smargon_moved_positive_and_exception_thrown() a number of exceptions similar to the following are thrown and they each cause ~0.7s of delay:
[2024-03-05 13:50:21,235] ophyd status ERROR: An error was raised on a background thread while running the callback <bound method PinTipDetect.log_tips_and_statistics of FakePinTipDetect(prefix='BL03S-DI-OAV-01:MXSC:', name='oav_mxsc_pin_tip', parent='oav_mxsc', read_attrs=['tip_x', 'tip_y', 'triggered_tip', 'validity_timeout', 'settle_time_s'], configuration_attrs=[])>(StableSubscriptionStatus(device=oav_mxsc_pin_tip_tip_x, done=True, success=True)).
Traceback (most recent call last):
  File "/scratch/ws/hyperion/.venv/lib/python3.10/site-packages/ophyd/status.py", line 269, in _run_callbacks
    cb(self)
  File "/scratch/ws/dodal/src/dodal/devices/areadetector/plugins/MXSC.py", line 56, in log_tips_and_statistics
    median, standard_deviation = statistics_of_positions(self.tip_positions)
  File "/scratch/ws/dodal/src/dodal/devices/areadetector/plugins/MXSC.py", line 27, in statistics_of_positions
    x_coords, y_coords = np.array(positions).T
ValueError: not enough values to unpack (expected 2, got 0)
[2024-03-05 13:50:21,989] Hyperion pin_tip_centring_plan INFO: Pin tip found at (-1, -1)

It would be good if we could speed up the slow tests by eliminating the exceptions, ideally we would also want to:

Making it easier to identify when this is happening to prevent further occurrences
Figure out why this slows down the tests and remove the slowdown.

In investigating the latter, one possible avenue may be to temporarily re-instate the exceptions in the optimise_attenuation test and run the profiler against it (may need to tweak the timeout so that the exceptions happen before the test completes), possibly that may make the cause more obvious.

I think this is due to logging, on my machine:

Running with as on main is 136.21s
Running with no logging is 37.38s
Running with logging but not the debug log on error is 47.13s

This fits with the issue being whenever there is an exception as this is when the debug logs get flushed. I suggest we turn off logging by default in the tests and only turn on for the tests that are testing logging logic?

Solution is to:

Turn off ophyd debug logs in all tests
Have a command line option to turn off all logging, this defaults to not logging locally and logging in CI

Will take ~0.5 days

Turn off ophyd debug logs in all tests
Interestingly this didn't give us much of a speed up. I guess enough debug logs are produced in general that the buffer becomes reasonably full part way through the tests anyway


remove FQN changes to allow it to be used with cdap 6.7.2+

FQN changes will be for the 3.2.x releases.

we want the format changes to be available for CDAP 6.7.2+ in version 3.1.0 of this plugin. 3.2.0 of this plugin will have the FQN changes and be usable in CDAP 6.8.0+.


[Feature][RayJob] Support light-weight job submission with entrypoint_num_cpus, entrypoint_num_gpus and entrypoint_resources

Why are these changes needed?
Continue the #1893, this PR completes the lightweight job submission by adding supports of entrypoint_num_cpus, entrypoint_num_gpus, and entrypoint_resources parameters while generating submission requests.
I also corrected the type of RayJobRequest.Resources to map[string]float32 as suggested in the ray source: https://github.com/ray-project/ray/blob/cfbf98c315cfb2710c56039a3c96477d196de049/dashboard/modules/job/common.py#L353
Checks

[x] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[x] Manual tests
[ ] This PR is not tested :(

Hi @kevin85421, this PR is ready for review. Could you help review it? Thanks!


Encoding OSM basemap calls properly

Issue Number
PSBEX-139
What does this PR do?
Properly encodes the OSM url
Screenshot
N/A
Related Issue
N/A

Seeing some issues with this, don't merge yet.

OSM basemap calls cannot be encoded if they are direct calls to the OSM endpoint, as the OpenLayers library is handling the call via an OSM object. Therefore, calls which are proxied are now always encoded and without problems, but if the basemap is specified to not be proxied, it will not encode the url.
This should not affect much, as the default case is to proxy the basemap call, even outside our pki design.
Change has been pushed directly.


Available Suggestions (wrongly) class instance getters/setters

Related to https://github.com/dart-lang/sdk/issues/40626.

/fyi @scheglov

https://dart-review.googlesource.com/c/sdk/+/136410

@pq the issue of suggesting class fields / getters has been fixed. Now we don't suggest them at all :-)
If you want to add static getters, you probably can continue from here.

Thank you!


Profiling unit tests fail due to timeout

The following error occurs periodically.
[ERROR] Failures:
[ERROR]   ProfileReportBackwardsCompatTest.sequentialSingleThreadOpenCLTest:100->sequentialSingleThreadTestHelper:142 Test estimated accumulated time doesn't match within 100ms window expected:<5327.0> but was:<4870.002495999997>
[ERROR]   ProfileReportBackwardsCompatTest.threadedSingleThreadPerKernelJTPTest:178->threadedSingleThreadPerKernelTestHelper:233 Test estimated accumulated time doesn't match within 100ms window expected:<816.0> but was:<705.0458799999999>

Bumping up the timeout should be a good enough solution

fixed


arc tan activation in last layer

Hi,
I saw the same NVIDIA model by Lex Fridman (from MIT) they used the arctan activation function in the final layer ,to bound the outputs between -20 and 20 and 'Relu' for the previous layers
you have a linear activation for the last and 'elu' for the previous layers , any reason for this or will both methods work fine?

Hi @naveen7v
I imagine those parameters will all work as long as you train it carefully.  I did not try all these different activation functions, so I am not 100% sure.  I think you would need to try it for yourself to find out!


Updated the title and a link

The title of the page wasn't clear about the purpose.
The link to the quickstart was broken.
Purpose

This addresses an issue found during the help bug bash.

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:

@rhurey or @v-demjoh could you please sign off on this?

#sign-off


RIA-3777 upgrade Spring boot to version 2.3.3.RELEASE

JIRA link (if applicable)
RIA-3777
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Couldn't build successfully due to AKS issue. New PR will be created.

Couldn't build successfully due to AKS issue. New PR will be created.


API does not respond when logs over 8MB get uploaded

The API does not respond when logs over 8MB get uploaded, could you add some kind of error catching to that?

It actually seems to happen around ~7MB in my experience

The new limit is now 16 MB. It would probably still be a good idea to make sure we stay inside this limit on the client.


Revert "[fix] (compaction) fix compaction score in time series policy(#40242)"

revert #40242
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[x] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

run be ut

run buildall


Edge-Triggered mode for sc_sock

@svladykin Thank you for the PR :) I'll be busy for the next a few days. I'll go over the PR as soon as I have some time.

@svladykin I've pushed minor changes (doc, style and a test for coverage). PR looks good to me :).
It looks complete to me but is there anything else you'd like to push as part of this PR? Should we merge it?

@tezc I think we can merge it. Thanks for reviewing!


vta README doc update

vta README doc update

It is not a cmake project, better not to introduce cmake configuration

fix now


Refactor unit tests

[x] create a test directory with all tests including binaries for testing for .gz, ,zip,...-
[x] split tests into libraries
[x] more verbose output?
[x] migrate all old tests to new structure
[x] more coverage for existing libraries/bindings

all tests migrated, additional tests added. Some aux still missing


opt/envfile: trim all leading whitespace in a line

Rather than just trimming before a variable, we should trim the line first.
This prevents a line with whitespace only to not break docker.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "trim" git@github.com:mattrobenolt/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

testcases?

Yeah, adding now. :)

@duglin test added, which fails before this patch, but passes after patch.

LGTM

LGTM


Update step-3-proof-of-concept-connecting-to-sql-using-node-js.md

I found that while the code would execute and return the results of the query, the javascript process was not ending and would just hang.  In looking at the documentation for the package (http://tediousjs.github.io/tedious/api-request.html#event_requestCompleted) I was able to get the process to complete by adding a handler for the requestCompleted event

@dpgator33 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@dpgator33 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


fix: update the DA to opt into "dependency_version_2" features in catalog

Description
Catalog team are recommending to set "dependency_version_2": true. The UI will handle the way it displays dependencies better when enabled
Release required?

[ ] No release
[x] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

Closing this for now - the catalog team need to provide migration support to move to this: https://github.ibm.com/ibmcloud/content-catalog/issues/5207


Design of transport layer

No dynamic memory except for I/O buffers
Must be fully functional on top of media layer (i.e. shall not need application layer to send and receive transfers.
Use pyuavcan as inspireation
See CONTRIBUTING.md for the overall design discussion for this library

Output should include definition of API for transport layer and supporting documentation.

Hey all. Apologies but due to increased academic commitments, I won't be able to complete this. If anything changes later on, I will reassign myself to the issue, but for now I'm removing myself from it.

Done in https://github.com/OpenCyphal-Garage/libcyphal/pull/333


HUE-2684 [metastore] Support for new datatypes when creating tables manually

Added varchar, char, date type support for creating tables
fixed column-spec forms are not showing after adding/deleting columns.

Awesome, going to have a look!

It seems to break 4 tests, did you have a chance to test those?
http://gethue.com/tutorial-how-to-run-the-hue-integration-tests/
======================================================================
ERROR: Test field dependency in the create table form
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/case.py", line 186, in runTest
self.test(*self.arg)
File "/var/lib/jenkins/workspace/hue-testing/apps/beeswax/src/beeswax/tests.py", line 1202, in test_create_table_dependencies
assert_true(resp.context["columns_form"].forms[0].errors["map_key_type"])
KeyError: 'map_key_type'
ERROR: beeswax.tests.TestBeeswaxWithHadoop.test_partitioned_create_table
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/case.py", line 186, in runTest
self.test(*self.arg)
File "/var/lib/jenkins/workspace/hue-testing/apps/beeswax/src/beeswax/tests.py", line 1151, in test_partitioned_create_table
}, follow=True)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/test/client.py", line 483, in post
response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/test/client.py", line 302, in post
return self.request(**r)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/test/client.py", line 444, in request
six.reraise(*exc_info)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner
return func(*args, **kwargs)
File "/var/lib/jenkins/workspace/hue-testing/apps/beeswax/src/beeswax/create_table.py", line 91, in create_table
'database': database,
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/django_util.py", line 225, in render
**kwargs)
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/django_util.py", line 146, in _render_to_response
return django_mako.render_to_response(template, *args, **kwargs)
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/django_mako.py", line 125, in render_to_response
return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
result = template.render(**data_dict)
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/test_runners.py", line 54, in _instrumented_test_render
response = runtime.render(self, self.original_callable[-1], args, data)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render
**kwargs_for_callable(callable, data))
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in render_context
exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in exec_template
callable(context, *args, **kwargs)
File "/var/lib/jenkins/workspace/hue-testing/desktop/core/src/desktop/lib/test_runners.py", line 45, in mako_callable
return self.original_callable[-1](context, *args, **kwargs)
File "/tmp/tmpYvDPfM/beeswax/create_table_manually.mako.py", line 422, in render_body
_M_writer(escape(unicode(render_column(form, True))))
File "/tmp/tmpYvDPfM/beeswax/create_table_manually.mako.py", line 58, in render_column
return render_render_column(context.locals(__M_locals),form,is_partition_form)
File "/tmp/tmpYvDPfM/beeswax/create_table_manually.mako.py", line 557, in render_render_column
__M_writer(escape(unicode(comps.field(form["char_length"], render_default=True))))
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/forms/forms.py", line 114, in getitem
raise KeyError('Key %r not found in Form' % name)
KeyError: u"Key 'char_length' not found in Form"
FAIL: Checks HQL generation for create table.
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/case.py", line 186, in runTest
self.test(*self.arg)
File "/var/lib/jenkins/workspace/hue-testing/apps/beeswax/src/beeswax/tests.py", line 1104, in test_create_table_generation
assert_true("my_col" in response.content)
AssertionError:
======================================================================
FAIL: Test create table wizard
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/hue-testing/build/env/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/case.py", line 186, in runTest
self.test(*self.arg)
File "/var/lib/jenkins/workspace/hue-testing/apps/beeswax/src/beeswax/tests.py", line 1333, in test_create_table_import
assert_equal(resp.context['action'], 'watch-redirect')
AssertionError: '/beeswax/create/import_wizard/default' != 'watch-redirect'

I wonder why my new commit is not appearing here, I've fixed it on this commit:
https://github.com/cloudera/hue/commit/b499f62d50affc02efe0f41053298df0f5cdd9d3

Yes, not sure why it is not showing up, it is now!
I had already aggregated it to the first commit: https://github.com/cloudera/hue/commit/c7d64b6ef0525ebb5416f2174f6af7698a7cdcc6
Thanks a lot, very nice!


Does this require pandas to be installed on cluster nodes?

The docs are extremely obscure, but seem to claim both that pandas functions will run "on spark", but also that pandas will be applied to partitions of data.
So is a function that uses pandas converted to a spark equivalent, or does pandas still execute on cluster nodes?
Getting pandas installed across a spark cluster is problematic for me.

Hi @cyberfox1 ,
The README should have a link to the tutorials, which are the main form of documentation. I will point the Fugue API docs to the tutorials in the near future. Pandas will be applied on the partitions of the data. You can think of it as PySpark's pandas_udf or mapInPandas. So it is not converted to a Spark equivalent, it is brought with one of the underlying Spark methods (can also be mapPartitions or udf). Spark has a lot of interfaces and we aim to condense them to make it friendlier to users.
I think Pandas should be a requirement of Spark, especially in 3.0 and above where mapInPandas exists. What Spark version are you on? Could you give more details on why installing pandas is problematic for you?

Hi @cyberfox1 ,
Thanks for the issue! The README should have a link to the tutorials, which are the main form of documentation. I will point the Fugue API docs to the tutorials in the near future. Pandas will be applied on the partitions of the data. You can think of it as PySpark's pandas_udf or mapInPandas. So it is not converted to a Spark equivalent, it is brought with one of the underlying Spark methods (can also be mapPartitions or udf). Spark has a lot of interfaces and we aim to condense them to make it friendlier to users.
I think Pandas should be a requirement of Spark, especially in 3.0 and above where mapInPandas exists. What Spark version are you on? Could you give more details on why installing pandas is problematic for you?

I will have to investigate but in short we have workloads that could be deployed to arbitrary corporate run clusters we have little or no control over.

Closing, feel free to reopen. Thanks


Add ZipCode Service and Controller

In this PR, we add an service that wraps the ZipCode API from
http://api.zippopotam.us/us/{zipcode}
Closes #16

lgtm


wip: investivate/cleanup engine usage in cli

About cwd in Migrate Engine:
https://prisma-company.slack.com/archives/CGMCB82N8/p1621253184006600?thread_ts=1621253015.006400&cid=CGMCB82N8

If the process is spawned from another directory, all file paths would resolve relative to that instead of the prisma directory — note that it isn't something engines specific but just a process spawning thing.
Paths resolved in engines code include at least:

sqlite database paths
ssl certificate paths
The CLI passes in absolute paths to the migrations directory, so that isn't affected by the CWD.

Replaced by https://github.com/prisma/prisma/pull/10732


cJTAG and OpenOCD

Hi, I am trying to implement a cJTAG debugger on Pico. I'm already finished PIO part.
The protocol is not so complicated. It is a wakeup sequence and JTAG(TMS+TDO+TDI) transform to cJTAG(TMSC=TMS+TDO+TDI). So there is no difference to the upper.
Do you willing to merge it if I submit a PR?
If yes, Could you tell me the status of OpenOCD support? Where can i get the latest code and example config?
As far as I know, The cJTAG mainly used in RISC-V segment and some TI MCU. Most of RISC-V vendor have their own OpenOCD fork. And I want to use it on RISC-V MCU. I ask this question because I need to patch their code.

Well, I don't think we want to extend Pico DirtyJtag beyond its 100% compatible brother the original DirtyJtag. Your code would have to be working on the original DirtyJtag devices as well.  @jeanthom would need to be on board. Of course, you are welcome to fork this port if you change the USB descriptor product ID and relevant strings, so users won't get confused.
About cJTAG: It seems to be somewhat of a minefield... See https://wiki.segger.com/J-Link_cJTAG_specifics
You are also welcome to take my changes to OpenOCD and modify them to support your cJtag device. I have 2 implementations.
A simple one on https://sourceforge.net/u/phdussud/openocd/ and more complicated one on a recent port on https://github.com/phdussud/openocd It is more complicated because it buffers commands when possible before sending them to the device. Based on stm32 device debugging, both implementations work. I am not sure if the more complicated one is any faster.

Ok, Thank you for your advice.
I will try to fork this port first.

Hi,
I think cJTAG would be a great addition to DirtyJTAG. I would rather exclude protocols like SWD, which need very protocol-specific code running on the probe, and for which many excellent probe projects are already available and better supported in OpenOCD & other debugging software (like BMP or Raspberry's).


How to compute FID score with the trained fid_model?

Hi, I find you have trained one fid model, but how to use this trained fid model to compute FID score? Can you provide the running scripts? thanks.

For example, please refer to this part of the evaluation

Thanks for your kindly reply!


Add repo instructions option

This way, users can pass in their own files for additional instructions in the .jinja:
{% if repo_instruction %}

Some basic information about this repository:
{{ repo_instruction }}{% endif %}

@neubig I am running this openhands-resolver code on multiple of my repos, so I would appreciate the option to switch instructions and keep those instructions in the repo that's being edited itself, as opposed to needing to make a branch on my fork of this openhands-resolver repo that contains an edit of the .openhands_instructions file

Hey @ryx2 , yes, you can already do that. Add .openhands_instructions file to the top directory any repo that you're working on and it will automatically be pulled in by the resolver without any code changes.

Here's an example: https://github.com/All-Hands-AI/OpenHands/blob/main/.openhands_instructions

ok! is it possible to throw a line into the readme.md so people like me would be able to understand the .openhands_instructions goes into the prompt? I can also add that line in a separate PR if you let me know what section it would be best in

Hey @ryx2 , yes a PR for the readme would be awesome! I think a new section "providing custom instructions" would be good. We could maybe add a few examples like the one from this repo and the one from the openhands repo.

+1 on this; I think maybe the section should be called "advanced settings" or "custom settings"? This would include a guide  for setting repo instructions as detailed above + a custom macro to invoke openhands-resolver (introduced in #323)?

@malhotra5 I don't know what the custom macro is, but i just made a PR for just the .openhands_instructions, maybe you could add on the macro to that same section after a merge?


Migrate typescript-eslint-parser to 21.0.2

To make it work this PR has to be merged due to bug in visitor-tree

[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/554~~
[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/560~~
[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/561~~
[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/562~~
[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/565~~
[x] ~~https://github.com/eslint/typescript-eslint-parser/pull/571~~
[x] New release of typescript-eslint-parser

unblocks #117, #181 PR
fixes: #152, #155, #126, #164, #166, #171, #193, #189, #143, #33

This looks so much cleaner... thank you @armano2 .
Hoping the new version of the parser gets released soon...

I should go through and read up on the new nodes.
It looks like they've added a lot of really helpful stuff to make dealing with the AST easier!

@bradzacher for everyone who wants to try new version i suggest to use npm/@armano/typescript-eslint-parser i published version with my fixes to parser

do you want me to add test scenario for #143? it's not really related to this code but to fix in visitor

so close...!

awesome! I'll give it one final eyeball now


Sophos app docs

Purpose of this pull request
This pull request is to create the app docs for Sophos.
Select the type of change

[ ] Minor Changes - Typos, formatting, slight revisions
[ ] Update Content - Revisions, updating sections
[x] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)
Create Public Doc for Sophos App

Merging this PR at the request of @ankitgoelcmu.


Repo.aggregate not using query prefix

Elixir version
1.13.4
Database and Version
13.3
Ecto Versions
3.10
Database Adapter and Versions (postgrex, myxql, etc)
postgrex 0.16
Current behavior
defmodule MyApp.Repo do
  def prepare_query(_, q, _) do
    IO.inspect(q.prefix)
  end
end

SomeSchema
|> Ecto.put_query_prefix("whatever")
|> MyApp.Repo.aggregate(:count)

inspect returns nil
Expected behavior
inspect returns "whatever"

I do think the result of the aggregate is correct, I presume because the subquery is using the prefix.
The issue I am running into is with some logic in prepare_query that checks the prefix

Ah, we can copy the prefix to the parent. A PR is welcome!


Cypress “Database cleaning”

Between tests, we need a way to get back to a "default state", and there are a few options potentially available to us:
DatabaseCleaner (or a "truncate and re-seed") strategy:
Using the following blog post as a guide:
https://blog.simplificator.com/2019/10/11/setting-up-cypress-with-rails/
There are some ideas for doing this with little code required.
For our use cases, however, we need a pretty heavily seeded database to be able to even start the app, so using the default truncation strategy from the database-cleaner gem probably won't work out of the box.
"Database Transactions"
This one is a bit tough to accomplish since we are using a multi-process environment, and transactions generally work only within the context of a single database connection (which isn't shared across processes).
There are potential alternatives for this:
https://www.postgresql.org/docs/10/sql-prepare-transaction.html
But more research into those would be required.
Regardless, this would probably have to be something "home rolled", and there probably isn't a pre-baked solution for this.
Using cypress-rails or cypress-on-rails
I think there are a lot of "non-starters" with these gems, but worth mentioning that both solutions provide some kind of mechanism for handling this, that if nothing else can be used as a reference for our own uses:

https://github.com/testdouble/cypress-rails
https://github.com/shakacode/cypress-on-rails

Converted this from a card that existed in the Cypress Integration project to an issue so we can discuss further and also propose alternative strategies.
I have a POC solution for the Database Cleaning strategy here:
https://github.com/NickLaMuro/manageiq/compare/integration_env^^...integration_env
And I will update that link as I move it to a dedicated PR.


Values of array fields in fieldsets duplicated when using remote true

Since updating to jquery-rails 4.1.0 I have a strange problem when using an array field (field with name ending in brackets) in a fieldset. The values are duplicated on submit. Suppose I have the following code in a view:
= form_tag(tests_path, remote: true) do
  fieldset
    = label_tag('Tests')
    = text_field_tag('tests[]', 'foobar')
  = submit_tag

When submitting this, I would expect params['tests'] to equal ["foobar"] (as it did with jquery-rails 4.0.5). However, now params['tests'] equals ["foobar", "foobar"] (the value is duplicated). This problem does not occur when disabling the remote form option, or when replacing the fieldset with a div. Am I missing something obvious or is this a bug in the jquery-ujs adapter?

Just for the sake of completeness, are you positive jquery-ujs isn't being included twice or being compiled twice into your assets?

@JangoSteve Yes. I have created an app to demonstrate this issue. See: https://github.com/kreintjes/jquery-ujs-issue

Hi guys, I also have the same issue. If fields are in a div it is ok, but if you put them in a fieldset then the value is duplicated.

Same problem here.


Delete a Challenge by calling the delete function so we can refund the pTokens

More details are here: https://github.com/MetricsDAO/xyz/issues/363

Currently facilitated by the "withdrawRequest" function:
/**
     * @notice Allows a service requester to withdraw a request and refund the pToken.
     * @param _requestId The id of the service requesters request.
     *
     * Requirements:
     * - The request must not have been signaled.
     * - The request creator is the sender.
     */
    function withdrawRequest(
        uint256 _requestId
    )
        external
    {

The operating version of LM has editRequest, but we are deprecating in favor of a withdraw -> create new flow.


Improve chances of tests passing on all supported SQL Server editions

See https://github.com/aspnet/EntityFramework/issues/2179 - PR in the works

Merged


NavX accuracy issues

https://www.chiefdelphi.com/t/navx2-sensor-yaw-angle-accuracy-issue-update/406360
Only the first part applies to us.

To fix navx software will need to be installed: https://www.kauailabs.com/public_files/navx-mxp/navx-mxp.zip
Both these programs will need to be run:

Follow the steps from the Calibration Process section here: https://www.kauailabs.com/support/navx-mxp/kb/faq.php?id=69


Make testnet faucet page more efficient by adding input validation #259

Make testnet faucet page more efficient by adding input validation #259
Description
I have disabled the button until valid input is given and included a computed property isCreateAccountButtonDisabled that checks for valid input conditions. If any of the input fields are empty or if the Telos owner key doesn't match the specified pattern, the button will remain disabled. This helps ensure that the button is only enabled when valid input is provided, addressing the issue
Test scenarios
The test scenarios included verifying the button's disabled state under different conditions. Initially, the button remained enabled despite invalid or empty input. After the code changes, the button correctly disables when any input field is blank or when invalid input is provided for the Telos owner key and active key. The validation ensures that the "Create testnet account" button is only clickable when valid input is provided.
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have cleaned up the code in the areas my change touches
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
[x] I have removed any unnecessary console messages
[x] I have included all english text to the translation file and/or created a new issue with the required translations for the currently supported languages
[x] I have tested for mobile functionality and responsiveness
[x] I have added appropriate test coverage

Screenshot

There are 2 supported public key formats, might be good to accept either one?
Note here: https://explorer.telos.net/account/jessetest123?tab=keys
You can click the key icon to toggle between the two formats (EOS vs PUB_K1 prefixed)

I have added support for both public key format please check

Looks good to me!

Could you do review again?


Fix #400

Describe your changes

Update ScarbClient

add @Synchronized buildSaltedContract; write original source code before exit
make createSaltedContract private

Linked issues

Closes #400
Breaking changes

[x] This issue contains breaking changes

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (db947fb) 67.63% compared to head (9f36a51) 67.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #401   +/-   ##
=======================================
  Coverage   67.63%   67.63%
=======================================
  Files          72       72
  Lines        3161     3161
  Branches      319      319
=======================================
  Hits         2138     2138
  Misses        862      862
  Partials      161      161

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


ipAddresses field in certificates rejects fully expanded IPv6 addresses

Describe the bug:
The ipAddresses field seems to accept only shorthanded IPv6 addresses in lower case. Fully expanded IPv6 addresses or IPv6 addresses with capital letters results in the certificate never becoming ready.
kubectl get certificate:
NAME                    READY   SECRET             AGE
test-ipv6-certificate   False   test-ipv6-secret   5m52s

The following is seen in the cert manager pod logs
I0810 13:22:40.104517       1 requestmanager_controller.go:333] cert-manager/certificates-request-manager "msg"="CertificateRequest does not match requirements on certificate.spec, deleting CertificateRequest" "key"="default/test-ipv6-certificate" "related_resource_kind"="CertificateRequest" "related_resource_name"="test-ipv6-certificate-hlntg" "related_resource_namespace"="default" "related_resource_version"="v1" "violations"=["spec.ipAddresses"]
I0810 13:22:40.268048       1 conditions.go:263] Setting lastTransitionTime for CertificateRequest "test-ipv6-certificate-hlntg" condition "Ready" to 2023-08-10 13:22:40.268033084 +0000 UTC m=+83666.710947515

Expected behaviour:
Certificate is created and usable and READY set to true.
Steps to reproduce the bug:
create a self signed issuer
use the self signed issuer to issue a certificate with an IPv6 address in the ipAddresses field. the certificate fails to become ready if

any of the letters in the IPv6 address is in upper case
any of the groups of hex values has a leading 0 (:0001: in a fully expanded IPv6 address for example)
a fully expanded IPv6 address with multiple groups of 0s, not shorthanded with ::
:: is used to shorthand an IPv6 address with 7 groups of hex values. in this case, :0: must be used or the certificate fails to become ready

Environment details::

Kubernetes version: 1.24.4
Cloud-provider/provisioner: self-hosted
cert-manager version: 1.11.1
Install method: helm

/kind bug

Hi,
I have the same issue with the following env :
Environment details:

Kubernetes version: 1.27.4
Cloud-provider/provisioner: self-hosted
cert-manager version: 1.12.3
Install method: helm

Here is a yaml example:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: elasticsearch-nextcloud-certs
  namespace: nextcloud
spec:
  dnsNames:
    - elasticsearch-nextcloud-master-hl.nextcloud.svc.cluster.local
    - elasticsearch-nextcloud.nextcloud.svc.cluster.local
  ipAddresses:
    - "<IP_ADDRESS>"
    - "2a0e:2345:6789:1:1:2::6"
  issuerRef:
    group: cert-manager.io
    kind: ClusterIssuer
    name: svc-cluster-local
  secretName: elasticsearch-nextcloud-tls
  usages:
  - digital signature
  - key encipherment

If I remove the IPv6 from the list it works fine.
If I keep it I get the above "violations"=["spec.ipAddresses"] error.
Thanks for your help !

Thanks for sharing that! I'll try to reproduce and see what's going on 👍

I've successfully replicated this and I think I know where the bug lies. The following script will set up a kind cluster which replicates the issue. My first impression is that this has been a bug since this commit from April 2020!
I'll see if my hunch is correct!
#!/usr/bin/env bash

set -eu -o pipefail

rm -f ipv6repl_kubeconfig.yaml || :
kind delete clusters ipv6repl || :

kind create cluster --name ipv6repl --kubeconfig ipv6repl_kubeconfig.yaml

helm --kubeconfig ipv6repl_kubeconfig.yaml install \
	cert-manager jetstack/cert-manager \
	--namespace cert-manager \
	--create-namespace \
	--version v1.12.3 \
	--set installCRDs=true

kubectl --kubeconfig ipv6repl_kubeconfig.yaml apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
  name: sandbox
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: selfsigned-issuer
  namespace: sandbox
spec:
  selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: root-ca
  namespace: sandbox
spec:
  isCA: true
  commonName: root-ca
  secretName: root-ca
  privateKey:
    algorithm: ECDSA
    size: 256
  issuerRef:
    name: selfsigned-issuer
    kind: Issuer
    group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: root-ca-issuer
  namespace: sandbox
spec:
  ca:
    secretName: root-ca
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: myipv6cert
  namespace: sandbox
spec:
  privateKey:
    algorithm: ECDSA
    size: 256
  dnsNames:
    - test.sandbox.svc.cluster.local
    - test2.sandbox.svc.cluster.local
  ipAddresses:
    - "<IP_ADDRESS>"
    - "2a0e:2345:6789:0001:0001:0002:0000:0006"
  issuerRef:
    group: cert-manager.io
    kind: Issuer
    name: root-ca-issuer
  secretName: myleaf
  usages:
  - digital signature
  - key encipherment
EOF

#6293 fixes this in the master branch so a fix will be in 1.13 and we'll try to backport this to 1.12 via #6295
This bug has been in cert-manager for a while - thank you both for reporting, this was a fun one to fix 😁


Examples are throwing errors (but working fine). What is the reason for the error?

Using the LilyGo T-Display S3 and running the examples I can see it writes the following to the serial port:
[  1545][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
E (1349) gpio: gpio_set_level(226): GPIO output gpio_num error
[  1546][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
E (1355) gpio: gpio_set_level(226): GPIO output gpio_num error

This comes when calling the tft.init() method.
I have not been able to figure out what gpios it is talking about. Any way to fix this issue?

I remember this was an error in TouchLib, it didn't check if rst was valid


attributes_for with Carrierwave

Hi there,
I stumbled upon a problem which I'm not sure how to solve.
Scenario:
I've using Carrierwave to upload Documents. FactoryBot and Rspec are used for testing.
# Document Model
class Document < ActiveRecord::Base
  ...
  mount_uploader :path, ::DocumentUploader
  ...
end

# Document Uploader
class DocumentUploader < CarrierWave::Uploader::Base
  ...
  def store_dir
    "#{Application.config.carrierwave_folder}/#{model.class.to_s.underscore.pluralize}/#{Time.current.year}/#{Time.current.month}/#{Time.current.day}/#{model.id}"
  end
  ...
end

# Document Factory
FactoryGirl.define do
  factory :document do
    title "MyTitle"
    path { Rack::Test::UploadedFile.new(Rails.root.join('spec', 'support', 'assets', 'test_image.jpg'), 'image/jpeg') }
  end
end

This works fine for building or creating objects with factory_bot since carrierwave is able to store the file correctly.
However if I wanna use attributes_for it's, of course, going to assign the Rack::Test::UploadedFile itself to the path attribute, since carrierwave hasn't done anything.
To solve this problem I currently override the path manually in the test:
    let(:response_attributes) { valid_attributes.merge(path: File.join(Rails.root, 'public/uploads/documents', Time.current.strftime('%Y/%m/%d'), Document.last.id.to_s, 'test_image.jpg')) }

I'd like to be able to do this in the factory itself. As far as I know, there is not attributes_for callback or anything else that would allow me to change an attribute only while using attributes_for and not build or create.
I'm aware that this use case maybe isn't right for FactoryBot since FactoryBot's attributes_for mainly returns attributes for creating objects. However this use case also treats them as valid attributes of an already created object.
I'd like to know what you think of this use case and maybe provide me with an Idea how to cover this case correctly.
Thx for your help!

Btw. I know that the Model ID in the store_dir path is obviously a problem too, this can be changed tho.

So I took the pragmatic way of just defining a rspec helper and still merge the attributes in the test:
This isn't really dry since the storage_dir is defined here and in the uploader (Set in an ApplicationUploader) this can be improved if needed.
module Carrierwave
  module Helpers
    def upload_path(model, file_name)
      "#{Rails.root}/public/#{Application.config.carrierwave_folder}/#{model.class.to_s.underscore.pluralize}/#{Time.current.year}/#{Time.current.month}/#{Time.current.day}/#{model.id}/#{file_name}"
    end
  end
end


Outdated videos

The link to the 'ANT Framework 1.0 (Youtube)' demo video in the README appears to be outdated. Can this be updated, or is there an alternative resource for the demo?

We are currently creating a demo video.
It will be updated soon.

We are currently creating a demo video.
It will be updated soon.


Ionic v2 custom input inside ion-item

Hi,
My custom input work well but when i put it in this structure it don't appears.

Search

this is my component code
import {Component, Input} from 'angular2/core';
//import {IONIC_DIRECTIVES} from 'ionic-angular';
TokenField.ts
@Component({
selector: 'itx-tokenfield',
//directives: [IONIC_DIRECTIVES],
templateUrl: 'build/components/TokenField.html',
})
export class ItxTokenField  {
@Input() value;
constructor() {
}

}
TokenField.html

anyone can help me?

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v6.0.0
Xcode version: Xcode 7.2.1 Build version 7C1002

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum (forum.ionicframework.com). There are a ton of awesome devs on there that will be able to help you! Thanks for using Ionic!


Error in texturing

Here is the detailed error:

It seems like something went wrong during rendering, could you tell me how to deal with it?

Hiii @yejr0229  .. I am getting a similar error, were you able to solve it ?


[RESOLVED] Unavailable by ICMP ping

Problem started at 20:48:33 on 2023.07.19
Problem name: Unavailable by ICMP ping
Host: S100-Santiago
Severity: High
Operational data: Down (0)
Original problem ID: 32851
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23516&eventid=32851

Problem has been resolved in 3m 0s at 20:51:33 on 2023.07.19
Problem name: Unavailable by ICMP ping
Host: S100-Santiago
Severity: High
Original problem ID: 32851


[EXPERIMENT] Do what Java does: retry and hope the best

Java in bugfix for [1] does very same thing: on
AccessDeniedEx it just retries. Here, the existing Retry utility is extended, and now "retry for given time" new method added "retry for given attempts" as well. The count of attempts and sleep times between attempts (probably unimportant) are exposed as system properties.
[1] https://bugs.openjdk.org/browse/JDK-8252883
Patch experiment for https://github.com/apache/maven-mvnd/issues/728

This fix is reported as working as well.

Superseded by https://github.com/apache/maven-resolver/pull/216


Online documentation for Set-ProcessMitigation is missing some parameters

Both https://github.com/MicrosoftDocs/windows-powershell-docs/blob/master/docset/windows/processmitigations/set-processmitigation.md and https://docs.microsoft.com/en-us/powershell/module/processmitigations/set-processmitigation?view=win10-ps is missing some documentation for various Parameters.
Get-Help with updated files seems to be correct.
The following Parameters are missing from the links I mentioned above:
    -EAFModules <String[]>
        Modules to be added to the EAF+ mitigation.

        Required?                    false
        Position?                    named
        Default value                None
        Accept pipeline input?       False
        Accept wildcard characters?  false

    -Force <String>
        Overrides a system setting either on or off depending on the level this is set at. Will force "on"/"off" all mi
        tigations provided in the -Enable list

        Required?                    false
        Position?                    named
        Default value                None
        Accept pipeline input?       False
        Accept wildcard characters?  false

    -IsValid [<SwitchParameter>]
        Set to check the given XML file for validity. Requires local .xsd

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       False
        Accept wildcard characters?  false

    -Remove [<SwitchParameter>]
        Removes a mitigation entry from the registry.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       False
        Accept wildcard characters?  false

    -Reset [<SwitchParameter>]
        Resets a specific mitigation entry to defer.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       False
        Accept wildcard characters?  false

    -System [<SwitchParameter>]
        Used to configure system defaults rather than individual apps.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       False
        Accept wildcard characters?  false

@officedocsbot assign @yogkumgit

@kenwith please merge this PR, if you find it suitable

@VLG17  Thank you very much for the contribution and updating the documentation with PR. @joakimlemb  Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@officedocsbot close


Pipes working with Mekanism?

I cant seem to get the pipes to work with mekanism machines. Is this a known issue or am I doing something wrong? I am trying to filter items for processing ore but the machine wont take the items.

Make sure that the items can go in where you are trying to put them by confirming with a vanilla hopper.
For mekanism side configuration is a concern and also if the output is filled.

Yea trying to input through the top. Works with vanilla hopper but not the pipe. Right now had to set up 2 diff chests then hopper bottom chest to machine. reason for diff chests am filtering ores in. And yea was using filter but have tryed the pipe with filter and without. Niether would work

Alright then we are going to need more information. Please post screenshots of the entire setup.


Understanding fundamental programming principles

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[ ] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

`This closes #2241

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Hey @Muthoni-Irungu 👋
Just checking up if everything is ok.
Please do to hesitate to reach out if there is a problem.
Regards.

I'm still working on it

@BrianaNzivu just wanted to get a status update on this PR - if it still needs some work before it is ready to publish - we can go ahead and close it - to allow the author to work through those.

Hey @Muthoni-Irungu :wave .
I can't see an introduction to the article plus the table of contents has been done wrongly.
This is how it should be done:
The Covariant Return type
Please make this corrections and ping me when done.

@BrianaNzivu  how is the progress?

Working on it.


Restart dialogs

Fixes https://github.com/PerfectFit-project/virtual-coach-issues/issues/296 for the goal-setting dialog.

@wbaccinelli , could you please take a look what I am missing in actions_idle_commands.py to let the state machine figure out whether there is an uncompleted dialog after the user types "verder"?

Moving everythting to the FSM was too complicated, so the actions will check the presence of uncompleted dialog, and the FSM will trigger the right one. In the FMS there is also an additional layer of checking, in case the user types 'verder' (which triggers the rule for continuing the dialog in any case) when this is not allowed.


Fix pllsrc bits for HSE

cc @pigrew

Relevant code was introduced in https://github.com/stm32-rs/stm32f0xx-hal/pull/87

Looks correct to me, thanks for noticing.
RCC is getting closer to correct. :)


Polish tests and migrate or delete old tests

This PR does the following:

Polish test includes (include either gmock or gtest, but not both),
Use better methods to find properties to further increase maintainability of tests
Migrate a few old tests in the sense that all previously tested functionality is now tested by new automated (visual) tests
Delete all tests that are (now) superfluous as they are covered by unit or visual tests
Delete a bunch of old tests that seem to not test anything useful anymore. The last commit especially contains a few tests that we deem now irrelevant.

CI:

Linux
Linux-aarch64
macOS
Windows

new CI after rebase:

Linux
Linux-aarch64
macOS
Windows

CI after rebase:

Linux
Linux-aarch64
macOS
Windows

CI after rebase:

Linux
Linux-aarch64
macOS
Windows
The current master contains an MSBuild warning for std::copy in map. This is not fixed by this PR.


[BUG] StratifiedGroupKFold import breaks pytest discovery

Describe the bug

Pytest discovery fails at sktime/classification/tests/test_sklearn_compatability.py when importing 'StratifiedGroupKFold' from 'sklearn.model_selection'
To Reproduce

pytest discovery
conda run python /Users/user/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /Users/user/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir /Users/user/dev/sktime -s --cache-clear

Expected behavior

Expected not to get
sktime/classification/tests/test_sklearn_compatability.py:17: in <module>
    from sklearn.model_selection import (
E   ImportError: cannot import name 'StratifiedGroupKFold' from 'sklearn.model_selection'

Additional context

StratifiedGroupKFold is introduced in the latest stable version of sklearn (1.0.2). Sktime requires version 0.24.0 or higher, but if I install 1.0.2 then other tests (testing sklearn version) fail.
Temporary solution: comment out the import and use of StratifiedGroupKFold in sktime/classification/tests/test_sklearn_compatability.py
Versions
main commit 88c08e92c058b9c83322646744ec0241e2dcaaf5

System:
python: 3.8.10 (default, May 19 2021, 11:01:55)  [Clang 10.0.0 ]
executable: /Users/user/opt/anaconda3/envs/sktime-dev/bin/python
machine: macOS-10.16-x86_64-i386-64bit
Python dependencies:
pip: 21.1.3
setuptools: 52.0.0.post20210125
sklearn: 0.24.2
sktime: 0.10.1
statsmodels: 0.12.2
numpy: 1.21.2
scipy: 1.7.1
pandas: 1.3.4
matplotlib: 3.4.2
joblib: 1.1.0
numba: 0.52.0
pmdarima: 1.8.2
tsfresh: 0.18.0

@TonyBagnall, the sktime/classification/tests/test_sklearn_compatability.py was introduce by you recently, I think?
This prevents test discovery with older versions.
@lmmentel, one thought form this: should we also CI test for tests passing on the combination of oldest versions?

what is the desirable outcome, increase our requirements for sklearn to 1.0 or reduce the code tests to that which is compatible with 0.24 to 1.02? Either fine with me, but we should check nothing else breaks with 1.02, they have a history of random interface changes. FYI, @MatthewMiddlehurst introduced this, not me.

I would prefer the second - there's always a trade-off between new features and downwards compatibility. In this case, I think the downwards compatibility far outweighs the feature (since it's used only in testing, and the specific cv object does not seem to add much in case coverage).


refactor(ecc-utils-design): minor-fixes

Description

Fixes #(issue)
Checklist

[ ] My code follows the contributing guidelines of this project.
[ ] I am aware that all my commits will be squashed into a single commit, using the PR title as the commit message.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code in hard-to-understand areas.
[ ] I have updated the user-facing documentation to describe any new or changed behavior.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have not reduced the existing code coverage.

Comments

:sweat_smile: : that fucntion was just there as a temporary fix till I add more feature which should probably resolve this, I didn't wanted to add eslint rule to ignore it thats why I didn't add the rule.

😅 : that fucntion was just there as a temporary fix till I add more feature which should probably resolve this, I didn't wanted to add eslint rule to ignore it thats why I didn't add the rule.

yh, I just turned it to a warning so it can still be resolved later. Requesting update on each method call is too inefficient even as a temporary fix.

@SalihuDickson I have ignored the eslint rule in the file itself because I know the scope of the problem and don't want to extend eslintrc as that will give more warning. That way aligns your solution as well, incrementally we might add to the pacakge and remove the error there itself. Is that fine :slightly_smiling_face: ?


Failed to read schema document dbchangelog-3.5.xsd

Liquibase Version:
We are using liquibase-gradle-plugin 1.2.4, I think this is using liquibase-core 3.4.2.
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Gradle dependency: 'org.liquibase:liquibase-gradle-plugin:1.2.4'
Database Vendor & Version:
Docker image: mysql:5.7
Operating System Type & Version:
Docker image: gradle:6.2.1-jdk8
Description
Liquibase stopped running our xml migration suddenly, there were no changes made. Our scripts with 2 years old started failing.
Similar problem to this:
https://github.com/liquibase/liquibase/issues/1038
Steps To Reproduce
./gradlew :metadata-mysql:update -PrunList=test -PdbUrl=jdbc:mysql://mysql:3306/test -PdbUsername=root -PdbPassword=password

Actual Behavior
Fri May 15 01:36:42 GMT 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
INFO 5/15/20 1:36 AM: liquibase: Successfully acquired change log lock
WARNING 5/15/20 1:36 AM: liquibase: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
INFO 5/15/20 1:36 AM: liquibase: Successfully released change log lock
Unexpected error running Liquibase: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

SEVERE 5/15/20 1:36 AM: liquibase: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
liquibase.exception.ChangeLogParseException: Error parsing line 8 column 106 of liquibase/changelog-test.xml: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
	at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:114)
	at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:17)
	at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:227)

┆Issue is synchronized with this Jira Bug by Unito

hey @federico-piazza  -- are you still having this issue? Liquibase site was updated yesterday and potentially this link broke, but it should be good now.
I can reach this doc via curl and in the browser -- can you?

@mariochampion it seems all is good now, thanks for letting me know. Closing this one.


Save and Run not working properly

See #34 for more details.
Essentially runCode() was copied and pasted over to workflow.js from script.js, but a call to changeMode() was not adjusted and was out of scope.

Fixed by #34.


Add json vardump

Q
A

Is bugfix?
✔

New feature?
✔

Breaks BC?
❌

Tests pass?
✔

Please make test case for json serialization


searchMaxLimit > 0 causes options to be queried to exclude one of the options

Set searchMaxLimit to something greater than 0 but less then the number of options
Type in each possible option in the search box

Result:
One of the options will not be found.
You can try this by trying to search for "blue" in this plunker:
https://plnkr.co/edit/WTadkY5A4dgXXzdvZcBe?p=preview
I've provided a workaround to this by changing Line 23 of search-filter.pipe.js to the following:
if (prevResults && prevStr !== '') {

Update: My workaround actually does not work... Any suggestions on how to get around this bug in the meantime?

I just tried to add one more group and in there all items were searchable.
It's only skipping the first item in the first group...


overworld | resetting dialogue-statue automatically after leaving dialogue

Motivation
currently ( in the changes introduced in #183 ) we have a keypress Q that helps to leave the dialogue and move again.
This is not desired and was added to have a testing structure for the upcoming dialogue-sytem
to be found in Player.gd
func check_input():
Implementation
This functionality is part of #145  and should be considered there too

has been resolved with #266


changed default search behavior to search only across this doc project

Failing with error "error: Could not find suitable distribution for Requirement.parse('emod-typhoid==0.0.5')"

Failing with error "error: Could not find suitable distribution for Requirement.parse('emod-typhoid==0.0.5')"

@JSchripsema-IDM Is the setup script pointing to artifactory? I don't know why it wouldn't be able to get the package it's failing on.

@jonathanhhb Yes, the RTD project has a PIP_EXTRA_INDEX_URL environment variable that points to our Artifactory for pip installs.  The build requirements are handled via the readthedocs.yml and it looks like dependencies are being installed via setup.py, which needs a line to point to Artifactory.


Impossible to use ^ and $ anchors in pre-release-replacements search regex

When using the “version” string in multiple places in a Cargo.toml file:
[package]
name = "gladis"
version = "1.0.2-alpha.0"

# ...

[dependencies]
gladis_proc_macro = { version = "1.0.2-alpha.0", optional = true, path = "../gladis_proc_macro" }

The simple search="version = .*" used in pre-release-replacements will match both the package version and the version of the dependency. Indeed, from the documentation of the regex crate, the match will not check the newlines by default:

Notice the use of the ^ and $ anchors. In this crate, every expression is executed with an implicit .*? at the beginning and end, which allows it to match anywhere in the text. Anchors can be used to ensure that the full text matches an expression.

This is problematic, because the replacing template needs to be different depending on the line one wants to modify. It looks like using anchors inside of the regular expressions would be the best option. However, when adding the ^ and $ anchors in the search attribute for a simple README.md example, nothing will be matched:
README.md
```toml
[dependencies]
gladis = "1.0.1"
```

release.toml
pre-release-replacements = [
  {file="README.md", search="^gladis = .*$", replace="gladis = \"{{version}}\""},
]

cargo release
[2022-02-02T14:30:26Z ERROR cargo_release] Fatal: For `^gladis = .*$`, at least 1 replacements expected, found 0

But without the anchors, it works:
pre-release-replacements = [
  {file="README.md", search="gladis = .*", replace="gladis = \"{{version}}\""},
]

Without the ability to use anchors in regular expressions, it is impossible to properly update a Cargo.toml file containing multiple version strings both in package info and in its dependencies, like example provided at the top of this issue.

I think it could make sense to enable multi_line to change the meaning of ^ and $.
I am curious about your Cargo.toml example.  Why are you running replacements on that?

v0.20.0 is released with the fix

Hi, thanks for the quick fix! I tested it locally and it fixes my usecase.
I am hosting multiple crates that depend on themselves inside of the gladis repository. I want my crate gladis_proc_macro to depend on the same version of gladis that is released, without having to release them manually. Here is the final pre-release-replacements list that I managed to use in the repository (pushed so you can have a look):
pre-release-replacements = [
  {file="README.md", search="gladis = .*", replace="gladis = \"{{version}}\""},
  {file="Cargo.toml", search="^version = \".*\"$", replace="version = \"{{version}}\""},
  {file="Cargo.toml", min=0, search="^gladis_proc_macro = \\{ version = \".*\", path = \"../gladis_proc_macro\" \\}$", replace="gladis_proc_macro = { version = \"{{version}}\", path = \"../gladis_proc_macro\" }"},
  {file="Cargo.toml", min=0, search="^gladis_proc_macro = \\{ version = \".*\", optional = true, path = \"../gladis_proc_macro\" \\}$", replace="gladis_proc_macro = { version = \"{{version}}\", optional = true, path = \"../gladis_proc_macro\" }"},
]

If there is a more idiomatic way to do this using cargo release, please let me know!

So gladis depends on gladis_proc_macro and both are in a workspace.
When gladis_proc_macro is released, cargo-release will automatically update the dependency on it in gladis.
Some people want their user-facing crate and proc-macro crate to have their tag and version in lock step.  In v0.18, we added support for shared-version = true.  For each crate that has that set, we'll error out if they are not releasing with the same version.  In v0.19, we now automatically select an appropriate version instead of error and allow you to set the same tag template on both crates.  So once you have it configured it just works.  clap and clap_derive are an example of this.


Merge to live

Docs Build status updates of commit f25e28e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

.openpublishing.publish.config.json
:x:Error

Details

Line 136: [Error] Restore nuget package W:\3o5i-s\.optemp\dependentPackages\opbuild.templates.uref\packages.config in folder:W:\3o5i-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in https://SiteHelp and include the build report and the following error message for our team to troubleshoot: Errors in packages.config projects     Unable to find version '1.84.4' of package 'opbuild.templates.uref'.       C:\Users\ContainerAdministrator\.nuget\packages\: Package 'opbuild.templates.uref.1.84.4' is not found on source 'C:\Users\ContainerAdministrator\.nuget\packages\'.       https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2: Package 'opbuild.templates.uref.1.84.4' is not found on source 'https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2'.
Line 136: [Error] Restore nuget package W:\3o5i-s\.optemp\dependentPackages\Microsoft.OpenPublishing.CommonPlugins\packages.config in folder:W:\3o5i-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in https://SiteHelp and include the build report and the following error message for our team to troubleshoot: Errors in packages.config projects     Unable to find version '1.0.224' of package 'Microsoft.OpenPublishing.CommonPlugins'.       C:\Users\ContainerAdministrator\.nuget\packages\: Package 'Microsoft.OpenPublishing.CommonPlugins.1.0.224' is not found on source 'C:\Users\ContainerAdministrator\.nuget\packages\'.       https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2: Package 'Microsoft.OpenPublishing.CommonPlugins.1.0.224' is not found on source 'https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2'.

.openpublishing.publish.config.json

Line 289: [Error] Restore of dependent packages failed. Please check your .openpublishing.publish.config.json?on the configuration of the dependent packages or ask for help?in Docs Support teams channel. Please also include the following error code for our team to troubleshoot: 1

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit f25e28e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

.openpublishing.publish.config.json
:x:Error

Details

Line 136: [Error] Restore nuget package W:\41z2-s\.optemp\dependentPackages\opbuild.templates.uref\packages.config in folder:W:\41z2-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in https://SiteHelp and include the build report and the following error message for our team to troubleshoot: Errors in packages.config projects     Unable to find version '1.84.4' of package 'opbuild.templates.uref'.       C:\Users\ContainerAdministrator\.nuget\packages\: Package 'opbuild.templates.uref.1.84.4' is not found on source 'C:\Users\ContainerAdministrator\.nuget\packages\'.       https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2: Package 'opbuild.templates.uref.1.84.4' is not found on source 'https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2'.
Line 136: [Error] Restore nuget package W:\41z2-s\.optemp\dependentPackages\Microsoft.OpenPublishing.CommonPlugins\packages.config in folder:W:\41z2-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in https://SiteHelp and include the build report and the following error message for our team to troubleshoot: Errors in packages.config projects     Unable to find version '1.0.224' of package 'Microsoft.OpenPublishing.CommonPlugins'.       C:\Users\ContainerAdministrator\.nuget\packages\: Package 'Microsoft.OpenPublishing.CommonPlugins.1.0.224' is not found on source 'C:\Users\ContainerAdministrator\.nuget\packages\'.       https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2: Package 'Microsoft.OpenPublishing.CommonPlugins.1.0.224' is not found on source 'https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v2'.

.openpublishing.publish.config.json

Line 289: [Error] Restore of dependent packages failed. Please check your .openpublishing.publish.config.json?on the configuration of the dependent packages or ask for help?in Docs Support teams channel. Please also include the following error code for our team to troubleshoot: 1

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit f25e28e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/docs-ref-autogen/excel/excel/excel.chart.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.pivottable.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.range.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.rangeareas.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.shape.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.table.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.workbook.yml
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excel/excel.worksheet.yml
:white_check_mark:Succeeded

generate-docs/api-extractor-inputs-excel/excel.d.ts
:white_check_mark:Succeeded

generate-docs/api-extractor-inputs-excel/tsdoc-metadata.json
:white_check_mark:Succeeded

generate-docs/json/excel/excel.api.json
:white_check_mark:Succeeded

generate-docs/package-lock.json
:white_check_mark:Succeeded

generate-docs/script-inputs/excel.d.ts
:white_check_mark:Succeeded

generate-docs/scripts/package-lock.json
:white_check_mark:Succeeded

generate-docs/scripts/package.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Adding Css to the calculator

Hey , I want to add css in the calculator . I 'll make the interface as like glass of multicolour.
pls assign this to me under hacktoberfest 2022

Hey, I want to contribute on this issue. Please assign this task to me.

hello! i want to contibute to this project. pls assign it to me

Hey, I am interested to contribute on this issue. Can you assign this task to me.

I want to contribute to this issue. please assign this issue to me.

Please assign this work to me. I will contribute code to this issue ..Kindy assign me this work.


Free RX 580 8GB for a tinygrad contributor in Norway.

Got a card to spare and would like to gift it to a tinygrad contributor in the hopes that it might improve the useful lifespan of these numerous cards and similar ones.
I'll ship it to you within the borders of Norway.
Couldn't find anywhere better to post this.

Got sent the discord link.


Added index length support for MySQL

MySQL has a capability to specify index length when creating indices. This pull request is about to add such capability to node-db-migrate.
To specify index length define columns as objects, e.g.:
db.addIndex('table', 'index', [
  { name: 'columnA', length: 12},
  { name: 'columnB', length: 4},
  'columnC'
])

@sbesedkov Great, thanks for contributing, it is lacking documentation right now, I will look into adding it myself.


Compatibility with better_errors 2.5

Not sure if it really doesn't work or if it's just a miss in the Gemfile. Fixing the latter should be trivial.
In snapshot (Gemfile.lock):
    better_errors (= 2.5.0)

  In Gemfile:
    better_errors

    better_errors-pry was resolved to 1.0.2, which depends on
      better_errors (>= 2.3.0, ~> 2.3.0)

Thanks for the report! I just released 1.0.3 of better_errors-pry which should fix this dependency.


feat: comparing nested structures

Add new function to normalize strings to avoid issues when comparing nested stuff.
Add tests for nested comparison.
Add new terraform plan in json as test data.

Looks great to me! It's good to get those gjson types out of there, isn't it?

I wish someone had told me that before 🤣


We got some issues with ARO in Azure ARC.

When we add a new cluster in Azure ARC and the cluster is ARO, we had some issues to install the extensions available on Azure ARC.
Some time the cli gets the right values for OpenShift , but is the most of cases it does not get.
So adding the --distribution OpenShift and --infrastructure azure are needed for ARO.

@JnHs

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

hello @JnHs do you have any news about that?

hello @JnHs do you have any news about that?

Hi @seilorjunior - thanks for your patience, we're still looking into this to confirm the intended behavior. I'll sign off and/or provide an update as soon as possible. Thanks again for raising this issue and creating the PR!


Configure mediaflux to use the CAS header we configure

Acceptance criteria

[ ] Configure mediaflux so that it looks for the http header we send indicating whether the user is CAS authenticated

Arcitecta work being tracked here - https://support.arcitecta.com/hc/en-us/requests/6652

Duplicate ofr #863, closing


ServiceBus EventSource remove allocations and boxing

Similar to https://github.com/Azure/azure-sdk-for-net/pull/26989 but for ServiceBus to make @JoshLove-msft a happy person too.
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

/azp run net - servicebus - tests

The test LogsTransactionEvents seems to be the source of failures, though it appears to be flaky rather than outright failing.   Might be a timing issue or may be something more involved.  I haven't had a chance to dig into it at all.

I can also look into it sometime next week. I'm mostly AFK enjoying carnival 🙃

Pushed an update

Is it possible to rerun the tests here to see if things are still flaky?

/azp run net - servicebus - tests

Eyeballing it again I think the order of parameters, types as well as the sizes of the parameters should match what we had before. I can explain why it is failing. I pushed now an update the removes the unsafe on one of the Event methods to make sure we have nothing unsafe on the event methods. Other than that I'm a bit clueless what it could be. I need to probably setup the test environment at some point on my machine to get more insights...

/azp run net - servicebus - tests

Eyeballing it again I think the order of parameters, types as well as the sizes of the parameters should match what we had before. I can explain why it is failing. I pushed now an update the removes the unsafe on one of the Event methods to make sure we have nothing unsafe on the event methods. Other than that I'm a bit clueless what it could be. I need to probably setup the test environment at some point on my machine to get more insights...

Agreed.   I've revisited this a couple of times in the last two weeks, and I am at a loss.   The results are consistent, though, and show that something in LogsTransactionEvents gets upset.  I wonder if this maybe has something to do with TestEventListener rather than the event source itself?   Or maybe the Delay used in the test?   I haven't been able to dig into those areas yet.

Narrator: It was a bool who made him not sleep.

This simple repro helped quite a bit
// See https://aka.ms/new-console-template for more information
using System.Diagnostics.Tracing;
using System.Runtime.CompilerServices;

SomeEventSourceListener listener = new SomeEventSourceListener();

SomeEventSource.Log.TransactionDischarged("TransactionId", " AmqpTransactionId", true);

Console.ReadLine();

sealed class SomeEventSourceListener : EventListener
{
    protected override void OnEventSourceCreated(EventSource eventSource)
    {
        if (eventSource.Name.Equals("Some-EventSource"))
        {
            EnableEvents(eventSource, EventLevel.Verbose, EventKeywords.All);
        }
    }

    // from https://blogs.msdn.microsoft.com/dotnet/2018/12/04/announcing-net-core-2-2/
    // Called whenever an event is written.
    protected override void OnEventWritten(EventWrittenEventArgs eventData)
    {
        // Write the contents of the event to the console.
        Console.WriteLine($"ThreadID = {eventData.OSThreadId} ID = {eventData.EventId} Name = {eventData.EventName}");
        for (int i = 0; i < eventData.Payload.Count; i++)
        {
            string payloadString = eventData.Payload[i] != null ? eventData.Payload[i].ToString() : string.Empty;
            Console.WriteLine($"    Name = \"{eventData.PayloadNames[i]}\" Value = \"{payloadString}\"");
        }
        Console.WriteLine("\n");
    }
}

[EventSource(Name = EventSourceName)]
internal class SomeEventSource : EventSource
{
    private const string EventSourceName = "Some-EventSource";

    internal const int TransactionDischargedEvent = 91;

    protected SomeEventSource()
    {
    }

    public static SomeEventSource Log { get; } = new SomeEventSource();

    [Event(TransactionDischargedEvent, Level = EventLevel.Informational, Message = "AmqpTransactionDischarged for LocalTransactionId: {0} AmqpTransactionId: {1} Rollback: {2}.")]
    public void TransactionDischarged(string transactionId, string amqpTransactionId, bool rollback)
    {
        //WriteEvent(TransactionDischargedEvent, transactionId, amqpTransactionId, rollback);
        TransactionDischargedCore(TransactionDischargedEvent, transactionId, amqpTransactionId, rollback);
    }

    [NonEvent]
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    private unsafe void TransactionDischargedCore(int eventId, string transactionId, string amqpTransactionId, bool rollback)
    {
        fixed (char* transactionIdPtr = transactionId)
        fixed (char* amqpTransactionIdPtr = amqpTransactionId)
        {
            var eventPayload = stackalloc EventData[3];

            eventPayload[0].Size = (transactionId.Length + 1) * sizeof(char);
            eventPayload[0].DataPointer = (IntPtr)transactionIdPtr;

            eventPayload[1].Size = (amqpTransactionId.Length + 1) * sizeof(char);
            eventPayload[1].DataPointer = (IntPtr)amqpTransactionIdPtr;

            var rollbackInt = Convert.ToInt32(rollback);
            eventPayload[2].Size = Unsafe.SizeOf<int>();
            eventPayload[2].DataPointer = (IntPtr) Unsafe.AsPointer(ref rollbackInt);

            WriteEventCore(eventId, 3, eventPayload);
        }
    }
}

This should now pass (famous last words)

/azp run net - servicebus - tests

/azp run net - servicebus - tests

.... and I just realized Josh already ran the tests, so now we get two clean runs.  😄

Ping ;)

Ping ;)

Will take a look today - thanks again for your patience @danielmarbach!