Can AlphaFold be used to complete loops?

Dear experts,
I wonder if there is a way to use the wonderful power of alphafold just to model missing parts of existing pdbs, e.g. long loops?
I used to use modeller, but it would be great to use alphafold for this taks, specially for long loops.
Thanks!
Fabian

Hi, @fglaser.
Now that colabfold can take --custom-template-path argument to specify a pdb file of interest, now it is possible to complement missing loops.

Here is another example of PDB: 1QG8, which is used as an example in the tutorial of Modeller. https://salilab.org/modeller/wiki/Missing residues

To use this feature, please update your localcolabfold first (./update_linux.sh .).
Yoshitaka

Dear Yoshita,
I did succeed to get a loops recontruction using alphafold as you suggested, but I noticed alphafold also reconstructed the rest of the molecule, not by much but I would prefer only to build the loops without any reconstruction or update of the rest of the molecule, would it be possible?
Why the rest of the molecule is updated or modified too?
I used the following command:
colabfold_batch --amber --num-recycle 3 --num-models 2 --model-order 1,2 --templates  --custom-template-path template --msa-mode single_sequence 6vp9_AUX.fasta models_AF_AUX
And the result if you would like to take a looks is the attached model, which has the loops completed, but when if you compare it with the original file (6vp9 chain B) has clear differences.
Thanks!
Fabian

Fabian Glaser, PhD
Structural and Computational Biology Unit
The Lorry I. Lokey Center for Life Sciences and Engineering
Technion - Israel Institute of Technology, Haifa, Israel

On 16 Mar 2022, at 9:22, Yoshitaka Moriwaki @.***> wrote:
Hi, @fglaser https://github.com/fglaser.
Now that colabfold can take --custom-template-path argument to specify a pdb file of interest, now it is possible to complement missing loops.
https://user-images.githubusercontent.com/16487484/158537073-50848052-9091-45cd-9247-a530bf93369c.png
Here is another example of PDB: 1QG8, which is used as an example in the tutorial of Modeller. https://salilab.org/modeller/wiki/Missing residues https://salilab.org/modeller/wiki/Missing residues
https://user-images.githubusercontent.com/16487484/158536862-5e4b8acd-c3d7-4459-8e54-9a0a696c1d5a.png
To use this feature, please update your localcolabfold first (./update_linux.sh .).
Yoshitaka
—
Reply to this email directly, view it on GitHub https://github.com/YoshitakaMo/localcolabfold/issues/49#issuecomment-1068813037, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSBVSGC4RUQVS7ABZ7DUT3VAGD2NANCNFSM5LWJ6UJA.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.

Thanks a lot!
This is very useful,
Fabian

Fabian Glaser, PhD
Structural and Computational Biology Unit
The Lorry I. Lokey Center for Life Sciences and Engineering
Technion - Israel Institute of Technology, Haifa, Israel

On 16 Mar 2022, at 9:22, Yoshitaka Moriwaki @.***> wrote:
Hi, @fglaser https://github.com/fglaser.
Now that colabfold can take --custom-template-path argument to specify a pdb file of interest, now it is possible to complement missing loops.
https://user-images.githubusercontent.com/16487484/158537073-50848052-9091-45cd-9247-a530bf93369c.png
Here is another example of PDB: 1QG8, which is used as an example in the tutorial of Modeller. https://salilab.org/modeller/wiki/Missing residues https://salilab.org/modeller/wiki/Missing residues
https://user-images.githubusercontent.com/16487484/158536862-5e4b8acd-c3d7-4459-8e54-9a0a696c1d5a.png
To use this feature, please update your localcolabfold first (./update_linux.sh .).
Yoshitaka
—
Reply to this email directly, view it on GitHub https://github.com/YoshitakaMo/localcolabfold/issues/49#issuecomment-1068813037, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSBVSGC4RUQVS7ABZ7DUT3VAGD2NANCNFSM5LWJ6UJA.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.

Dear Yoshitaka Morikawi,
I am following this discussion here as I have the same question than @fglaser about rebuilding loops using colabfold :
Is there any way to build only missing loops and leave the rest of the protein untouched ?
So far I only found a way to do this by extracting the loops created by AF and pasting them in the template, so I wondered if there was any way to do it automatically.
Best,
Adrien Schahl

Also commenting to follow the discussion RE loop addition without full model reconstruction

is there a way to model a missing loop using colabfold leaving the rest of the protein untouched?


Replace url extension regex

Fixes issue #3059.

Doesn't browserify add polyfills for Node APIs? Seems like you could do this with url and path modules:
const url = require('url');
const path = require('path');

const fullUrl = 'http://i.imgur.com/Mvv4bx8.jpg?querystring=true';
const result = path.extname(url.parse(fullUrl).pathname); // '.jpg'

yes, but the url polyfill is pretty big. I ended up removing it from resource-loader due to the size. Since we don't need full URL parsing I figured this would be a lighter solution.

Makes sense, I'm cool with this then. Good improvement and nice unit-tests.

Nice man! 👍 for the tests too!


Release/v1.7.0 master

Purpose
EVM https://github.com/Taraxa-project/taraxa-evm/pull/223
How does the solution address the problem

Changes made

prnet cleaned-up successfully


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.82",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e20cb072679bdb47747ccc8bee3233a4cf0765a"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "3e20cb072679bdb47747ccc8bee3233a4cf0765a",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "scsi: scsi_debug: Fix out-of-bound read in resp_readcap16()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.82 by commit 3e20cb072679bdb47747ccc8bee3233a4cf0765a. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1002292


Confusion about Force Index

As current force index indicator implementation, the result is much depended on the history range. If range adjusted, the result will be changed. Here is a small example(to make it easier, window size is change to 3).
let us say, there is a full data like this.
df_full = pd.DataFrame({'close': [1, 2, 3, 4, 5, 6, 7, 8], 'vol': [10, 20, 30, 40, 50, 60, 70, 80]})
and a sub dataframe start with 4 from last dataframe.
df_partial = pd.DataFrame({'close': [4, 5, 6, 7, 8], 'vol': [40, 50, 60, 70, 80]})
then do the fi for both dataframes.
fi_full = ForceIndexIndicator(close=df_full['close'], volume=df_full['vol'], window=3).force_index()
fi_partial = ForceIndexIndicator(close=df_partial['close'], volume=df_partial['vol'], window=3).force_index()

print(fi_full)
print(fi_partial)

The output from above code is:
0         NaN
1         NaN
2         NaN
3    32.50000
4    41.25000
5    50.62500
6    60.31250
7    70.15625
Name: fi_3, dtype: float64
0      NaN
1      NaN
2      NaN
3    62.50
4    71.25
Name: fi_3, dtype: float64

The result shows the same day have different values. (take the last day with close price 8 as example, df_full return 70.15625, and df_partial return 71.25)
The result will cause this indicator very unstable when I do cross validate on some dataset, because the dataset have to be split to small dataset with different length.
In my option, the data should be cut into small pieces with giving window, and then do the calculation. the implementation may be changed to something like.
def fixed_fi_func(close, vol, window):
    fi_series = (close - close.shift(1)) * vol
    return fi_series.rolling(window).apply(lambda x: _ewm(x, window))

def _ewm(x, window):
    return x.ewm(span=window, min_periods=window, adjust=False).mean().iloc[-1]

I'm not sure whether my understanding is correct, just want to take a discussion. If something unclear, please leave a comment.

According to #22
Current implementation is match with Wikipedia's definition.
So just close the issue.


Fixes #77. Use tiny() in WetRemoval

I believe this is the fix for #77. It lets the model run, at least, with GCC at C90. My guess is that the stock GCC Release flags are flushing a verrrrry small number to zero or it's just verrrrrry small. So the if statement says, yes, this is greater than zero, and then the division is getting either a divide-by-zero or a divide-by-denormal. (@tclune might have more insight)
Weirdly, I tested this bugfix with Intel and oddly it was zero-diff at C90. But I am in no way confident this can always be zero-diff since there could be a weird column out there that would trigger a different path, so I'll label it non-zero-diff for now.

I have rebased this branch against the newer develop

fine with me


Update route.js  for easy to understand

Fixes #[replace brackets with the issue number that your pull request addresses].
Changes proposed in this pull request:

[list out summary of changes here]
[list out summary of changes here]
[list out summary of changes here]
[etc]

Note: pull requests without proper descriptions may simply be closed without further discussion. We appreciate your contributions, but need to know what you are offering in clearly described format. Thanks! (you can delete this text)
cc @HospitalRun/core-maintainers

@teerapat2539 this is not a meaningful PR. Please focus future contribution efforts on open issues and significant functionality,


have trouble running the train

Hi, thanks for your contribution.I am having trouble running train_test.py.
Traceback (most recent call last):
File "train_test.py", line 12, in
from action_predict import action_prediction
File "Pedestrian-Intent-Prediction-main/action_predict.py", line 8, in
from MultiHeadAttentionClass import MultiHeadedAttention
ModuleNotFoundError: No module named 'MultiHeadAttentionClass'
So what can i do?

I have the same problem, have you solved it?

Hi, thanks for your contribution.I am having trouble running train_test.py.
Traceback (most recent call last): File "train_test.py", line 12, in from action_predict import action_prediction File "Pedestrian-Intent-Prediction-main/action_predict.py", line 8, in from MultiHeadAttentionClass import MultiHeadedAttention ModuleNotFoundError: No module named 'MultiHeadAttentionClass'
So what can i do?

I have the same problem, have you solved it?

when run train use: python train_test.py -c config_files/Ours/PPCI_att_Jaad.yaml or python train_test.py -c config_files_pie/Ours/PPCI_att.yaml

I still have problems.Could you tell me what version of tensorflow you use?
I use tensorflow-gpu 2.2.0 ,cuda10.1 and cudnn 7.6.5


Prevent images from getting cut off

hi @choozn ! thanks for the awesome work on this project. we've just implemented this on our site 404 page and things are looking great. we did run into an issue when the image gets cut off on the left and right side. The images are plenty wide enough (4000px wide) and should keep scrolling instead of getting cut off by the container. Is there something that we can update to achieve this?
I tried adding 120% width to each of the <MouseParallaxChild /> and also the <MouseParallaxContainer />
Here is a screenshot: Image Cut Off
And also a video recording: https://drive.google.com/file/d/1QGXJ4KhK3BXutiXXsQk36zIKHOC0ObBA/view?usp=sharing
Thanks for any advice!

Hey, thanks for the feedback!
That 404 page is looking so cute :D
That's definitely a CSS thing. Looks like the images are set to only fill out 100% of the parallax-container. Because of that, they are cutting off when the transition moves them to the side. I'll try to reproduce the issue tomorrow, it's most likely just a missing CSS property we'll have to find.
I would appreciate you staring the project if you found it helpful.

Ok good to know! I'll take a look into the styling of the images themselves. Awesome work on this project, just gave it a star!

Thank you for letting me know!
Hadn't had the time to check on safari yet. Will hopefully be fixed tomorrow.

The solution is providing the child elements with additional CSS.
Set the width to something higher than 100%. I've used 120% and it worked fine.
Now it no longer cuts off on the right side.
Then you can center the child in the middle by using a negative margin-left. The amount should be half of what you added to the 100%. In this case, that would be 10%.
Now inject that styling either using
updateStyles:
{
width: "120%",
marginLeft: "-10%"
}

or using a class, in your case (Hero-module--background...):
{
width: 120%;
margin-left: -10%;
}

As I see, this worked out as expected. The 404-page looks awesome!


Monitoring issue - jobs not shown

Hi Sergey,
I experienced the problem that some jobs are shown only when the big page size (500) is selected.
I think in the GetJobs function, the .Select((data, i) => new { Index = i + 1, Data = data }) should be called after the .Where(...) filter...
Pls correct me if I'm wrong.

Hi @Thieund
Yep, it's very possible. Let me check, and I'll come back.

Hi Sergey,
FYI (or you already knew): What I wrote here is exactly the same as pull request #14.

@Thieund so, #14 fixes this, right?

Yes, that's right Sergey.

Thanks.


try to writing to no exit pipe

Thanks for fixed #76 .
I use v5.1.1 and run the same pipe code
onchange -v \"**/*/*.scss\" \"**/*/*.css\" -o \"> task/css.txt\" -- echo {{changed}}

css.txt still no content and I get  those message
> onchange -v "**/*/*.scss" "**/*/*.css" -o "> task/css.txt" -- echo {{changed}}

onchange: watching **/*/*.scss, **/*/*.css
onchange: "mobile\test\css\style-edit.css" -> change
onchange: executing outpipe "E:\Program Files\nodejs\node.exe E:\Snow.Huang\project\dev\CampaignBuildTool\node_modules\onchange\echo.js > task/css.txt"
onchange: executing command "echo mobile\test\css\style-edit.css"
onchange: "mobile\test\css\style-edit.css" -> change
'E:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC
onchange: outpipe completed with 1
程序嘗試寫入到一個不存在的管道。(try to writing to no exit pipe)
onchange: command completed with 0

after I try running this code
onchange -v \"**/*/*.scss\" \"**/*/*.css\" -o \"echo {{changed}} > task/css.txt\"

css.txt is witted and exit code looks fine!
> onchange -v "**/*/*.scss" "**/*/*.css" -o "echo {{changed}} > task/css.txt"

onchange: watching **/*/*.scss, **/*/*.css
onchange: "mobile\test\css\style-edit.css" -> change
onchange: executing outpipe "echo mobile\test\css\style-edit.css > task/css.txt"
onchange: outpipe completed with 0

what's happen in first code?

@betsu So I couldn't see any difference between this v5 and v4 code paths here and I wasn't able to replicate your problem, but I've pushed out 5.1.2 to experiment with what might be the issue here by fixing the end of stdout and stderr writes. Can you let me know if it makes a difference? Also, did this work for you on v4?

Hi @blakeembrey,
v4 have same problem and message for me.
5.1.2 it's work fine! but still have one problem:
I use  win10. when ${process.execPath} has space in string that make error for me.
onchange: watching **/*/*.{scss,css}
onchange: "css\style-edit.css" -> change
onchange: executing outpipe "E:\Program Files\nodejs\node.exe E:\Snow.Huang\project\dev\CampaignBuildTool\node_modules\onchange\echo.js > task/css.txt"
onchange: executing command "echo css\style-edit.css"
'E:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC
onchange: outpipe completed with 1
onchange: command completed with 0

try to writing to no exit pipe looks fixed! then I try to fixed ${process.execPath} problem with add double quotes
const ECHO_CMD = `${process.execPath} ${resolve(__dirname, 'echo.js')}
to
const ECHO_CMD = `\"${process.execPath}\" ${resolve(__dirname, 'echo.js')}

and running.
> onchange -v --await-write-finish -o "> task/css.txt" "**/*/*.{scss,css}" -e "**/*/{style,style-source}.css" -- echo {{changed}}

onchange: watching **/*/*.{scss,css}
onchange: "css\style-edit.css" -> change
onchange: executing outpipe ""E:\Program Files\nodejs\node.exe" E:\Snow.Huang\project\dev\CampaignBuildTool\node_modules\onchange\echo.js > task/css.txt"
onchange: executing command "echo css\style-edit.css"
onchange: command completed with 0
onchange: outpipe completed with 0

Oh! success!!
P.S. In line 68
 childOutpipe.stdin.end() maybe change to this.childOutpipe.stdin.end()

@betsu Thanks! That makes sense. Looks like an escaping issue, I'll look into how to better fix that.

@betsu Can you take a look at ?
I settled using single quotes with https://stackoverflow.com/questions/1250079/how-to-escape-single-quotes-within-single-quoted-strings. I first went with https://github.com/substack/node-shell-quote but saw https://github.com/substack/node-shell-quote/pull/34, don't use Windows so I'm not sure about whether you can escape backslashes there? I saw in your example above you didn't need to escape the backslashes so that may be incompatible with Unix.

@blakeembrey I have already tested at #78,  there's no need to escape the backslashes when add double quotes.
Hope it'll help you.

@blakeembrey
I'm sorry for too late to reply,  single quotes in windows still have error massage
onchange -v --await-write-finish -o "> task/css.txt && node task/csscompiled.js" "**/*/*.{scss,css}" -e "**/css/{style,style-source}.css" -- echo {{changed}}

onchange: watching **/*/*.{scss,css}
onchange: "css\style-edit.css" -> change
onchange: executing outpipe "'E:\Program Files\nodejs\node.exe' 'E:\Snow.Huang\project\dev\CampaignBuildTool\node_modules\onchange\echo.js' > task/css.txt && node task/csscompiled.js"
onchange: executing command "echo css\style-edit.css"
�ɮצW�١B�ؿ��W�٩κϺаϼ��һy�k���~�C
onchange: outpipe completed with 1
onchange: command completed with 0

I don't know what's better solution, maybe detecting window then add double quote?

@blakeembrey I understand you worried about double quote's problem. But this issue (path with space) that seems like only double quote can be solved on windows. In node exec document https://nodejs.org/dist/latest-v10.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback written

exec('"/path/to/test file/test.sh" arg1 arg2');
Double quotes are used so that the space in the path is not interpreted as
multiple arguments

Above demo code via index.js work fine!
I'm using vscode terminal that inside are command prompt and powershell.
If you on windows want to use that click tool bar search icon then input cmd or powershell will see that.

@betsu Sorry for the delay. Releasing https://github.com/Qard/onchange/pull/82 now, let me know if it works (I was concerned about the use of backslashes on Windows still).

@blakeembrey Sorry I'm late. I already tested that is working good!
Thanks for release :smiley:


Add exception when errors in logging variables

Currently, when launching the script and having an error in credentials, the error is a bit difficult to understand
What would be great
When detecting an error in fetch_token raise a CredentialException to enlight the user about the fact that it's credentials are wrong

Nice feedback, I work on it ASAP !

Not useful


Add support L16/16000/2

Have a Reolink 800 cam working through the neolink integration.
The config is simple as
streams:
  camera:
  - rtsp://<IP_ADDRESS>:8551/Main

With the audio enabled on the cam i received the following errors
ERROR: MP4 unsupported codec: 96 L16/16000/2
Disabling the audio didn't help that much. As i don't need this stream is there a simple way just to discard it?

What go2rtc version you using? Show your config.

What go2rtc version you using? Show your config.
It's Version: 1.6.2 running in Frigate (replaced the stock one)

So there is nothing much to show
frigate config
go2rtc:
  streams:
    cam1
    - url:
    cam2
    cam3

e.t.c.
For the camera in question the url part ia above
rtsp://<IP_ADDRESS>:8551/Main
If i expand the go2rtc config in frigate than i get stock options
api:
  origin: '*'
log:
  format: text
rtsp:
  default_query: mp4
streams:
  cam1:
  - rtsp://xxx:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
  - ffmpeg:kalitka#audio=aac
  cam2:
  - rtsp://xxx/xxx&channel=1&stream=0?.sdp#input=rtsp/udp
 cam3:
  - ffmpeg:http://xxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=xxx
  camera:
  - rtsp://<IP_ADDRESS>:8551/Main

webrtc:
  candidates:
  - stun:8555

It's complicated situation. L16 codec supported but only for 1 channel. And you have two channels.

It's complicated situation. L16 codec supported but only for 1 channel. And you have two channels.

Well as mentioned i don't need the audio itself so would just rather discard it from the processing loop if that is possible. Any ideas?

Discarding audio track is tracked by https://github.com/AlexxIT/go2rtc/issues/198.

Discard audio track in the 198 issue. This issue about support L16/16000/2

Well. L16/16000/2 also supported in latest master version

Well. L16/16000/2 also supported in latest master version

Is there a prebuild go2rtc_linux_amd64 for this? Not that good at compiling code

Check docks. There are links for dev binaries

This issue can be closed now.


problem with blackeye

hi bro. in the console, after entering the site number, a browser window opens in which the ERR_CONNECTION_REFUSED error pops up. also in the console in the line Phishing page link: emptiness

I am having the same issue


Syntax sugar - allow constructor without body

With nice feature typescript has which allows to define class properties right from the constructor parameters Im facing one issue: ugly ) {  } that makes code ugly
constructor(
        private firstService: FirstService,
        private secondService: SecondService
    ) {
    }

Can we add some syntax sugar and allow to define constructor without body like this:
constructor(
        private firstService: FirstService,
        private secondService: SecondService
    )

or
constructor(
        private firstService: FirstService,
        private secondService: SecondService
    );

A signature followed by a semicolon is already the syntax for an overload signature. We don't want it to mean two different things.


WIP: Add v1beta2 APIs and controller logic

This change is

Travis tests have failed
Hey @richardsliu,
Please read the following log in order to understand the failure reason.
   Will not report event: 'Normal' 'ExitedWithCode' 'Pod: default.worker-0 exited with code 130'
time="2019-02-07T02:25:47Z" level=info msg="Need to restart the pod: default.worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:47Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=1, running=0, failed=1" job=default.test-tfjob uid=
E0207 02:25:47.500013    9791 event.go:260] Could not construct reference to: '&v1beta1.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta1.TFJobSpec{CleanPodPolicy:(*v1beta1.CleanPodPolicy)(0xc4209928a0), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta1.TFReplicaType]*v1beta1.ReplicaSpec{"Worker":(*v1beta1.ReplicaSpec)(0xc4209bc500)}}, Status:v1beta1.JobStatus{Conditions:[]v1beta1.JobCondition(nil), ReplicaStatuses:map[v1beta1.ReplicaType]*v1beta1.ReplicaStatus{"Worker":(*v1beta1.ReplicaStatus)(0xc4204233c0)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Warning' 'TFJobRestarting' 'TFJob test-tfjob is restarting because 1 Worker replica(s) failed.'
time="2019-02-07T02:25:47Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:47Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (692.742µs)" job=default.test-tfjob
--- PASS: TestExitCode (0.00s)
=== RUN   TestAddService
time="2019-02-07T02:25:47Z" level=info msg="Starting 1 workers"
time="2019-02-07T02:25:47Z" level=info msg="Started workers"
time="2019-02-07T02:25:47Z" level=info msg="Shutting down workers"
time="2019-02-07T02:25:47Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:47Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:47Z" level=info msg="Starting TFJob controller"
time="2019-02-07T02:25:47Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T02:25:47Z" level=info msg="Starting 1 workers"
time="2019-02-07T02:25:47Z" level=info msg="Started workers"
--- PASS: TestAddService (0.10s)
=== RUN   TestFailed
time="2019-02-07T02:25:47Z" level=info msg="Shutting down workers"
time="2019-02-07T02:25:47Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:47Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:47Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=3, running=0, failed=1" job=default.test-tfjob uid=
E0207 02:25:47.602855    9791 event.go:260] Could not construct reference to: '&v1beta1.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta1.TFJobSpec{CleanPodPolicy:(*v1beta1.CleanPodPolicy)(nil), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta1.TFReplicaType]*v1beta1.ReplicaSpec{"Worker":(*v1beta1.ReplicaSpec)(0xc4209bcf00)}}, Status:v1beta1.JobStatus{Conditions:[]v1beta1.JobCondition(nil), ReplicaStatuses:map[v1beta1.ReplicaType]*v1beta1.ReplicaStatus{"Worker":(*v1beta1.ReplicaStatus)(0xc420a00aa0)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'TFJobFailed' 'TFJob test-tfjob has failed because 1 Worker replica(s) failed.'
 Will not report event: 'Normal' 'TFJobSucceeded' 'TFJob test-tfjob successfully completed.'
time="2019-02-07T02:25:53Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (960.485µs)" job=default.test-tfjob
time="2019-02-07T02:25:53Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:53Z" level=info msg="Reconcile TFJobs test-tfjob" job=default.test-tfjob uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=1, running=0, failed=0" job=default.test-tfjob uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (309.467µs)" job=default.test-tfjob
time="2019-02-07T02:25:53Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:53Z" level=info msg="Reconcile TFJobs test-tfjob" job=default.test-tfjob uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: ps-0" job=default.test-tfjob replica-type=ps uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: ps-1" job=default.test-tfjob replica-type=ps uid=
time="2019-02-07T02:25:53Z" level=info msg="TFJob=test-tfjob, ReplicaType=PS expected=2, running=0, failed=0" job=default.test-tfjob uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: ps-0" job=default.test-tfjob replica-type=ps uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: ps-1" job=default.test-tfjob replica-type=ps uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: worker-1" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: worker-2" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="Need to create new pod: worker-3" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=4, running=0, failed=0" job=default.test-tfjob uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: worker-1" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: worker-2" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="need to create new service: worker-3" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:53Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (1.270158ms)" job=default.test-tfjob
--- PASS: TestNormalPath (0.02s)
=== RUN   TestRun
time="2019-02-07T02:25:53Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:53Z" level=info msg="Starting TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T02:25:53Z" level=info msg="Starting 1 workers"
time="2019-02-07T02:25:53Z" level=info msg="Started workers"
time="2019-02-07T02:25:53Z" level=info msg="Shutting down workers"
--- PASS: TestRun (0.50s)
=== RUN   TestSyncPdb
time="2019-02-07T02:25:53Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Creating Job controller"
--- PASS: TestSyncPdb (0.00s)
=== RUN   TestAddTFJob
time="2019-02-07T02:25:53Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:53Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:53Z" level=info msg="TFJob test-tfjob is created."  Will not report event: 'Normal' 'ExitedWithCode' 'Pod: default.worker-0 exited with code 130'
time="2019-02-07T02:25:55Z" level=info msg="Need to restart the pod: default.worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:55Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=1, running=0, failed=1" job=default.test-tfjob uid=
E0207 02:25:55.759451    9901 event.go:260] Could not construct reference to: '&v1beta2.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta2.TFJobSpec{CleanPodPolicy:(*v1beta2.CleanPodPolicy)(0xc42099fab0), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta2.TFReplicaType]*v1beta2.ReplicaSpec{"Worker":(*v1beta2.ReplicaSpec)(0xc4209d0500)}}, Status:v1beta2.JobStatus{Conditions:[]v1beta2.JobCondition(nil), ReplicaStatuses:map[v1beta2.ReplicaType]*v1beta2.ReplicaStatus{"Worker":(*v1beta2.ReplicaStatus)(0xc4209a65d0)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Warning' 'TFJobRestarting' 'TFJob test-tfjob is restarting because 1 Worker replica(s) failed.'
time="2019-02-07T02:25:55Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T02:25:55Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (480.352µs)" job=default.test-tfjob
--- PASS: TestExitCode (0.00s)
=== RUN   TestAddService
time="2019-02-07T02:25:55Z" level=info msg="Starting 1 workers"
time="2019-02-07T02:25:55Z" level=info msg="Started workers"
time="2019-02-07T02:25:55Z" level=info msg="Shutting down workers"
time="2019-02-07T02:25:55Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:55Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:55Z" level=info msg="Starting TFJob controller"
time="2019-02-07T02:25:55Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T02:25:55Z" level=info msg="Starting 1 workers"
time="2019-02-07T02:25:55Z" level=info msg="Started workers"
--- PASS: TestAddService (0.10s)
=== RUN   TestFailed
time="2019-02-07T02:25:55Z" level=info msg="Shutting down workers"
time="2019-02-07T02:25:55Z" level=info msg="Creating TFJob controller"
time="2019-02-07T02:25:55Z" level=info msg="Creating Job controller"
time="2019-02-07T02:25:55Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=3, running=0, failed=1" job=default.test-tfjob uid=
E0207 02:25:55.861969    9901 event.go:260] Could not construct reference to: '&v1beta2.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta2.TFJobSpec{CleanPodPolicy:(*v1beta2.CleanPodPolicy)(nil), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta2.TFReplicaType]*v1beta2.ReplicaSpec{"Worker":(*v1beta2.ReplicaSpec)(0xc4208b7180)}}, Status:v1beta2.JobStatus{Conditions:[]v1beta2.JobCondition(nil), ReplicaStatuses:map[v1beta2.ReplicaType]*v1beta2.ReplicaStatus{"Worker":(*v1beta2.ReplicaStatus)(0xc4208fd7e0)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'TFJobFailed' 'TFJob test-tfjob has failed because 1 Worker replica(s) failed.'

Travis tests have failed
Hey @richardsliu,
Please read the following log in order to understand the failure reason.
 Will not report event: 'Normal' 'TFJobSucceeded' 'TFJob test-tfjob successfully completed.'
time="2019-02-07T03:29:28Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (820.332µs)" job=default.test-tfjob
--- PASS: TestNormalPath (0.02s)
=== RUN   TestRun
time="2019-02-07T03:29:28Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:28Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:28Z" level=info msg="Starting TFJob controller"
time="2019-02-07T03:29:28Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T03:29:28Z" level=info msg="Starting 1 workers"
time="2019-02-07T03:29:28Z" level=info msg="Started workers"
time="2019-02-07T03:29:28Z" level=info msg="Shutting down workers"
--- PASS: TestRun (0.50s)
=== RUN   TestSyncPdb
time="2019-02-07T03:29:28Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:28Z" level=info msg="Creating Job controller"
--- PASS: TestSyncPdb (0.00s)
=== RUN   TestAddTFJob
time="2019-02-07T03:29:28Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:28Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:28Z" level=info msg="TFJob test-tfjob is created."  Will not report event: 'Normal' 'ExitedWithCode' 'Pod: default.worker-0 exited with code 130'
time="2019-02-07T03:29:30Z" level=info msg="Need to restart the pod: default.worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T03:29:30Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=1, running=0, failed=1" job=default.test-tfjob uid=
E0207 03:29:30.976547    9888 event.go:260] Could not construct reference to: '&v1beta1.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta1.TFJobSpec{CleanPodPolicy:(*v1beta1.CleanPodPolicy)(0xc42097f0b0), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta1.TFReplicaType]*v1beta1.ReplicaSpec{"Worker":(*v1beta1.ReplicaSpec)(0xc4209a8500)}}, Status:v1beta1.JobStatus{Conditions:[]v1beta1.JobCondition(nil), ReplicaStatuses:map[v1beta1.ReplicaType]*v1beta1.ReplicaStatus{"Worker":(*v1beta1.ReplicaStatus)(0xc42095ed40)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Warning' 'TFJobRestarting' 'TFJob test-tfjob is restarting because 1 Worker replica(s) failed.'
time="2019-02-07T03:29:30Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T03:29:30Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (440.41µs)" job=default.test-tfjob
--- PASS: TestExitCode (0.00s)
=== RUN   TestAddService
time="2019-02-07T03:29:30Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:30Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:30Z" level=info msg="Starting TFJob controller"
time="2019-02-07T03:29:30Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T03:29:30Z" level=info msg="Starting TFJob controller"
time="2019-02-07T03:29:30Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T03:29:30Z" level=info msg="Starting 1 workers"
time="2019-02-07T03:29:30Z" level=info msg="Started workers"
time="2019-02-07T03:29:30Z" level=info msg="Shutting down workers"
time="2019-02-07T03:29:31Z" level=info msg="Starting 1 workers"
time="2019-02-07T03:29:31Z" level=info msg="Started workers"
--- PASS: TestAddService (0.10s)
=== RUN   TestFailed
time="2019-02-07T03:29:31Z" level=info msg="Shutting down workers"
time="2019-02-07T03:29:31Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:31Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:31Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=3, running=0, failed=1" job=default.test-tfjob uid=
E0207 03:29:31.079466    9888 event.go:260] Could not construct reference to: '&v1beta1.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta1.TFJobSpec{CleanPodPolicy:(*v1beta1.CleanPodPolicy)(nil), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta1.TFReplicaType]*v1beta1.ReplicaSpec{"Worker":(*v1beta1.ReplicaSpec)(0xc4209a8f00)}}, Status:v1beta1.JobStatus{Conditions:[]v1beta1.JobCondition(nil), ReplicaStatuses:map[v1beta1.ReplicaType]*v1beta1.ReplicaStatus{"Worker":(*v1beta1.ReplicaStatus)(0xc420a06340)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'TFJobFailed' 'TFJob test-tfjob has failed because 1 Worker replica(s) failed.'
   Will not report event: 'Normal' 'ExitedWithCode' 'Pod: default.worker-0 exited with code 130'
time="2019-02-07T03:29:39Z" level=info msg="Need to restart the pod: default.worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T03:29:39Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=1, running=0, failed=1" job=default.test-tfjob uid=
E0207 03:29:39.286696   10004 event.go:260] Could not construct reference to: '&v1beta2.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta2.TFJobSpec{CleanPodPolicy:(*v1beta2.CleanPodPolicy)(0xc420871a90), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta2.TFReplicaType]*v1beta2.ReplicaSpec{"Worker":(*v1beta2.ReplicaSpec)(0xc42094b400)}}, Status:v1beta2.JobStatus{Conditions:[]v1beta2.JobCondition(nil), ReplicaStatuses:map[v1beta2.ReplicaType]*v1beta2.ReplicaStatus{"Worker":(*v1beta2.ReplicaStatus)(0xc4207c8af0)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Warning' 'TFJobRestarting' 'TFJob test-tfjob is restarting because 1 Worker replica(s) failed.'
time="2019-02-07T03:29:39Z" level=info msg="need to create new service: worker-0" job=default.test-tfjob replica-type=worker uid=
time="2019-02-07T03:29:39Z" level=info msg="Finished syncing tfjob \"default/test-tfjob\" (837.313µs)" job=default.test-tfjob
--- PASS: TestExitCode (0.00s)
=== RUN   TestAddService
time="2019-02-07T03:29:39Z" level=info msg="Starting 1 workers"
time="2019-02-07T03:29:39Z" level=info msg="Started workers"
time="2019-02-07T03:29:39Z" level=info msg="Shutting down workers"
time="2019-02-07T03:29:39Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:39Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:39Z" level=info msg="Starting TFJob controller"
time="2019-02-07T03:29:39Z" level=info msg="Waiting for informer caches to sync"
time="2019-02-07T03:29:39Z" level=info msg="Starting 1 workers"
time="2019-02-07T03:29:39Z" level=info msg="Started workers"
--- PASS: TestAddService (0.10s)
=== RUN   TestFailed
time="2019-02-07T03:29:39Z" level=info msg="Shutting down workers"
time="2019-02-07T03:29:39Z" level=info msg="Creating TFJob controller"
time="2019-02-07T03:29:39Z" level=info msg="Creating Job controller"
time="2019-02-07T03:29:39Z" level=info msg="TFJob=test-tfjob, ReplicaType=Worker expected=3, running=0, failed=1" job=default.test-tfjob uid=
E0207 03:29:39.389513   10004 event.go:260] Could not construct reference to: '&v1beta2.TFJob{TypeMeta:v1.TypeMeta{Kind:"TFJob", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-tfjob", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:v1beta2.TFJobSpec{CleanPodPolicy:(*v1beta2.CleanPodPolicy)(nil), TTLSecondsAfterFinished:(*int32)(nil), TFReplicaSpecs:map[v1beta2.TFReplicaType]*v1beta2.ReplicaSpec{"Worker":(*v1beta2.ReplicaSpec)(0xc42094b900)}}, Status:v1beta2.JobStatus{Conditions:[]v1beta2.JobCondition(nil), ReplicaStatuses:map[v1beta2.ReplicaType]*v1beta2.ReplicaStatus{"Worker":(*v1beta2.ReplicaStatus)(0xc42080fe60)}, StartTime:(*v1.Time)(nil), CompletionTime:(*v1.Time)(nil), LastReconcileTime:(*v1.Time)(nil)}}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'TFJobFailed' 'TFJob test-tfjob has failed because 1 Worker replica(s) failed.'


refactor: swap JS based hashState to use wasm utility

Fixes #3066

I think the exported hashState should by default use the wasm utility if it's available in the environment (i.e., some kind of __wasm_available__ boolean perhaps)

* The built wasm utility is not available on the machine for some reason (no rust?)

wasm utilities are already compiled -- there should be no requirement to install rust to use them

* We're in the browser, in which case it becomes an asynchronous API (or unavailable on older browsers)

why would it become asynchronous?

Loading WebAssembly modules in the browser requires using dynamic importing: https://developer.mozilla.org/en-US/docs/WebAssembly/Loading_and_running


catch all errors on verify_session call instead of just :no_session

Pull request in regards to: https://github.com/ueberauth/guardian/issues/210

Thank you @jeisenberg 👍


Email address users can't be clicked on in the leaderboard

If you click on a user that signed up with email, because we put the asterisk after the @ sign, when we append it onto the end of the url we don't append what was replaced by the asterisk and so we get a server error when accessing profile.
Should be fixable by putting user's profiles at a url based on a hashed userID instead of their actual username

Changed to have it so that users cant sign up with email address

Users can now no longer sign up with email addresses. We should take care to scrub all email address users from the database if there are any left


[BUG] Dependency protobuf not correctly specified

Your crate is BROKEN
Your crate rust-criu does not have the correct dependency requirement for protobuf:
Cargo.toml:13:
protobuf = "3.2.0"

This is fatal as this WILL bring build errors on anything that depends on your crate once a newer version of protobuf is available.
Solution
Specify the version for protobuf exactly:
protobuf = "= 3.2.0"

and consider yanking previous versions of this crate. (All of them break anyway.)
And plus, now you can safely remove rust_criu_protobuf/rpc.rs:26 knowing that the protobuf version is definitely 3.2.0.

may I ask you to release this change as a new crate version - maybe 0.4.1, so we can vendor it?
Thanks!


Prepare sc-network for ProtocolController/NotificationService

The upcoming notification protocol refactoring requires that protocols are able to communicate with sc-network over unique and direct links. This means that sc-network side of the link has to be created before sc-network is initialized and that it is allowed to consume the object as the receiver half of the link may not implement Clone.
Remove request-response and notification protocols from NetworkConfiguration and create a new object that contains the configurations of these protocols and which is consumable by sc-network. This is needed needed because, e.g., the receiver half of NotificationService is not clonable so sc-network must consume it when it's initializing the protocols in Notifications.
Similar principe applies to PeerStore/ProtocolController: as per current design, protocols are created before the network so Protocol cannot be the one creating the PeerStore object. FullNetworkConfiguration will be used to store the objects that sc-network will use to communicate with protocols and it will also allow protocols to allocate handles so they can directly communicate with sc-network.
polkadot companion: https://github.com/paritytech/polkadot/pull/7184
cumulus companion: https://github.com/paritytech/cumulus/pull/2526

bot merge


Cannot read properties of undefined (reading 'dateString')

Hi,
after setting up Nightscout via Heroku (successfully). I tried to set up libre link up, also via Heroku. But unfortunatily I receive always the following error.
2022-05-01T18:20:00.514429+00:00 app[worker.1]: [info]: no authTicket.expires 2022-05-01T18:20:00.514465+00:00 app[worker.1]: [info]: renew token 2022-05-01T18:20:01.164961+00:00 app[worker.1]: [info]: Logged in to LibreLink Up 2022-05-01T18:20:01.672330+00:00 app[worker.1]: [info]: Found 1 LibreLink Up connection. 2022-05-01T18:20:01.672344+00:00 app[worker.1]: [info]: -> The following connection will be used: XXXXXX (Patient-ID: ) 2022-05-01T18:20:02.254026+00:00 app[worker.1]: [info]: Received blood glucose measurement items 2022-05-01T18:20:02.394919+00:00 app[worker.1]: [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'dateString')

hi @convay89, I will take a look at this. Thanks for pointing it out.

Same error here, i think i'm Missing Something.
Did a fresh Nightscout Setup via heroku.
Nightscout is up and running. Are there some Variables I forgot to set in Nightscout?
2022-05-02T19:37:33.144318+00:00 app[worker.1]: [info]: Starting cron schedule: */1 * * * *
2022-05-02T19:38:00.463465+00:00 app[worker.1]: [info]: Logged in to LibreLink Up
2022-05-02T19:38:00.684776+00:00 app[worker.1]: [info]: Found 1 LibreLink Up connection.
2022-05-02T19:38:00.685117+00:00 app[worker.1]: [info]: -> The following connection will be used:  xxxxx (Patient-ID: xxxx-xxx-xxxx-xxxx-xxxx)
2022-05-02T19:38:00.189910+00:00 app[worker.1]: [info]: no authTicket.expires
2022-05-02T19:38:00.190143+00:00 app[worker.1]: [info]: renew token
2022-05-02T19:38:01.100264+00:00 app[worker.1]: [info]: Received blood glucose measurement items
2022-05-02T19:38:01.167682+00:00 app[worker.1]: [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'dateString')

The Problem is the empty Nightscout API response on new installations. The code expects at least a single returned entry to determine the timestamp  the last entry. The code is missing a simple check whether any results were returned before trying to access them in line index.js#L188
    return new Date(response.data.pop().dateString);

This should be fixed in version 1.6.2 :)


Contextual binding does not work

Laravel Version: 5.5.9
PHP Version: 7.1.4
Database Driver & Version: Mysql 8.0

Description:
When you use contextual binding to resolve class dependencies in controllers you got the error:
[Illuminate\Contracts\Container\BindingResolutionException]
  Target [App\Core\Contracts\RepositoryInterface] is not in
  stantiable while building [\App\Domains\Brands\Controller
  s\BrandsController].

Steps To Reproduce:

I have created a controller that depends of RepositoryInterface;

Create the RepositoryInterface;

Create BrandsRepository that implements the RepositoryInterface

namespace App\Domains\Brands\Controllers;
class BrandsController extends Controller
{
    public function __construct(RepositoryInterface $repository) {}
}

namespace App\Core\Contracts;
interface RepositoryInterface {}

namespace App\Domains\Brands\Repositories;
class BrandsRepository implements RepositoryInterface {}

In my service provider I have:
namespace App\Domains\Brands\Providers;

use App\Core\Contracts\RepositoryInterface;
use App\Domains\Brands\Controllers\BrandsController;
use App\Domains\Brands\Repositories\BrandsRepository;
use Illuminate\Support\ServiceProvider;

class BrandsServiceProvider extends ServiceProvider
{
     /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->when(BrandsController::class)
            ->needs(RepositoryInterface::class)
            ->give(BrandsRepository::class);
    }
}

If I directly bind the repository it works, like this:
namespace App\Domains\Brands\Providers;

use App\Core\Contracts\RepositoryInterface;
use App\Domains\Brands\Controllers\BrandsController;
use App\Domains\Brands\Repositories\BrandsRepository;
use Illuminate\Support\ServiceProvider;

class BrandsServiceProvider extends ServiceProvider
{
     /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind(RepositoryInterface::class, BrandsRepository::class);
    }
}

But of course it is not what I want, because in my others controllers domains, like customers, I will receive the BrandsRepository instead CustomersRepository for example.

But of course it is not what I want

Actually the 2nd way is what you need and enough for your usecase.

@Dylan-DPC I don't think so.
If I keep two services providers binding the same RepositoryInterface with two differents repositories the second to be loaded will receive the correct repository, but the first one will receive the same, using my use case, the BrandsController will be injected with CustomersRepository instead the BrandsRepository.
The only way to have this case correct is using contextual binding, as describe in the (Laravel documentation)

I just tried the following in a fresh install and it works correctly:
// AppServiceProvider
    public function register()
    {
        $this->app->when(UserController::class)
            ->needs(RepositoryInterface::class)
            ->give(UserRepository::class);

        $this->app->when(ProfileController::class)
            ->needs(RepositoryInterface::class)
            ->give(ProfileRepository::class);
    }

// routes/web.php
Route::get('/user', 'UserController@test');
Route::get('/profile', 'ProfileController@test');

@devcircus I did exactly the same, the fresh installation of Laravel 5.5 and it does work for me, you can check my test here.
I really don't know I am doing wrong.

I can't replicate this either.

@themsaid Did you use my sample project linked above to try reproduce?

I have tested the exactly same thing on Laravel 5.4 and 5.3. The same code works on 5.3 but doesn't on 5.4 and 5.5.

You guys can check here the L5.3 works well.

Will clone and check out your repo. Very interested in this. If you figure it out, please follow up here.

@luciano-jr I don't understand anything in your project, it's always better to include steps of replication clearly in the issue.
I followed the steps you put here and I couldn't regenerate the issue.

How can I make this fail? It currently works and I get Yes it works when I run the TestController@index action.

I cloned your project and everything works. I didn't change anything. Just added a route to hit "someMethod" in Foo controller.

I have found my error, in the routes I was declaring the route wrongly:
Route::get('foo', '\App\Http\Controllers\TestController@index');
It worked on Laravel 5.3.
If I change to the standard way it works normally:
Route::get('foo', 'TestController@index');
I guess the modification in L5.4 has caused it. The changes it in the Container class has turn binding classes into the container with leading slashes no longer supported, described in Binding Classes With Leading Slashes section on documentation


Add an About page

With links to the GitHub, my personal site, etc.

Done in dccfccd9c17cfe5de79673423e0b75f0d59557cb


Warning message for when the bot kicks you.

The newest catbots instantly autokick the player they stole a name from - faster than TFBD can kick the bot.
I suggest adding a chat bind that is sent when someone with a similar name to yours tries to kick you. Everyone is too quick to press F1 on any cheating vote so there is not much time to react with a manual message.
If checking for name similarity is difficult, alternatively the bind could be activated when the kicker has a different steam name than the ingame name.
PS: Awesome work overall pazer!

This has similar technical challenges as #168
I.E. there is no console output for votes so its impossible to know when a vote is called, who the vote is called on, who called the vote, or the status of any existing vote. This would likely have to wait until demo parsing and even then there would be some significant delay.

This has similar technical challenges as #168
I.E. there is no console output for votes so its impossible to know when a vote is called, who the vote is called on, who called the vote, or the status of any existing vote. This would likely have to wait until demo parsing and even then there would be some significant delay.

This also fits in with the theme of #189

This also fits in with the theme of #189

Is there even a command to change your exit message? I mean, I know bots can do it, but can humans do that too?

Is there even a command to change your exit message? I mean, I know bots can do it, but can humans do that too?

No, its impossible without injecting into tf2 and doing nefarious things

No, its impossible without injecting into tf2 and doing nefarious things

The above is correct, this unfortunately isn't possible.

The above is correct, this unfortunately isn't possible.

This has similar technical challenges as #168
I.E. there is no console output for votes so its impossible to know when a vote is called, who the vote is called on, who called the vote, or the status of any existing vote. This would likely have to wait until demo parsing and even then there would be some significant delay.

This is correct, unfortunately this feature isn't possible.

This has similar technical challenges as #168
I.E. there is no console output for votes so its impossible to know when a vote is called, who the vote is called on, who called the vote, or the status of any existing vote. This would likely have to wait until demo parsing and even then there would be some significant delay.

This is correct, unfortunately this feature isn't possible.


"SEPARATOR" implementation in Firewall / Rules

It seems that it has not been requested yet, but is it possible to implement the creation of item called "separator" present in Firewall/Rules?
Thank you very much

Hi all !
I also noticed that after adding a rule by means of the API, the current rules are shifted, separators is also shifted. It would not be bad if it would be possible to create a rule inside two separators, preserving the current structure of rules and delimiters
Thank you !


Disables ON BEFOREGET method

I use your dpd-beforeget module with my solution, but find that when I add dpd-count to my solution, it breaks the ON BEFOREGET event.
http.GET doesn't seem to trigger the beforeget at all, while the dpd-count module is in the node_modules folder. When I remove it, ON BEFOREGET works once again.
I was also wondering when does the ON COUNT event fire? before the database call, or after?

With the new deployd's (v0.8.5) Before Request event, this is no longer an issue.

With the new deployd's (v0.8.5) Before Request event, this is no longer an issue.


Implement monoio-based HTTP client over hyper-tls

In the current, there is no S3 suppor on the monoio runtime, implementing remotes::http::HttpClient for monoio https client over hypter-tls should be a possible way.

Capturing convo from Discord:
The monoio project does maintain an HTTP(S) client crate at https://github.com/monoio-rs/monoio-http
Running a minimal test to connect to the Umbra open satellite imagery S3 bucket, behind HTTPS, seems to succeed.
use monoio_http_client::Client;

#[monoio::main(enable_timer = true)]
async fn main() {
    let client = Client::default();
    let resp = client
        .get("https://umbra-open-data-catalog.s3.amazonaws.com/")
        .send()
        .await
        .expect("request fail");
    let http_resp = resp.bytes().await.unwrap();
    println!("{:?}", http_resp);
}

However, it's possible that there is a better pathway, e.g. writing custom executors over hyper-tls that maybe leads to more code sharing between the monoio and tokio-uring impls


[clusteragent/admission/sidecar] Set ShareProcessNamespace=true on EKS Fargate

What does this PR do?
Sets ShareProcessNamespace=true in the sidecar admission controller webhook when deploying on EKS Fargate.
This is needed by the process collection feature.
Describe how to test/QA your changes
Deploy the Agent on EKS Fargate. You need to enable the admission controller with sidecar injection configured to enable process collection via sidecar profiles. Here's the helm chart that I used:
clusterAgent:
  admissionController:
    enabled: true
  env:
    - name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_ENABLED
      value: "true"
    - name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROVIDER
      value: "fargate"
    - name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROFILES
      value: "[{\"env\":[{\"name\":\"DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED\", \"value\":\"true\"}]}]"

Now deploy something on the Fargate namespace. The only important part is to set the labels used by the admission controller correctly. Also, make sure that shareProcessNamespace is not set (it will be injected automatically). Here's an example deployment that you can use:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
        admission.datadoghq.com/enabled: "true"
        agent.datadoghq.com/sidecar: "fargate"
    spec:
      serviceAccountName: datadog-agent-fargate # Make sure this matches your service account
      containers:
      - name: nginx
        image: nginx

Remember to create the needed RBACs for Fargate as described here: https://docs.datadoghq.com/integrations/eks_fargate/#aws-eks-fargate-rbac
Now check that process collection works as expected. In the Datadog app you should be able to see the processes both for the agent sidecar that was automatically injected and also for your container.

/merge


Replace struct with type and object | Fix AnonymousStructTest

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email<EMAIL_ADDRESS>to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to<EMAIL_ADDRESS>and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

Unit tests

Code coverage information

Integration tests

Details about the test cases and coverage

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes/no
Ran FindSecurityBugs plugin and verified report? yes/no
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes/no

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Closing as this is moved to record tests in https://github.com/ballerina-platform/ballerina-lang/pull/6451/files#diff-c5e6966bca07cb35f3a70ad2a72ad998 with https://github.com/ballerina-platform/ballerina-lang/pull/6451 .


AttributeError: 'float' object has no attribute 'item' during convert.py measurement pass

Sometimes when using the conversion script to produce a measurement file of a model that I merged together from other models, I'll encounter the following error at the very end of the measurement pass after it measures the last model layer but before it saves the measurement json file.
Traceback (most recent call last):
  File "/home/llm/mergequant/convert.py", line 220, in <module>
    measure_quant(job, save_job, model)
  File "/home/llm/.miniconda3/envs/textgen/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/llm/mergequant/exllamav2/conversion/measure.py", line 389, in measure_quant
    m = measure_mlp(module, hidden_states, target_states, quantizers, cache, attn_params)
  File "/home/llm/mergequant/exllamav2/conversion/measure.py", line 190, in measure_mlp
    accuracy = test_error(module, hidden_states, target_states, cache, attn_params)
  File "/home/llm/mergequant/exllamav2/conversion/measure.py", line 106, in test_error
    return max(1e-6, 1 - (rfn_sum / rfn_count)).item()
AttributeError: 'float' object has no attribute 'item'
Error: The previous command failed. Exiting.

Any idea what I should be checking? I can provide more context if someone can steer me towards what you need.

It doesn't make a lot of sense that this would happen sometimes. I've pushed a commit that might fix it, though.

Thanks, Turbo! I looked into it on my end too, and like you said, it seems like it's a situation that shouldn't come up when things are working properly.
When I look at some of my past measurements taken from 70b models that didn't produce the error, the accuracy for the last layer MLP is > 0.9 for even the very low bpw measurements, whereas for this model the accuracy was < 1e-6 for all bpw measurements taken on that model.layers.79.mlp. That's what triggered the error: max(1e-6, 1 - (rfn_sum / rfn_count)) returned 1e-6, which is a float and doesn't have the item() method, and I can see where that result is not expected to occur under normal circumstances.
I proceeded with quantizing the model anyway and the final result appears to be okay. ¯_(ツ)_/¯
Thank you for committing a fix to this so quickly! I greatly appreciate all your work on the exllama project.


add definition column

Free-text column to add a definition.
First one to work on this issue removes the other assignee so we don't mistakenly both do it.

Working on this now.

resolved in e404978e12885a4239e311ecd0eb421766310aa9, doesn't seem to be easily made prettier without much work and redesign


correct the text

Make the README better

Pull request checklist
Make sure you:

[x] Signed the Contributor License Agreement
[ ] Followed the commit message guidelines

For non-trivial changes, please make sure you also:

[x] Added/Updated related documentation.
[ ] Added/Updated related tests.

Short description of the change(s)

@thangchung Thank you for this! 💜
Can you also sign the CLA. Thanks!

Yes, I can. Just finished it off.

Yes, I can.

Thanks, and congrats on your first contribution to sonar! 🎉


Add pixi version to system requirements

Problem description
Often times I'll have a project that I made some time ago, which I think is still reproducible with its lock file, but fails because I'm using a different version of pixi. A potential solution may be to add an optional pixi version to the system-requirements table. This would help ensure folks don't run into situations where they think things will work further down the line, but because of a regression they dont

Do you mean like a pinned version, or a minimum required version? :)

I think a pinned version, but maybe both? not sure the best way to handle it. I can give a concrete example
Nerfstudio has the following pixi.toml https://github.com/nerfstudio-project/nerfstudio/blob/main/pixi.toml
using 0.28.2 this fails for me and I get
pixi install
  ⠠ default:linux-64     [00:00:01] resolving tomli==2.0.1                                                                                × failed to solve the pypi requirements of 'default' 'linux-64'
  ├─▶ failed to resolve pypi dependencies
  ├─▶ Failed to download and build `fire==0.6.0`
  ├─▶ Failed to install requirements from build-system.requires (install)
  ├─▶ Failed to prepare distributions
  ├─▶ Failed to fetch wheel: setuptools==69.5.1
  ├─▶ Failed to extract archive
  ╰─▶ Invalid gzip header

but with 0.25.0 it resolves no problem

I like this idea!
Note that the system requirements are mostly lower bound only.
[system-requirements]
pixi = "<=0.25.0"
cuda = "<=12.1" # Errors

But that might not be a huge problem. As it is non standard anyway.

Yes, this exactly would be perfect!


point compression design decision

Looking at the pedersen version of the verkle tree.
The prime field on top of BLS12-381, it is really slow to do square root in this field. It needs tonelli shanks, but there are 32 factors of 2 in (prime-1), so it is very slow.
So, decompressing points from 32 byte format is slow.
0.00035 seconds per point on my CPU, which is like 10x longer than how long proof verification should take, according to Dankrad's calculator.
Spending 90% of the proof verification CPU time on just decompressing points seems inefficient.
Are we going to make proofs with 64 bytes per point, or 32 bytes per point?
Is there any plan for a pedersen verkle tree that uses a different elliptic curve, so we can have faster point decompression?

I didn't realize this issue existed, but we've improved this situations with an optimization in go-ipa: https://github.com/crate-crypto/go-ipa/pull/38
Figuring out how that works by reading code is quite hard, so leaving an article I wrote about it as a reference for other readers. Also, a summary of performance improvements here.
I'm planning to jump into proof generation and verification in the medium term, since we're focusing a bit on optimizing the Ethereum state conversion as much as possible. When I jump into proofs generation and verification, I can see how this optimized square root impacts overall performance.
Maybe we can leave this issue open until we have some more information if the sqrt optimization is enough, so just giving an update here.


Bug matching types?

The following doesn't match correctly; maybe I'm doing something wrong?
result = @match Float64 begin
           Int => "here"
           Float64 => "there"
end

result evaluates to: "here"

Ah, I think this is one of the limitations of implementing match as a macro... this is because we are not able to access the scope information of a Julia program, so the single Symbol pattern is ambiguous. Consider the following case
function foo(x, Float64)
   @match x begin
       Int => "here"
       Float64 => "there"
   end
end

foo(1.0, 1.0) # should match what?

thus the single Symbol pattern is always treated as a variable to dis-ambiguous this semantics. To do what you intended here,
you just need to "quote" the value as if you are quoting it in other Julia expression, e.g
@match Float64 begin
   $Int => "here"
   $Float64 => "there"
end

this was the & in MLStyle, but see discussion here https://github.com/thautwarm/MLStyle.jl/issues/160

also note that we automatically insert $ for you in a lot of cases when it's not ambiguous, so this is not a big deal if you find it's working. After thinking a bit more on this, I believe we should add a warning when the pattern variable has a definition in the global scope.

Ok this now gives you a warning


Problems with ARVROrigin movement [Godot 3.3]

Hello!
I have problems with ARVROrigin movement.
I've tried moving the ARVROrigin in _process() and _physics_process().

When I move the ARVROrigin in _process(), the controllers run away in the direction of movement.

https://user-images.githubusercontent.com/75580200/122560811-45705580-d06b-11eb-8392-5b0cccf0c631.mp4

When I move the ARVROrigin in _physics_process(), the controllers move correctly. But due to the desynchronization of the frame rate and the frequency of the physical process, the world is twitching.

Making the physics rate equal to the frame rate is a bad decision, as helmets now have very different frame rates.
Is there any solution possible?
Upd:
This issue is also relevant for Oculus plugin and mobile Oculus plugin

Making the physics rate equal to the frame rate is a bad decision, as helmets now have very different frame rates.

As a workaround, you can expose a setting that changes the physics step.

@Calinou This is a bad decision. Physics in the game will work in different ways. I am looking for other solutions.
First, I will try to compensate for the movement of the controllers.
P.s. Unity had the same problem (controllers movement), but now everything is fine there. I don’t know how they did it.

This is a bad decision. Physics in the game will work in different ways. I am looking for other solutions.
First, I will try to compensate for the movement of the controllers.

If you use delta consistently, physics will behave in a similar way (although not identical due to floating-point precision issues). Unless you are working on a highly competitive game, it's not really a problem.

I solved the problem. You need to move the controller by the same amount as the camera. Only in the opposite direction.
It turns out that when drawing the controller, a pose is taken from the future frame.
For comparison, the left controller is left unchanged.

https://user-images.githubusercontent.com/75580200/122684146-ee66ae00-d22d-11eb-8a45-4c638d9bed63.mp4
extends ARVROrigin

var contr_right: ARVRController
var contr_left: ARVRController

const SPEED = 5.0

func _ready():

	contr_right = $ARVRControllerRight
	contr_left = $ARVRControllerLeft

func _process(delta):

	var stick_left_x = contr_left.get_joystick_axis(JOY_OPENVR_TOUCHPADX)
	var stick_left_y = contr_left.get_joystick_axis(JOY_OPENVR_TOUCHPADY)

	var move = Vector3(0, 0, 0)

	move.x = SPEED * stick_left_x * delta
	move.z = -SPEED * stick_left_y * delta
	move.y = 0.0

	global_translate(Vector3(move.x, move.y, move.z)) # translate ARVROrigin

	contr_right.global_translate(Vector3(-move.x, -move.y, -move.z))
	#contr_left.global_translate(Vector3(-move.x, -move.y, -move.z))

	pass

I don't get this, I've moved the origin point from the day that I build the first iteration of this plugin to create player movement and I've never experienced this issue. Even the demo project in this repo has done this since the start.
The camera and controller nodes are all children of the origin node so everything moves in unison. There has to be more going on here then meets the eye.
Are you running in multithreaded mode? Multithreading in Godot 3 is broken as .....

@BastiaanOlij
The same problem was present in older versions of Unit 2019. Most likely this is a feature of VR.
Controllers run forward exactly one frame (if the movement is done in a function _process())

Are you running in multithreaded mode? Multithreading in Godot 3 is broken as .....

I don't quite understand about multithreading. In the settings like this:

For myself, I solved the problem. Issues can be closed.

P.S. For myself, I solved the problem. Issue can be closed.

Out of curiosity, how did you solve the issue? Other people may be having the same problem, so make sure to document this :slightly_smiling_face:

@Calinou https://github.com/GodotVR/godot_openvr/issues/124#issuecomment-864592748

@dedm0zaj you're using single threading mode which should be safe.
I really don't get that fix, that should move the controller backwards in respect to the players position. So if I move forward I would see my hands go backwards.
Everything is relative to the origin point so if you move the origin point, the camera and the controllers move equally in space. The relative position between camera and controllers remain unchanged so they appear exactly where they are supposed to be.
All the tracking happens in relation to the origin point in local space, so again it should not be effected by translating the origin point, your entire VR playspace moves in unison.
It is true that when the _process function on ARVROrigin runs, we haven't run the _process function on the ARVRController nodes so it hasn't updated the tracking on the controller nodes. The only thing I can imagine going wrong here is that once the tracking updates the local position of the controller node is updated and it results in the global position of the controller being calculated based on the OLD global position of the origin point. If that is what is happening here that is a mayor bug in Godot itself.
For me this does not happen because I do all movement logic on a function node attached to the controller I use for movement so my movement code is executed after all tracking has been processed. (see https://github.com/GodotVR/godot-xr-tools/wiki/DirectMovement )
I do want to change the way tracking works in Godot 4 and provide a mechanism for more directly updating tracked nodes before the process loop starts.

@BastiaanOlij I looked at the code DirectMovement (https://github.com/GodotVR/godot-xr-tools/blob/master/addons/godot-xr-tools/functions/Function_Direct_movement.gd)
The move is done in a function _physics_process. When the move is done in a function _physics_process, the controllers do not run away. But this option does not suit me, since the frame rate (72fps, 90fps, 120fps, 144fps) and physics rate (60fps) are different. And when the player (ARVROrigin) moves, the world jerks.

If that is what is happening here that is a mayor bug in Godot itself

Yes, since the problem occurs for all VR plugins (OpenVR, Oculus, Mobile Oculus)
I found a solution anyway. Issue can be closed.

Oh right, yeah I perform all the movement actions in physics indeed. I also sync up the physics update rate to a multiple of the headsets refresh rate. With OpenVR unfortunately its a bit of a gamble but some of the others you can determine what the headsets refresh rate is.
I am planning to do things differently in Godot 4 so if my suspicions are right this will be solved. It is still a little weird though.


Kebab-case identifiers and the @ sign in mlog identifiers

Mindcode currently supports kebab-case identifiers. Primary motivation for kebab-case identifiers is that some mlog content identifiers contains them naturally (@blast-compound). The current syntax allows using the mlog content identifiers without the @ sign in some contexts, e.g. vault1.blast-compound. As mlog content identifiers can appear in various contexts, Mindcode has to support the kebab-case identifiers in general.
This causes two problems:

Mindcode syntax currently doesn't support postdecrement operators. E.g. a-- is an identifier, not an identifier a followed by operator --. This is easily  solvable by allowing dashes only on the inside of the identifier, not at the beginning/end, so surge-alloy would parse as an identifier, but foo-- wouldn't.
a-b is different from a - b. The first one is an identifier, the other is an expression. I can't figure out a good solution for this, but I want to fix it.

Kebab-case identifiers are not a problem for contents identifiers, as long as they are prepended with the @ character: it is possible to parse @blast-compound as a single token, even when blast-compound would parse as blast - compound. It is, however, possible to declare all kebab-case identifiers for items and liquids (blast-compound, spore-pod etc.) as keywords. Then they would be correctly parsed with the dash inside in all contexts, but only those explicitly included in the grammar.
At this point, I'm considering two alternatives:

Declare keywords for the kebab-case content identifiers at the grammar level. The current syntax would remain the same, but if Mindustry, or some Mindustry mod, added a new content (say, dark-matter), it couldn't be used as a property name (vault1.dark-matter) without updating the syntax. It would still be usable as a content identifier, so vault1.sensor(@dark-matter) would compile correctly.

Pros: existing syntax works just fine, no need to update existing code.
Cons: users would naturally try the first form (vault1.dark-matter) and when it wouldn't work, they might not remember to try the seconds one.

Make the @ character compulsory at all places the content identifier might appear. This would mean it would be necessary to write vault1.@coal, or even vault1.@totalItems. To make thing consistent, we'd probably also require switch1.@enabled = true (note the @in @enabled).

Pros:

New content, even from mods, would blend in seamlessly.
The new syntax would be actually closer to mlog, where today's vault1.totalItems corresponds to sensor result vault1 @totalItems (note the @ in front of @totalItems in mlog)
The syntax would be more consistent (@coal would always appear as @coal, never just as coal only). Might even help with syntax highlighting.

Cons:

I don't really like vault1.@totalItems or vault1.@coal - but that is probably just a matter of habit.
Existing code  would have to be updated a lot.

If we decide to go with the second solution (which does seem to have a bunch of advantages), there would be a transitional period in which both cases would be supported.
It would be great to hear what you think about this.

I'm currently leaning towards option #2, for the consistency in provides. If someone can voice any arguments in support of the first solution, please do so.

Setting a property in mlog is done without the @ sign:
control enabled block1 0 0 0 0

So, we'll do block1.enabled = true without the @ sign too.
It's going to be inconsistent in some aspect either way. There is control shootp, for example, but no @shootp property. We'll stick strictly to how things are done in mlog.
Using the built-in identifiers without the @ sign will generate a warning. I found it more user friendly than making it available in the relaxed syntax only.


screenipy - empty stock list

Discussed in https://github.com/pranjal-joshi/Screeni-py/discussions/143

Originally posted by duvvurirao64 December  8, 2022
after running the screenipy exe file first day i got list of stocks in the table form, but second day onwards showing zero stocks in the table. requesting to help me to solve this problem
thanks in advance

Hi @duvvurirao64
Please try deleting the screenipy.ini file from the folder where your screenipy.exe is placed. A new .ini file will be automatically generated with the default config during the next run.
Requesting you post the screenshot for the following screening:

Index : (Enter) All Stocks
Criteria : (2) Screen for stocks with Breakout and volume.

Thanks

its working now thanks sir


Syncthing: Failed to load/generate certificate: save cert: open /config/cert.pem: permission denied

Error:
[start] 2023/03/16 12:33:10 INFO: syncthing v1.23.2 "Fermium Flea" (go1.19.6 linux-arm64) root@buildkitsandbox 2023-03-07 19:03:19 UTC [noupgrade]
[start] 2023/03/16 12:33:10 INFO: Generating ECDSA key and certificate for syncthing...
[start] 2023/03/16 12:33:10 WARNING: Failed to load/generate certificate: save cert: open /config/cert.pem: permission denied

Probably related to Balena Starter Interface which is also accessing the same volumes as syncthing and filebrowser. Checking user ownership and modifying how that works should be the fix.
Worst case remove shared volumes from starter interface.

This was caused because the PUID and  PGID Balena vars weren't being automatically added to the container. A new release with the new balena.yml should fix this.

Solved by #28


GraalVM support

[closes #169]

use CIO over Netty
add GraalVM Gradle plugin
GraalVM compability changes

use call.respondText() over call.respond() to avoid reflection
use call.receiveText() over call.receive() to avoid reflection

update README

This should be tested on various setups. Making nativeTestCompile/nativeTestRun work is a job for another PR, Kotest does not seem to be GraalVM compatible. It's possible to run the metadata agent to dump required test configuration, but that would have to be repeated every time there changes to tests. All in all, the world might not be ready for GraalVM yet 😿

Damn, that is too bad. I was hoping we could automatically run https://www.graalvm.org/22.0/reference-manual/native-image/Agent/ during testing through Gradle 🤔 That'd be really nice..
Using respondText, and manually converting to JSON doesn't seem like decent ergonomics.
WDYT we should do with this PR @organize? If you're interested in investigating running the agent through Gradle, I'm up for that. Otherwise we might leave it open, I hope they fix this in KotlinX Serialization.
Another option might be using Jackson instead. Might still need some GraalVM configuration though, but perhaps more straight forward.

It's possible to run tests through the agent to collect configuration, but that configuration is not necessarily compatible with the server image at runtime 😢
It'd be kind of cool to automatically dump and merge configurations simply by running the tests, but I can't see that working. In order for it to work at runtime, you need 100% test coverage, and any change in a dependency would cause grey hairs. Plus you'd have to run the tests with the agent, in order to run the tests as a native image 😅
To be clear, Jackson would have the same issue, in practice even worse because it's reflection-based. This issue is with Ktor using typeInfo<T> internally when using generics in respond/receive. There's a ticket, but fixing it seems non-trivial to me 😢
I wrote some thoughts in the issue, which you probably already saw. To me there doesn't seem to be an ergonomic/developer friendly way of truly supporting GraalVM at this moment.

To me there doesn't seem to be an ergonomic/developer friendly way of truly supporting GraalVM at this moment.

Agreed, I am leaving this PR open as a draft for documentation if you don't mind.

@nomisRev just to get documentation work counted for Hacktoberfest do you mind adding a hacktoberfest-accepted label? I'll also mark this ready for review temporarily 😅


UP-4755: Add Pull Request Template

https://issues.jasig.org/browse/UP-4755

Checklist

[x] individual contributor license agreement is signed
[x] commit message follows commit guidelines
[x] documentation is changed or added

Description of change

Adds a Pull Request template that will automatically fill in when a PR is opened.
This template is based off the Node.js pull request template.
Reference:
https://github.com/blog/2111-issue-and-pull-request-templates
https://github.com/nodejs/node/blob/master/.github/PULL_REQUEST_TEMPLATE.md

For the first two, would be nice to have links to the CLA list and documentation

Great idea @bjagg !
Added reference links to appropriate sections uPortal's CONTRIBUTING.md guide.

Coverage remained the same at 23.013% when pulling 3bc9c67a4779b123c261b162ca966c8508d51c25 on ChristianMurphy:UP-4755-pr-template into e8cac0fb5dd322bfff4af6241107916bad3bad5c on Jasig:master.


Prerender.Routes problem dealing with trailing slashes

Environment

Operating System: Linux
Node Version:     v18.18.0
Nuxt Version:     3.8.1
CLI Version:      3.9.1
Nitro Version:    2.7.2
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      nitro
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-rqmpdd?file=pages%2F[..._].vue,layouts%2Fdefault.vue,nuxt.config.ts

Open the reproduction in a new window
Click on any of the links
Content has been fetched, even when it should be pregenerated should appear in console even though all routes should've been prerendered

Describe the bug
When adding routes with a trailing slash to nitro.prerender.routes the prerendered content is not used and the page is refetched instead.
Additional context
The behaviour does not seem to appear with nuxt version 3.6.5
https://stackblitz.com/edit/github-rqmpdd-ih3byq?file=pages%2F[..._].vue,nuxt.config.ts,layouts%2Fdefault.vue,pages%2Findex.vue
Logs
No response

If you log the cacheKey you have created you will see that when prerendering it is /evan/ but in production without the trailing slash, the cache key is /evan. This is because your key depends on the trailing slash. Instead, you should ensure you do not depend on the trailing slash for your key. You can use withoutTrailingSlash from ufo as a helpful utility to strip it if you really need to use the path.

Hey @danielroe ,
the cacheKey variable indeed had the trailing slash included.
That variable was not used as the cache key though.
Instead the route param is used as the cache key.  Only including single string anthony,daniel,evan
Sorry for the confusion, I've updated the reproduction

Same problem. It happen after upgrading to Nuxt  3.8.1. I'm temporarily reverting to 3.8.0.


Metric server and Kubectl showing different output for memory usage

Internal reference: SURE-4042
The kubectl top nodes command show different output from UI.
Need to check the consistency of the metrics data being shown in the UI.

Done as part of https://github.com/rancher/dashboard/issues/2892 so this is a duplicate.


Add instrumentation for Start-PSPackage

PR Summary
Add instrumentation for start-PSPackage saying what parameters it thinks you used
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] to your commit messages if the change is significant or affects feature tests

Started a retry on Static analysis.


Support SAML

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Describe the Feature
resource "aws_elasticsearch_domain_saml_options" "example" {
  domain_name = aws_elasticsearch_domain.example.domain_name
  saml_options {
    enabled = true
    idp {
      entity_id        = "https://example.com"
      metadata_content = file("./saml-metadata.xml")
    }
  }
}

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain_saml_options
For now, this resource can be created outside of the module and the module's domain_name output can be used as an input to the raw resource.

Would be great to have this feature 🙏


Not Output from predict.py

I'm running predict.py on a windows machine using Anaconda and the script runs but I don't get any output. I get what seem to be normal messages:
UserWarning: No training configuration found in save file: the model was not compiled. Compile it manually.
warnings.warn('No training configuration found in save file: '

This message, don't is a problem, please, send a snapshot with all messages of predict.py

Here's the messages I get:

Here is my config file:

You need to inform in  -i  the folder name, not the image name
And, inform -o the folder to images result (images with printed boxes)

Thanks @kabrau, I made some progress as it creates a picture in the output folder but no bounding box, the screenshot is below:

Please tell me about your mAP
You can get mAP with evaluate.py

A quick update I can run predict.py on the images in the train_image_folder and get bounding boxes but not on a random image.

For one image, you need to alter the predict.py or put one image in a new folder and predict from new folder.

Thank you @kabrau! I figured it out


Dijkstra's Algorithm

Description
It is an  algorithm to find the shortest paths from a single source vertex to all other vertices in weighted graph.
Domain
Competitive Programming
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign


fix(tier4_datetime_rviz_plugin): fix datetime plugin

Signed-off-by: Takagi, Isamu<EMAIL_ADDRESS>Description
Fix https://github.com/autowarefoundation/autoware/issues/3173.
If the timer callback is executed before onInitialize function, rviz_ros_node_ will be used without initialization.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@isamu-takagi
What is the blocking to open this PR?

@taikitanaka3
I tried to fix this issue but it didn't work.


Issues on Send screen

Error message on invalid address is behind the keyboard. Hide the keyboard when the user pastes the address
The list of destinations also shows hidden Vaults. Hidden Wallets are hidden from this list.
Hidden vaults are seen on Signer Settings Screen, Hidden Vaults should not show here too.
If you paste an address> Proceed > Comeback > Pasted address is seen on the screen but I am able to Proceed again

Point 2,3,4 are resolved but Point 1 is still an issue.
https://github.com/user-attachments/assets/6b71daa7-aad3-40f0-a585-eafe79272a9d
Keyboard is overlapping.


Adding s7clarke10 tap-s3-csv variant

This is a variant of the pipelinewise-tap-s3-csv.
There are a number of new features which can be accessed by additional config parameters.
Additional tap options

s3_proxies
set_empty_values_null
table_suffix
warning_if_no_files

Additional Table Settings

string_override
guess_types
remove_characte
encoding

Thank you for your review @pnadolny13 . I think that is ready to go now.


using additional scoring model to process results

I have a task that requires LM to generate some text as response. Then I use 3 other predefined LMs to score the generation. If I add loading this models as attributes to the class of the task, the models are loaded once the task is initialized utilizing GPU memory while still not needed. I need the scoring models right after the actual LM that I am using to generate texts has finished the runs. Nevertheless, I cannot load the models on process_results step, as in this case for each sample the models will be reloaded which is time consuming.
Is it possible to implement loading some scoring models only once right after all the queries have finished (all greedy_until requests are finished) and use them to get the metrics for each sample?

What if you load the model only when evaluation starts? E.g. https://huggingface.co/spaces/hallucinations-leaderboard/leaderboard/blob/main/src/backend/tasks/xsum/task_v2.py#L68

You could also use one or multiple filters for this. It state and all the model responses are passed to it as a list. Might also be safe to  delete the model beforehand:
https://github.com/EleutherAI/lm-evaluation-harness/blob/a604f05c02d6b6d5c01887c61cb6a1b228f5b60a/lm_eval/evaluator.py#L390-L396


Error while training data

I am trying to train data using one of the specified dataset (Div2k_valid_HR).
I have unzipped the Div2k dataset in the data folder as mentioned in the readme.md including train and val folders as it was mentioned i the training example. There were a number of errors including a error on non-extent test folder in data folder, so I created one.
I got his error.

After which just at random I added an image to this test folder and I am able to train the targeted number of epochs but get this error.

@santosh-shriyan The error appears to be an image size discrepancy.
Can you print all image shape? Check it?

I am using the standard datasets that you provided in the readme (Div2k) and moved to the train and val folders as mentioned in the script file.
The image in the SRGAN-PyTorch-master/data/test folder is a 300x300 jpg image attached below.

I actually haven't bee able to understand your code so I am not sure about how I can check the image shape.

You can
from PIL import Image
img = Image.open("{YOUR image path}")
print(img.size)  # Check it..