text:
Settle on Py_ssize_t type and sys.maxsize value

The sys.maxsize constant defines the maximal value of the Py_ssize_t type, which is a type for indexing collections (and thus, it is the theoretical maximal size of given Python implementation collections).
CPython defines Py_ssize_t as C ssize_t (signed int of the machine’s pointer size, equivalent to Rust isize). And justifies the use of signed type in the PEP-353 with two reasons:

Python allows negative indexes in many contexts anyway (so using isize makes arithmetic on indices easier – but nothing that can’t be done with BigInts and usize anyway),
the CPython codebase has many places where it depends on indexing variable being signed (for loops checking the variable being non-negative, possibly also some error handling by returning -1) – this does not concern RustPython in any way.

At the moment, RustPython defines sys.maxsize as the maximal value of usize:
ctx.set_attr(&sys_mod, "maxsize", ctx.new_int(std::usize::MAX));

and documents it as ‘the largest supported length of containers’.
But at the same time, it starts to use isize for maximal size of containers. At the moment list.insert() checks if the index fits in isize.
Using usize sounds like it makes sense because that is what Rust expects for vector indexing (so all indices must be cast to it eventually), but apparently Rust Vec will panic anyway if you try to grow it over isize::MAX bytes (because Rust has no way to allocate more as a single chunk of memory) – on the other hand it lets you get usize::MAX-long vectors of 0-bytes sized values (but those afaik have no use in RustPython).
And using isize would probably make it easier to eventually implement the Python C API (eg. PyList_Size() function) and C-based FFI.
I think RustPython should settle on either usize or isize (and for the sake of interoperability, and because of technical limitations, probably isize, even though I personally like usize more and find it cleaner) as the underlying indexing type, and raise OverflowErrors in collection functions when indices cannot be converted to isize and perhaps when growing a collection to more than isize::MAX elements (hmm, is it even possible? wouldn’t that panic earlier because of unsuccessful allocation anyway?).
Perhaps adding an alias like type PySize = isize (or PySsize, or PySSize) and using that instead of isize directly would also make sense?
Sorry for a wall of text…

Good explanation! I have no strong preference on this topic. Probably it is best to stick to the cpython way. What do pypy and micropython do?

What do pypy and micropython do?

MicroPython uses ssize_t's max or any equivalent form (Direct 0x7fff...)

fixed by #1124

authors: Jongy silmeth windelbouwman youknowone

repo: RustPython/RustPython


text:
scared2019-preprocess.py

Thank you very much for such an excellent work.
In the processing of the scared2019 dataset, the readme file shows the use of 'left_finalpass',while the code uses 'left'. My understanding is that 'left_finalpass' should be the steri-rectified image, while 'left' should be the original image.
Which image should be used?
Is it using the original image since the disparity is not rectified ?

Hi. Yes please use left instead of left_finalpass. I have fixed the typo in readme. Thanks.

Thank you for your reply.
I took another hard look at the code. In depth_to_disp.py, the Q matrix obtained from the cv2.stereoRectify() function is utilized to generate the parallax. So, is the parallax corrected or not? This makes me very confused.
Could you please help me to solve this?

Hi, I just checked with collaborators. We used the rectified imagesleft_finalpass as RGB images, because the disparities are also rectified. I forgot to update both readme.md and preprocess.py, causing some misunderstandings. I have updated them. Thanks for your detailed review.

Hi, it seems the a problem with setting up the virtual camera orientation in Open3D. We will rerun the code to have a look. Please allow us a few days to figure it out. Thanks.

Hi, is the problem solved?

Hi, we tested the code and there was no such problem. Do you run the code without a display device? I suspect the black image is because conda-installed Open3D does not support offscreen headless rendering. In our case, a monitor is required.

source: gharchive/issue

authors: Ruyi-Zha Tobyzai

repo: Ruyi-Zha/endosurf

license: MIT

license_type: permissive

license_source: github-api


text:
nvcc fatal: Unsupported gpu architecture 'compute_86' ninja: build stopped: subcommand failed

I configured the environment to run on RTX3090 with this "nvcc fatal: Unsupported gpu architecture 'compute_86' ninja: build stopped: subcommand failed. "I want to ask how to solve this?

Hi, this issue should be related to Cuda rather than our code. You might need to change the Cuda version in your system. You may find some solutions here and here.


text:
Create LICENSE

Always nice to have.

this allows people to steal the code
we don't want that :))

They can do that anyway without a license, this forces them to attribute the project.

They can do that anyway without a license, this forces them to attribute the project. No way around it without making the repo private unfortunately.

I may make it private semi-soon... for now lets keep this license ye

source: gharchive/pull-request

authors: General-Mudkip RyanLandDev

repo: RyanLandDev/EmpireBot


text:
Intercept: Request view selection Block

I cannot click on "Raw" anymore in intercept, when i selected SAMLRaider tab:

Hey Dobin
You can select the Raw tab again as soon as you receive a new message (either SAML or an arbitrary HTTP request):

So, this issue is closed then :)
Greetz!
Mänu

authors: dobin mindfuckup

repo: SAMLRaider/SAMLRaider

license: mit

license_source: bigquery


text:
Intro to galaxy text file upload

Intro_to_Galaxy_March_2024.txt

Hi @tralynca
If you're trying to put something in the Galaxy section of the course, put in in modules/galaxy-introduction/_posts folder and name the file as something ending .md. BTW the filename that is currently in that folder looks like it starts with a date: the main thing is just that these "dates" are used as ordering. E.g. your first file could be 2024-02-01-galaxy-intro.md and the next one 2024-02-02-galaxy-next-steps.md etc.

BTW @tralynca just in case you don't know - if you keep pushing commits to the branch (tralynca-patch-1) that you used to make this PR, it updates the PR.

This looks good. Just one thing - you still have Intro_to_Galaxy_March_2024.txt - do you need this? And if so, what is the file doing?

I think that was a placeholder file that Perceval created.Is it the one named 2024_02_23-Galaxy.md?Cos I can’t find the one with the name below?On 03 Mar 2024, at 17:52, pvanheus @.***> wrote:
This looks good. Just one thing - you still have Intro_to_Galaxy_March_2024.txt - do you need this? And if so, what is the file doing?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

delete

Oh I see it now under the PRsI thought that was deleted. On 03 Mar 2024, at 17:52, pvanheus @.***> wrote:
This looks good. Just one thing - you still have Intro_to_Galaxy_March_2024.txt - do you need this? And if so, what is the file doing?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

You might want to do a git rm Intro_to_Galaxy_March_2024.txt and commit / push to get rid of that file.

authors: pvanheus tralynca


text:
Return multiple value in a single function inside the contract

Single call function to get both hold time and deposit amount

@SANTHOSH17-DOT i want to work on it

please elaborate it sir

Right now the contact has two functions to get HODL time and deposit amount. Can this be merged such that a single function can return them both

Right now the contact has two functions to get HODL time and deposit amount. Can this be merged such that a single function can return them both

Ya okay it can be


text:
Update extending-existing-sap-solutions-using-sap-btp-40aa232.md

Fixed missing space ordering of words.

Hi Raphael, just a quick remark fyi: the update will only show on SAP Help Portal with the next release, i.e. in about two weeks.
Thanks a lot for spotting this!
Anna

repo: SAP-docs/btp-best-practices-guide


text:
Update the SAP Loggregator documentation

Hi colleagues, we (CF-Core/ Team Loggregator & CF-Persistence) want to add more documentation about the syslog drain functionality and the corresponding app log limitations.

@ZPascal which is the intended takt/release for this?

Hi @sdanter, it would be good to ship it with 12a.

Hello @stefanlay and @ZPascal , is the discussion around this finished and are the documentation changes finalized? I will add them to the documentation once it's confirmed.

@sdanter We've finished the discussion. Feel free to ship/ merge it.

Changes were added and should be released with 12a. Noticed a missing whitespace in the new part for BTP-specific configurations though.

Hello @sdanter, should we close this pull request if all the changes are made?

Hello @sdanter, should we close this pull request if all the changes are made?

Yes we can close it

Thx @sdanter for the support.

authors: DavidMitreski5 ZPascal sdanter

repo: SAP-docs/btp-cloud-platform


text:
Defer e2e tests outside of CCv2 environment

The team is introducing changes for the next release of CX and the environment we are running our e2e tests against is using the current production version (1811). Therefore, e2e tests need to run elsewhere.

Blocked by INFRA-8108

authors: Xymmer hackergil

repo: SAP/cloud-commerce-spartacus-storefront


text:
MTA Ignore Pramameter Has No Effect

Dear Colleagues,
We are using MTA build tool to package our SAP UI5 application into a mtar and deploy it to Cloud Foundry. The mta.yaml file was created by following the documentation https://sap.github.io/cloud-mta-build-tool/configuration/ . The build parameter "ignore" was used to exclude some folders and files from our src folder, unfortunately this has no effect.
The structure of our project is the following:
Etd-Cloud-Ui-Application:

Build (minified & uglified content);
Deployer (HTML5 application content);
Src (webapp);
Src/test
mta.yaml

We tried the following combinations:   "./src/test", ".src/test/","./src/test/", "/test/", "/test/", "test/**", "/test/" , "test/" but none of them seem to work :(
Please find attached a copy of mta.yaml.

MBT Version: 1.0.14;
OS Version: Win 10 & MAC OS Catalina.

What is the best approach to ignore a file from the source folder?
Regards,
Borcea Cristian.
MTA_FILE.txt

Hi,
The ‘ignore’ build configuration is applied when a module is packaged into mtar. Html5 module in your application is not packaged. Its content is copied to the deployer module and it is the deployer module that is actually added to the mtar. If you need to exclude files you need to configure the ‘ignore’ option in the deployer module.
Regards
Natalia

thank you very much :)

authors: borceacristiann katunin-ng

repo: SAP/cloud-mta-build-tool


text:
Empty space in join method causes wrong filter query generation

Line:
https://github.com/SAP/cloud-sdk-js/blob/7e581600c4759b738abc53b4019e53cc8dce80db/packages/core/src/odata-common/uri-conversion/get-filter.ts#L190
Example Code:
StudyModule
      .requestBuilder()
      .getAll()
      .filter(filterFunctions.startsWith(StudyModule.CODE, 'M_'))
...

Generates the following filter query, which is wrong:
http://localhost:4200/StudyModule?$format=json&$filter=(startswith(Code%2C%20%27M_%27))

and causes the following error message:
{
"error": {
"code": "400",
"message": "Expected a uri token of kinds 'QualifiedName, ODataIdentifier' in '(startswith(Code, 'M_'))' at position 18"
}
}

The correct request should be (without the space as %20):
http://localhost:4200/StudyModule?$format=json&$filter=(startswith(Code%2C%27M_%27))

Hi @cezaryrk
Thanks for opening this issue and providing a fix. Would you like to open a pull request (given credit directly to you) or should I replicate the fix in a local branch?
Please let me know until tomorrow, otherwise I will go with the local branch so we can roll out a fix ASAP.
Best regards
Florian

Hi Florian,
I will provide a pull request ASAP.
Best regards
Robert Kania from TU Berlin ;)

@cezaryrk are you using ODATAv4 or v2? Can you share what library you are using as your ODATA backend?
I checked the ODATAv2 spec (search for 4.5. Filter System Query Option ($filter)) and the examples all show a space. In ODATAv4 it is shown without spaces.
Neither spec seems to require the use or lack of a space, so your PR should not introduce breaking changes for anyone and hopefully fix your specific case.

Thx, we using the OData V4 specification, which for development is providen by the default startup of CDS Services by calling
"npx cds watch src/service".
like in the documentation https://cap.cloud.sap/docs/node.js/cds-serve

authors: cezaryrk florian-richter

repo: SAP/cloud-sdk-js


text:
fiori-tools-proxy disables npm module shims in its' default config

Description
The issue was initially reported at https://answers.sap.com/questions/13461279/ui5-project-shims-not-working.html?childToView=13479438.
When a service is added using the odata-service template. the fiori-tools-proxy middleware is added to the ui5.yaml
server:
  customMiddleware:
  - name: fiori-tools-proxy
    afterMiddleware: compression
    configuration:
# ...
      ui5:
        path:
        - /resources # <-- this line makes the proxy intercept everything with the prefix /resources
        - /test-resources
        url: https://ui5.sap.com
        version:  # The UI5 version, for instance, 1.78.1. Empty means latest version

If a developer then wants to using the shimming functionality and adds a configuration like
specVersion: '2.1'
kind: extension
type: project-shim
metadata:
  name: thirdparty # this can be your project shim name
shims:
  configurations:
    lodash: # name as defined in package.json
      specVersion: '2.1'
      type: module # Use module type
      metadata:
        name: lodash
      resources:
        configuration:
          paths:
            /resources/thirdparty/lodash/: ''  # never getting here because the proxy intercepts it before

It doesn't work because the shimming capability requires resources not to be generically proxied, as it relies on a subdir of resources to make the npm module available at runtime.
Steps to Reproduce
Steps to reproduce the behavior:

Run the tests in the fiori-freestyle template
Enhance the one of the generated projects in the test-output folders with the shim configuration above
Try reaching any file in /resources/thirdparty/lodash
See 404 not found error

Expected results
Actual file is returned.
Actual results
404
Screenshots
-n/a-
Version/Components/Environment
Add any other context about the problem here
OS:

[x] Mac OS
[x] Windows
[x] Other

Root Cause Analysis
Problem
See description
Fix
Different options

Change the generated ui5.yaml to only proxy requests start with sap

ui5:
  path:
    - /resources/sap*

Leave the template as-is and report the issue to the fiori-tools-proxy team
Leave it as is and document that users that require shimming have to change the default settings

Why was it missed
This feature is not covered in a test case.
How can we avoid this
Create a test case covering it.
pinging @petermuessig @tobiasqueck as FYI

@Klaus-Keller what do you think? Is this something that should be fixed in the fiori-tools-proxy or should we update the templates as @vobu suggested as fix option 1?
@petermuessig is there anything not starting with sap at https://ui5.sap.com that we could/would/might need during the preview?

@petermuessig, for custom middleware we have a defined execution order and can also influence this execution order, for instance using
afterMiddleware: compression

Does such an option also exist for project shims? Couldn't find a way to influence execution order in https://sap.github.io/ui5-tooling/pages/extensibility/ProjectShims/

@RandomByte could you help us here?

Hi @RandomByte, it is a good idea, but unfortunately it doesn't work as expected. It is due to the fact that the http-proxy-middleware (the middleware that we are using in the fiori-tools-proxy) doesn't really support this feature (please see Issue248 for reference).
I can call next(), but then I get an exception Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client, because res.end() was called as soon as 404 was received.

Hi all, and sorry for joining the party that late. Basically, the UI5 resources of today are typically in the resources/sap* location but there are some special cases for the jQuery plugins, the ui5loader.js or ui5loader-autoconfig.js.
I like the suggestion of Merlin but this would mean the proxy middleware would require a response stub which is used to intercept the calls like setting the headers and res.end() - I did this in Java for some Servlets in the past and this may also work for NodeJS. Maybe just put a Proxy around and intercept the required functions like setHeader or end.
Cheers, Peter

Update
We decided to go for the idea where the fiori-tools-proxy calls the next available middleware (next()), if the proxy target returns 404. The fix is currently being implemented. Afterwards it will undergo quality assurance. If it all goes well we should have it released in 3-4 weeks.

Update
The fix didn't make it in the next release. Now it should be released mid of January.

Update
Fix was submitted to the main branch. The fix will now undergo quality assurance and if all goes well it will be released at the end of this month.

Fixed with https://www.npmjs.com/package/@sap/ux-ui5-tooling/v/1.4.7.

Hello,
we needed to revert the fix, because the fix was not stable. There were multiple reports of the error
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client.
At this point in time we will not provide a fix for this. Please refer to https://answers.sap.com/questions/13461279/ui5-project-shims-not-working.html?childToView=13479438 for the workaround.
Best regards,
Zdravko

well, the workaround in https://answers.sap.com/questions/13461279/ui5-project-shims-not-working.html?childToView=13479438 is not really a workaround as a pattern like
ui5:
        path:
        - /resources/sap*

will not proxy ui5-loader* or any jquery* resources.

The sources responsible have been published by now and are at https://github.com/SAP/open-ux-tools/tree/main/packages/ui5-proxy-middleware.
@vobu any proposal how to fix it? Should we open the issue?
Btw, wouldn't the config below solve the issue?
ui5:
        path:
        - /resources/sap*
        - /resources/ui5-loader*
        - /resources/jquery*

Hello, we needed to revert the fix, because the fix was not stable.

Hi just enquiring if a fix is still being considered for this or if the issue has been moved to a new discussion?

Hi @proehlen, currently we are not considering to provide a fix for this issue.

authors: Klaus-Keller petermuessig proehlen tobiasqueck vobu zdravko-georgiev

repo: SAP/open-ux-tools


text:
fix: adapted the globalAccount parameter in the relevant facades

This PR addresses all the requirements mentioned in issue #695.
After analysing the BTP CLI commands, the globalaccount parameter was included in the corresponding facades where necessary. The facade tests were modified accordingly and fixtures re-recorded as well. The facade parameters now align with those of the CLI server and the provider also allows users to perform certain actions as Global Account admins (wherever relevant).
Does this introduce a breaking change?

[ ] Yes
[x] No

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

[x] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Test the code via automated test

go test ./...

What to Check
Verify that the following are valid:

Automated tests are executed successfully

Checklist for reviewer

The following organizational tasks must be completed before merging this PR:

[x] The PR is assigned to the Terraform project and a status is set (typically "in review").
[x] The PR has the matching labels assigned to it.
[x] The PR has a milestone assigned to it.
[x] If the PR closes an issue, the issue is referenced.
[x] Possible follow-up items are created and linked.

Drift of fixtures is okay, as new parameter was introduced in HTTP calls. Failure of test  Fixture Drift Detection can be ignore

repo: SAP/terraform-provider-btp


text:
Build Your Mobile Development Kit Client Using MDK SDK

Tutorial URL: https://developers.sap.com/tutorials/cp-mobile-dev-kit-build-client.html
Please specify the step you are referring to: Step 5 : Run the MDK Client.
We have followed all the Steps and each one worked fine but while building the mdk client for demoSampleApp from Step 5 we are getting below error saying:
Unable to apply changes on device: ######. Error is: Command gradlew.bat failed with exit code 1.
I have attached screenshot of my Error

Can you add the following param to the tns run command in the command line:
--logtrace> tns_log.txt 2>&1
e.g. tns run android --emulator --logtrace> tns_log.txt 2>&1
The resulting verbose log will be in the tns_log.txt, it might give more details on the error.

I was facing similar issue it has been resolved by using below link:
https://github.com/SAPDocuments/Tutorials/issues/5783

repo: SAPDocuments/Tutorials


text:
Geiger

Add Geiger to player
It should beep when based on proximity to a hazard.

Geiger added, need to add functionality to beep

Beep done. Needs a check to see if theres no barrels left and if so play nothing.


text:
Write Test Cases for 3DPrintingConsole/requestForm.js

After merging #280, let's ensure that the component renders properly with test cases.
Helpful things
See test/frontend/LedSign.test.js for an example of writing frontend tests.
Let's test that progress, titles and buttons are rendered properly.

2/18 Meeting
To mount with fake props you can do sum like this
Define a props object
const appProps = {
  item: {
    projectLink: 'www.example',
    color: 'blue',
    projectComments: 'xD',
    projectContent: 'fries and chocolate shake',
    date: '2/18/20',
    progress: '1%'
  }
}


text:
A missing file causes failure with poor error message

This issue was originally created at: 2014-08-26 08:49:48.
This issue was reported by: managan.
managan said at 2014-08-26 08:49:48

If a Tex file inputs a missing file the builder errors out and the message is
totally obscure. There is a logic flaw that results in a an uninitialized
reference that needs to be fixed so we get the LaTeX error message instead of a
failure in the builder.

managan said at 2014-08-26 09:54:26

I put a patch for this issue in https://bitbucket.org/managan/scons_newglossary-fix
The test is not working yet. I need to figure out how to run a test and
distinguish a bad stderr result from a "good" stderr result.

bdbaddog said at 2015-09-30 19:23:55

Fix typo in summary

@managan - any chance you still have this patch?

@managan - any chance you still have this patch?

Found the original email that prompted this so I think I should be able to find it or reproduce it

Found the original email that prompted this so I think I should be able to find it or reproduce it

I have reproduced this. Could not find the original patch. Need to work on a test.

I have reproduced this. Could not find the original patch. Need to work on a test.

I reproduced the bug and the fix. No test deck yet. What is the link to the current development process of submitting a branch...

I reproduced the bug and the fix. No test deck yet. What is the link to the current development process of submitting a branch...

@managan  - https://github.com/SCons/scons/wiki/GitWorkflows

@managan  - https://github.com/SCons/scons/wiki/GitWorkflows

Thanks, still at the point of trying to figure out how to distinguish if SCons fails with an exception or just by failing to produce output. The user request was to avoid the exception and have SCons tell you what went wrong.
Are there tests that look for a specific type of failure? Or do you have to write a wrapper to latex like some do and just test the scanning failure...

Thanks, still at the point of trying to figure out how to distinguish if SCons fails with an exception or just by failing to produce output. The user request was to avoid the exception and have SCons tell you what went wrong.
Are there tests that look for a specific type of failure? Or do you have to write a wrapper to latex like some do and just test the scanning failure...

For clarity I am at this point. The stdout and stderr are expected but cause test.run to fail.
managan@rzalastor1[Scons_managan/scons]{master} python3 runtest.py test/TEX/missingInput.py
1/1 (100.00%) /usr/tce/packages/python/python-3.7.2/bin/python3 test/TEX/missingInput.py
/usr/WS2/managan/Scons_managan/scons/scripts/scons.py returned 2
STDOUT =========================================================================
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cd . && pdftex -interaction=nonstopmode -recorder test.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
restricted \write18 enabled.
entering extended mode
(./test.tex
! I can't find file `{preamble.tex}'.
l.2 \input{preamble.tex}
(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
l.2 \input{preamble.tex}
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
pdftex returned an error, check the log file
scons: building terminated because of errors.
STDERR =========================================================================
scons: *** [test.pdf] Error 1
FAILED test of /usr/WS2/managan/Scons_managan/scons/scripts/scons.py
at line 620 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestCommon.py (_complete)
from line 723 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestCommon.py (run)
from line 427 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestSCons.py (run)
from line 65 of test/TEX/missingInput.py

For clarity I am at this point. The stdout and stderr are expected but cause test.run to fail.
managan@rzalastor1[Scons_managan/scons]{master} python3 runtest.py test/TEX/missingInput.py
1/1 (100.00%) /usr/tce/packages/python/python-3.7.2/bin/python3 test/TEX/missingInput.py
/usr/WS2/managan/Scons_managan/scons/scripts/scons.py returned 2
STDOUT =========================================================================
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cd . && pdftex -interaction=nonstopmode -recorder test.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
restricted \write18 enabled.
entering extended mode
(./test.tex
! I can't find file `{preamble.tex}'.
l.2 \input{preamble.tex}
(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
l.2 \input{preamble.tex}
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
pdftex returned an error, check the log file
scons: building terminated because of errors.
STDERR =========================================================================
scons: *** [test.pdf] Error 1
FAILED test of /usr/WS2/managan/Scons_managan/scons/scripts/scons.py
at line 620 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestCommon.py (_complete)
from line 723 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestCommon.py (run)
from line 427 of /usr/WS2/managan/Scons_managan/scons/testing/framework/TestSCons.py (run)
from line 65 of test/TEX/missingInput.py

Any chance you can hop on discord to discuss? https://discord.gg/bXVpWAy

Any chance you can hop on discord to discuss? https://discord.gg/bXVpWAy

authors: bdbaddog managan

repo: SCons/scons


text:
spellchecker - Update logic for add to SBH and add to spellchecker dictionary

In GitLab by @nwalczak on Jun 17, 2019, 15:53
Right now, clicking "add to dictionary" will add the current term to the spellchecker dictionary, but it does not affect the rest of the results.  This should be changed such that all of the results matching that term are removed (if the user adds to the spelling dictionary, it indicates that they don't want to consider that word: it's essentially an "ignore all, always" option).
However, I had made it so that the "Add to SynbioHub" option has this behavior, which isn't quite right.  Really, when adding to SBH, we have two options: ignore the rest of the results, or add a link to the rest of the results.

In GitLab by @nwalczak on Jun 17, 2019, 16:16
created branch 54-spellchecker-update-logic-for-add-to-sbh-and-add-to-spellchecker-dictionary

In GitLab by @nwalczak on Jun 17, 2019, 16:31
mentioned in merge request !4

In GitLab by @nwalczak on Jun 17, 2019, 16:31
assigned to @nwalczak

In GitLab by @nwalczak on Jun 17, 2019, 16:31
closed via commit 0080973776e9afada916e2d7dcd62a8961f232bf

In GitLab by @nwalczak on Jun 17, 2019, 16:31
closed via merge request !4

In GitLab by @nwalczak on Jun 17, 2019, 16:34
I made it so adding an entry into SBH now leaves duplicates untouched, and adding a term to the spellchecker dictionary removes duplicates from the result set.
I think this is better behavior than how it was previously.  I am going to leave the question of what to do with other occurrences of the same term when adding to SBH for issue #55.

In GitLab by @nwalczak on Jun 17, 2019, 16:41
mentioned in commit 0080973776e9afada916e2d7dcd62a8961f232bf


text:
get_next_scheduled_time

MLRSControllerTest.get_next_scheduled_time
In test classes I cannot get the batch apex to create a crontrigger schedule.  I cannot assert the the following "Should correctly pull schedule from string; string is checked against minute part of configuration to avoid formatting issues and date issue". The following does now work CronTriggersSelector().selectScheduledApexById(id);
IMPORTANT NOTE The Chatter Community Group can be found here. If it is an issue that you need help on configuring the tool or have an unexpected error its really worth seeing if the community can help first before raising a GitHub issue. Most users hangout in the Chatter Community Group. Otherwise if prefer you can post here and still link in the Chatter Community Group.

changed ids


text:
Move CI to github actions

This moves all of CumulusCI's own CI builds from CircleCI to GitHub Actions.
I also used this opportunity to split the robot tests into 3 separate builds that run in parallel.
It is expected that the CircleCI builds fail on this PR since I've removed the CircleCI configuration. Once the PR is approved but before merging I will remove the CircleCI commit statuses from branch protection and add the new builds.
Critical Changes
Changes
Issues Closed

@Br4nd0R I suspect we may be able to use YAML anchors for that (https://confluence.atlassian.com/bitbucket/yaml-anchors-960154027.html) but I didn't try yet.

repo: SFDO-Tooling/CumulusCI


text:
Deprecate dx_push task

Critical Changes
The dx_push task is deprecated and should not be used anymore. There is currently no plan to remove it, however.

I am not convinced we should deprecate this task. I'd like to talk to more product developers first. It has a very legitimate use case - making it easy to do a source push, which is much faster than a full deploy, during development.

@davidmreed : that use-case wasn't mentioned in Slack but I don't care one way or the other as long as the documentation is clear. If you want to document it as being of use in that narrow situation that's fine, but the documentation does not make clear when to use "deploy" and when to use "dx_push" and this PR was prompted by a support request by a confused user.

Closing in favor of projected enhancements to the documentation.

authors: davidmreed prescod


text:
Import Robot setup/teardown screenshots

This adjusts the existing code for importing Robot Framework results to handle screenshots from setup/teardown. (Fixes #469)
These are stored as a BuildFlowAsset since they aren't related to a specific TestResult.
Unrelatedly I also adjusted the populate_db script to default to setting up the CumulusCI-Test repository (the old script for adding fake builds and test results is still available via the --results option)

One of the other problems we've had in the past is that errors that happen at startup get lost, such as libraries failing to load. By any chance is that problem at all related to this problem? I don't want to introduce scope creep, but if you're mucking about in the code...
See #464

@boakley let's handle that separately. It would help if you could show me a "normal" (i.e. non-MetaCI-mutilated) output.xml for a test run that includes the import errors, so I can see where they end up.

@boakley let's handle that separately. It would help if you could show me a "normal" (i.e. non-MetaCI-mutilated) output.xml for a test run that includes the import errors, so I can see where they end up.

Sounds good. I've attached an example output.xml file to #464 that includes an import error.

authors: boakley davisagli

repo: SFDO-Tooling/MetaCI


text:
Scrollable lists could be user friendly-er

During my tests with people unfamiliar to the badge, some found the scrolling lists quite difficult to use.
Improvements would be:

Show scrolling progress in the right sidebar
Fast scrolling by using the left and right arrows

+1 from @realitygaps

Fast scrolling as in 'page up/down'? I'd like that especially with the enormous amount of apps we have.

authors: Roosted7 annejan sebastius


text:
🛑 Website is down

In ddbfbb9, Website (ELTeam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website is back up in 6a76ca3 after 1 hour, 26 minutes.

repo: SIRMaxis/uptime-robot


text:
🛑 DNS2.electro is down

In 4755a96, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in 2a30d17 after 30 minutes.


text:
🛑 DNS2.electro is down

In 51ec2a8, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in b8608a3 after 33 minutes.


text:
🛑 DE Server is down

In 9b4cae9, DE Server (de1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DE Server is back up in 403e98e after 7 minutes.


text:
🛑 DE Server is down

In 34321f3, DE Server (de1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DE Server is back up in c31fa55 after 48 minutes.


text:
🛑 DNS2.electro is down

In b9293d4, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in ff6bea6 after 27 minutes.


text:
🛑 DNS2.electro is down

In eee81a0, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in 2195386 after 1 hour, 10 minutes.


text:
🛑 DNS1.electro is down

In 9ddd1a2, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in 7a7d33e after 16 minutes.


text:
🛑 DE Server is down

In 0560ba6, DE Server (de1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DE Server is back up in d185016 after 26 minutes.


text:
Make kriging surrogate picklable

It is achieved by making correlation and regression function options an enumerate. Fixes #153

:x: Build SMT 0.3.540 failed (commit https://github.com/SMTorg/SMT/commit/cc0bc61bbd by @relf)

:x: Build SMT 0.3.541 failed (commit https://github.com/SMTorg/SMT/commit/da88650c9e by @relf)

Coverage increased (+0.01%) to 77.673% when pulling 3c059e015a3fc95f58928266a1a4b22ff87adb0a on relf:ft-pickable-krg into 4feae514bded0733d438a6cd50ffbabb84be4b90 on SMTorg:master.

:white_check_mark: Build SMT 0.3.542 completed (commit https://github.com/SMTorg/SMT/commit/7a59951d74 by @relf)

authors: AppVeyorBot coveralls relf

repo: SMTorg/smt


text:
Consumers with the same groupId reading duplicate messages

Questions?

Check the Troubleshooting / FAQ ?
Search the issues ?

Bug Report
Trying to run the consumer application in Docker- multiple containers are not acting as a part of same consumer group and the messages are duplicated on each container.
Tried to replicate in local by instantiating the apps with different port.
Environment

Node version: v8.12.0
Kafka-node version:^4.1.3
Kafka version:2.2.0

For specific cases also provide

Number of Brokers: 3
Number partitions for topic: 20

Include Sample Code to reproduce behavior
// include code here
var options = {
    kafkaHost: global.appConfig.kafka.client.kafkaHost,
    sasl: global.appConfig.kafka.client.sasl,
    groupId: 'memberSum',
    autoCommit: false,
    fromOffset: 'earliest',
    autoCommitIntervalMs: global.appConfig.topic.summary.autoCommitInterval,
    sessionTimeout: 30000,
    versions: {
        disabled: false
    },
    outOfRangeOffset: 'earliest',
    protocol: ['roundrobin']
}

ConsumerGroup = kafka.ConsumerGroup

/* cg = kafka.HighLevelConsumer;
client = new kafka.KafkaClient(); */

consumer = new ConsumerGroup(
    options,
    global.appConfig.topic.summary.topicName
);

try {
    /*  consumer.on('connect', resp => {
         appLogger.info(global.appConfig.topic.summary.topicName + " connected " + " resp: " + resp);
     }); */

    consumer.on('message', function (message) {
        console.log(message);

        consumer.commit((error, data) => {
            if (error) {
                console.error(error);
            } else {
                console.log('Commit success: ', data);
            }
        });

    });
} catch (err) {
    appLogger.error("Event processing failed" + " Partition: " + message.partition + ". Offset: " + message.offset + ". Sent at: " + message.timestamp)
}

consumer.on('error', err => {
    appLogger.error("Consumer  processing failed" + " Topic: " + global.appConfig.topic.summary.topicName + " error" + err)
});

Include output with Debug turned on
Listening at http://localhost:3000
{ topic: 'memberSum-perf',
value: '{"personId":"287202548","sourceType":"rcp","client":"rcp","eventTime":"testTime","eventType":"test","payload":{"memberId":1001}}',
offset: 32816,
partition: 8,
highWaterOffset: 32817,
key: null,
timestamp: 2019-08-30T21:57:42.389Z }
2019-08-30T21:57:42.425Z debug: Message recieved from topic: memberSum-perf, scanning for fields
2019-08-30T21:57:42.433Z info: Partition: 8. Offset: 32816. Sent at: Fri Aug 30 2019 17:57:42 GMT-0400 (Eastern Daylight Time)
2019-08-30T21:57:42.449Z error: Event processing failed Partition: 8. Offset: 32816. Sent at: Fri Aug 30 2019 17:57:42 GMT-0400 (Eastern Daylight Time)
Commit success:  Commit not needed
{ topic: 'memberSum-perf',
value: '{"personId":"287202548","sourceType":"rcp","client":"rcp","eventTime":"testTime","eventType":"test","payload":{"memberId":1001}}',
offset: 32943,
partition: 12,
highWaterOffset: 32944,
key: null,
timestamp: 2019-08-30T21:57:56.838Z }

Listening at http://localhost:3001
2019-08-30T21:57:30.175Z info: memberSum-perf connected  resp: undefined
2019-08-30T21:57:41.427Z info: memberSum-perf connected  resp: undefined
{ topic: 'memberSum-perf',
value: '{"personId":"287202548","sourceType":"rcp","client":"rcp","eventTime":"testTime","eventType":"test","payload":{"memberId":1001}}',
offset: 32816,
partition: 8,
highWaterOffset: 32817,
key: null,
timestamp: 2019-08-30T21:57:42.389Z }
2019-08-30T21:57:42.411Z debug: Message recieved from topic: memberSum-perf, scanning for fields
2019-08-30T21:57:42.416Z info: Partition: 8. Offset: 32816. Sent at: Fri Aug 30 2019 17:57:42 GMT-0400 (Eastern Daylight Time)
2019-08-30T21:57:42.422Z error: Event processing failed Partition: 8. Offset: 32816. Sent at: Fri Aug 30 2019 17:57:42 GMT-0400 (Eastern Daylight Time)
Commit success:  Commit not needed
2019-08-30T21:57:52.690Z info: memberSum-perf connected  resp: undefined
{ topic: 'memberSum-perf',
value: '{"personId":"287202548","sourceType":"rcp","client":"rcp","eventTime":"testTime","eventType":"test","payload":{"memberId":1001}}',
offset: 32943,
partition: 12,
highWaterOffset: 32944,
key: null,
timestamp: 2019-08-30T21:57:56.838Z }
Thanks for your contribution!

@ankurv37 have you manage to solve this?
I have the same issue. I've also noted that if I have two consumers within one consumer group, both will read from all 3 partitions. But if I start another dummy consumer in the group with the kafka console util (kafka-console-consumer.sh) then they will be re balanced correctly. As soon as this consumer is removed they will return to reading from all partitions (expected would be that one reads from one partition and the other consumer from the other two partitions).
Running this command
kafka-consumer-groups.sh --bootstrap-server localhost:32769 --describe --group test-group --members --verbose
With only two of my own consumers using kafka-node, will show:
CONSUMER-ID                                                 ASSIGNMENT
kafka-node-client-9ab9bc9e-eaae-4975-8db8-0f2d7e3f3f24     test-topic(0, 1, 2)

and every 5 second switch between
CONSUMER-ID                                                 ASSIGNMENT
kafka-node-client-27156ad5-ca1e-4f77-93c7-05794c95affe      test-topic(0, 1, 2)

Switching consumer id if you didn't see :)
With the two consumers above and a command line consumer:
CONSUMER-ID                                                 ASSIGNMENT
consumer-1-375ed3c6-f951-47c7-86f1-5084221f18a0             test-topic(0)
kafka-node-client-27156ad5-ca1e-4f77-93c7-05794c95affe     test-topic(1)
kafka-node-client-9ab9bc9e-eaae-4975-8db8-0f2d7e3f3f24     test-topic(2)

@johnlemonse  I think 2 consumers within same group reading from all partition is expected.
Only when we use a Consumer client (Not consumer group) we can restrict 1 consumer --> 1 partition.
My issue was more around a message on same partition, topic was read by 2 different consumer of same group. I switched to 'kafkajs' for now until I find a solution here

@ankurv37 ok
I changed to kafkajs as well

Sorry for interrupting,  can "kafkajs" set the partition by each consumer?
For instance, There are 1 consumer group and 2 consumer. and topic have 4 partitions.
and First consumer consumes 0, 1 partitions and second one consumes 2, 3 partition.

i am facing the same issue.
Environment

Node version: v10.15.0
Kafka-node version:^4.1.3
Kafka version:2.3.0

Number of Brokers: 3
Number partitions for topic: 1
when I am running 2  consumers (kafka-node) concurrently with the same groupId and produce a message, all the consumers fetch the new message.
after adding another consumer (kafka-node) and producing  a message the bug recurs.
Upon adding an extra consumer (.net core) the problem seems to vanish and only one consumer (out of 4) fetches the message, which is the desired behaviour.
All the consumers are  configured with the same group id

I'm seeing the same issue when the number of partitions is greater than 10. This is a big for us as it's causing duplicates up to 7 times for the same message when having 30 consumers (30 partitions)

I think 2 consumers within same group reading from all partition is expected.
Only when we use a Consumer client (Not consumer group) we can restrict 1 consumer --> 1 partition.
@ankurv37 you have that backwards. Consumers are very low level and can read from all, and you specify what partitions.
A ConsumerGroup is a group of Consumers with a process to divide up which partitions each member consumes from, and a partition is only assigned to a single consumer in the group.

If you are seeing otherwise in a group, something is very wrong as the core foundation of how it is supposed to work has then failed.
Use Consumer if you want to manage partition assignment
Use ConsumerGroup if you want to let the system round robin it and automatically divide all partitions by number of consumers.
Also, do NOT mix consumer clients in a same group!
Your Node.JS client should not be mixing with a .net client. if they don't speak the same protocol version, things will go wrong.
Use different group ID's and then both the .net will get a copy and the nodejs will get a copy.
But overall, kafkajs is yes a better idea to go with, as this client has serious issues that make it unsuitable for production use.
My fork (which is not for public use, only as a reference) fixes significant issues I had

repo: SOHU-Co/kafka-node


text:
🛑 Internet EPEC is down

In 0d85086, Internet EPEC (190.96.117.110) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Internet EPEC is back up in 9f8996e after 23 minutes.

repo: SOPORTEAYIGROUP/AYIGROUP


text:
🛑 CAOSBI is down

In 050339d, CAOSBI (https://caosbi.ayi-asociados.com/) was down:

HTTP code: 502
Response time: 587 ms

Resolved: CAOSBI is back up in 5e17dd5 after 43 minutes.


text:
Neukamm2020 hostassociated

Pull Request
This PR is for a

[x] New Publication(s)
[ ] Correction

For the follow list(s)

[ ] ancientmetagenome-anthropogenic (README)
[ ] ancientmetagenome-environmental (README)
[x] ancientmetagenome-hostassociated (README)
[ ] ancientsinglegenome-hostassociated (README)

New Publication
Publication Information
This pull request is to add samples from the following publication(s): Neukamm 2020 10.1186/s12915-020-00839-8
This is to close #239
Checklist

[x] Publication is published (preprints currently not accepted)?
[x] Checked the publication is not already in the database?
[x] Checked samples in this publication are not previously published data (newly re-sequenced metagenomes are OK!)?
[x] Samples are shotgun metagenomes (hostassociated-singlegenome may also contain whole-genome enriched data)?
[x] Checked the list follows conventions as described in the corresponding sample type's README file (e.g. using ERS/SRS accession codes for ENA/SRA)?
[ ] (If applicable) Made a separate PR to add new categories to controlled lists (stored unnder /assets/enums, e.g. material or archive)? If so:
[x] Changelog is updated to include the publication under 'Added'?

If you do not know how to check errors in failed validation checks, expand here

Press 'details' next to the failed check.
Expand the test ancient <list> line with the red X next to it.
Scroll to the bottom of the log, and look for a DatasetValidationError (usually the last line).
Read the error, and fix accordingly. Check the README for a given list for more guidance. If in doubt, ask!

Correction
This PR is for

[ ] ancientmetagenome-hostassociated
[ ] ancientsinglegenome-hostassociated
[ ] ancientmetagenome-environmental
[ ] ancientmetagenome-anthropogenic

Reference
This pull request is to correct samples from the following publication(s):
This is to close
Description
The issue is:

Checklist

[ ] Checked the corrected entries follow conventions as described in the corresponding sample type's README file (e.g. using ERS/SRS accession codes for ENA/SRA)
[ ] Changelog is updated to include the publication under 'Changed'?

@aidaanva validation error? Do you k now what it is?

@jfy133 yeah, forgot to put Homo sapiens in one of the samples

@aidaanva feel free to merge!

repo: SPAAM-workshop/AncientMetagenomeDir


text:
Upgrade github actions runner helm code and chart to v2

Removed all old v1 code, and using v2 code
Changelog
Instead of a single Actions Controller, it is replaced with a scale set controller and scale set.
Scale set requires Scale set controller to be deployed and working first before its own deployment.
New version only requires the Github Auth creds at the Scale Set level, controller level no longer requires it.
Webhook server is removed and autoscaling handled by listener in Scale Set deployment.

@uchinda-sph can help to take a look?


text:
Log level upon disposing subscriptions

The log level seems to be Error when some subscriptions get disposed. Since disposing subscriptions is expected behavior, it might be useful to lower the log level.
2017-02-10 14:31:53.635 +01:00 [Error] Error Disposed in <subscription name here/>. It will shut down.

Basically, lowering this https://github.com/damianh/SQLStreamStore/blob/master/src/SqlStreamStore/Subscriptions/StreamSubscription.cs#L256 to a warning should be fine? (Or info ?)

This is fixed https://github.com/damianh/SQLStreamStore/blob/master/src/SqlStreamStore/Subscriptions/StreamSubscription.cs#L264 , right?

Re-open if I've misunderstood :)

authors: damianh yreynhout

repo: SQLStreamStore/SQLStreamStore


text:
Installation doc

Removed previous windows_installation folder which was deprecated
Updated the shell scripts for windows and macos
New installation doc

This PR looks good to me, @SAtacker could you check it once.

repo: SRA-VJTI/Wall-E


text:
Documentation: Some .md files are missing

Feature request or bug
Bug
If a bug, what happened?
Several topics of the documentation can't be accessed. For example Getting started, Connecting, Error database, Installing, ...
If a bug, list steps to reproduce bugs.
Example:
When clicking on http://ssilence.github.io/php-imap-client/gettingstarted.html it tries to load gettingstarted.md as Ajax request. But the file is not found on the server and returns a 404.

Thank you I will look into fixing this

I have fixed this :)

Thanks :)

authors: usolved xXXIMMATTHEWXXx

repo: SSilence/php-imap-client


text:
org.evosuite.runtime.TooManyResourcesException: Loop has been executed more times than the allowed 10000

Characteristics

Issue Type: test report
Reproducibility: always
Severity: major
Tool/Service/Component: Botsing-reproduction 1.0.8_SNAPSHOT
Execution Environment: CentOS 7
Reporter: Jesús Gorroñogoitiajesus.gorronogoitia@atos.net

Description
Experiment running Botsing reproduction v1.0.8_snapshot on Atos IF runtime exception is not generating crash-reproduction tests. See execution logs here.
Inspection of logs shows that Botsing is triggering an rg.evosuite.runtime.TooManyResourcesException: Loop has been executed more times than the allowed 10000 exception when executing the best generated test.
This is an excerpt of Botsing logs:
13:09:00.852 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:00.853 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:00.853 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:00.853 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:00.857 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Replace parents
13:09:00.857 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditio
ns.ZeroFitnessStoppingCondition: 5
13:09:00.857 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditio
ns.MaxTimeStoppingCondition: 9
13:09:00.857 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Generating offspring
13:09:00.861 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:00.861 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:00.882 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:00.882 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:00.888 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Keep parents
13:09:00.888 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Sort current population.
13:09:01.364 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:01.364 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - *  The best generated test is: IFAuthenticationManager iFAuthenticationMan
ager0 = new IFAuthenticationManager();
IFAuthenticationManager iFAuthenticationManager1 = new IFAuthenticationManager();
IFAuthenticationManager.access$000();
String string0 = "";
User user0 = iFAuthenticationManager0.getUser(string0);
iFAuthenticationManager0.deleteUser(user0);
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - 1 thrown exception(s) are detected in the best test case:
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.runtime.TooManyResourcesException: Loop has been executed more times than the allowed 10000
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.runtime.LoopCounter.checkLoop(LoopCounter.java:116)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:151)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1053)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.BasicStreamReader.readComment2(BasicStreamReader.java:3839)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.BasicStreamReader.readComment(BasicStreamReader.java:3825)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3724)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3649)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getText(XMLStreamReaderWrapper.java:164)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axiom.om.impl.builder.StAXOMBuilder.createComment(StAXOMBuilder.java:477)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:280)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:721)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:595)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:89)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceStub.<init>(RemoteUserStoreManagerServiceStub.java:639)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceStub.<init>(RemoteUserStoreManagerServiceStub.java:625)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - eu.supersede.integration.api.security.IFUserStoreManager.<init>(IFUserStoreManager.java:109)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - eu.supersede.integration.api.security.IFAuthenticationManager.<init>(IFAuthenticationManager.java:136)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - sun.reflect.GeneratedConstructorAccessor19.newInstance(Unknown Source)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - java.lang.reflect.Constructor.newInstance(Constructor.java:423)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.statements.ConstructorStatement$1.execute(ConstructorStatement.java:233)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:169)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.statements.ConstructorStatement.execute(ConstructorStatement.java:188)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:307)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:213)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:55)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - java.util.concurrent.FutureTask.run(FutureTask.java:266)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - java.lang.Thread.run(Thread.java:748)
13:09:01.365 [main] INFO  e.s.b.g.s.GuidedGeneticAlgorithm - Best fitness in the current population: 4.5 | 300
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current iteration: 2
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.ZeroFitnessStoppingCondition: 5
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.MaxTimeStoppingCondition: 9
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Selection
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Cloning the best individuals to next generation
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.ZeroFitnessStoppingCondition: 5
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.MaxTimeStoppingCondition: 9
13:09:01.365 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Generating offspring
13:09:01.396 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:01.396 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:01.417 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness calculation ...
13:09:01.417 [main] DEBUG e.s.b.t.s.BotsingIndividualStrategy - Fitness Function: 4.5
13:09:01.419 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Replace parents
13:09:01.419 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.ZeroFitnessStoppingCondition: 5
13:09:01.419 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Current value of stopping condition class org.evosuite.ga.stoppingconditions.MaxTimeStoppingCondition: 9
13:09:01.419 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - Generating offspring

Any idea on what is causing this Botsing behavior? It seems Botsing is exhausting some resources. How can I increase them?
Steps to reproduce
Botsing experiment was launched with this script:
java -jar botsing-reproduction-1.0.8.jar -Dsearch_budget=180 -Dpopulation=100 -Dtest_dir=../results/crash-reproduction-tests -crash_log ./logs/exception16b.log -target_frame 3 -project_cp ./libs -model ../results/models -Dp_object_pool=1.0 -Dsandbox=False
Other files and URLs
Relationships
Help on issue template
Preview to follow the link or open file .github/ISSUE_DOC.md

Same as issue #100, this is a crash which is happened deep in the EvoSuite code. It needs some investigations.

We can try to debug it tomorrow in a parallel session, if you are available. Let me know.

I did an investigation on this one. Apparently, EvoSuite puts a limitation on the number of iterations that we can have in the loops of software under test. Fortunately, you can modify this limitation by -Dmax_loop_iterations=<new_limitation>.

Thanks, I will try this out!

Hi @pderakhshanfar
I've run Botsing with flag: -Dmax_loop_iterations=50000
java -jar botsing-reproduction-1.0.8.jar -Dsearch_budget=180 -Dpopulation=100 -Dtest_dir=../results/crash-reproduction-tests -crash_log ./logs/exception16b.log -target_frame 3 -project_cp ./libs -model ../results/models -Dp_object_pool=1.0 -Dsandbox=False -Dmax_loop_iterations=50000
But still getting error report in logs:
08:21:31.068 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - org.evosuite.runtime.TooManyResourcesException: Loop has been executed more times than the allowed 10000
Am I doing something wrong?
I see Botsing is going in the right direction to reproduce the crash, but the tentative test looks a bit repetitive:
08:21:31.068 [main] DEBUG e.s.b.g.s.GuidedGeneticAlgorithm - *  The best generated test is: IFAuthenticationManager iFAuthenticationMan
ager0 = new IFAuthenticationManager();
IFAuthenticationManager iFAuthenticationManager1 = new IFAuthenticationManager();
String string0 = "";
iFAuthenticationManager1.authenticateUser(string0, string0);
String string1 = "b]xUjz j";
String string2 = "pkiZo";
iFAuthenticationManager0.getAuthorizationToken(string1, string1, string2);
IFAuthenticationManager iFAuthenticationManager2 = new IFAuthenticationManager();
String string3 = null;
String string4 = "";
iFAuthenticationManager0.authenticateUser(string3, string4);
IFAuthenticationManager.__STATIC_RESET();
User user0 = new User();
iFAuthenticationManager2.deleteUser(user0);
User user1 = new User();
iFAuthenticationManager2.deleteUser(user1);
String string5 = "Sending message authenticateUser with userName: ";
iFAuthenticationManager1.authenticateUser(string5, string0);

because it creates two IFAuthenticationManager. Moreover, it tries to authenticateUser, what is not required before deleting an user. Maybe this is influenced by the generated behavioral model.
In any case, I can't understand the reason it exhausted the that loop, and why the input flag has no effect.
Any idea?

About the generated test, the nature of Botsing (or any other genetic-based test generation approaches) is mixing different scenarios to find a test closer to the objective (here, crash reproduction). For this purpose, the algorithm may create sth repetitive or irrelevant during the search process. However, after finding a crash-reproducing test case, it cleans the achieved test case and removes the repetitive parts. So, there is no problem with repetitive or unused parts. It does not impact the eventual goal of Botsing.

The loop problem is coming from a specific generated test case that iterates more than 10,000 times on a loop of your software. They put this limitation to make sure that a generated test does not get stuck in an infinite loop. So, a question that may arise here is that is it essential for your application to have a test which iterates more than 10,000 times on a loop?
If the answer is yes, according to EvoSuite's documentations, -Dmax_loop_iterations should help to increase the maximum number of loops. If it does not work, the only way that we can fix it is changing that number in a class of EvoSuite (Properties.java).

There's nothing in our source code that iterates if I remember well, but I will double check the methods invoked by the test generated by Botsing

I confirm, there are not loops in that class. There are not iterative method calls as well.
Is there any way to inform the user in logs where the loop take place in user code?

Hi @pderakhshanfar , IFAuthenticationManagerTest passes well, so the loop shown by Botsing when IFAuthenticationManager is accessing the external authentication service is not caused by a service unavailability.
Please, informe where I can pull EvoSuite code to change the Properties.java file, and how should I build an EvoSuite library used by Botsing.

@jesus-gorronogoitia, you can set this value in Botsing source code. So, you do not need to change it in EvoSuite directly.
For now, you can add the following line to eu.stamp.botsing.Botsing.java class:
RuntimeSettings.maxNumberOfIterationsPerLoop = 50_000;

However, in the next release, I will make sure that a parameter of Botsing can set this value dynamically.

authors: jesus-gorronogoitia pderakhshanfar

repo: STAMP-project/botsing


text:
🛑 SPCast / Loadbalancer is down

In 3ec002f, SPCast / Loadbalancer (https://loadbalancer.sp.radio.fm/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SPCast / Loadbalancer is back up in 6d2c89b after 8 minutes.


text:
Give an option to tests different socok8s versions

Expose a choice parameter to select which socok8s repo to use. This is
done so that we can also change the job logic depending on the tested
version of necessary.

Closing as socok8s was discontinued.

authors: JanZerebecki jhesketh

repo: SUSE-Cloud/automation


text:
Cloud Foundry: Organisation View

Summary panel
Edit organisation (name)
Delete organisation
Show list of spaces

space actions (edit, delete)

?Show list of users and their roles. Also allow these roles to be edited (covered elsewhere)

This issue was moved to cloudfoundry-incubator/stratos#1518

authors: nwmac richard-cox

repo: SUSE/stratos


text:
Kubernetes endpoint: no error message on failing token refresh request

Frontend Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, using docker compose
[ ] Docker, single container deploying all components
[ ] npm run start
[x] Other (please specify below)
CaaSP3

Backend (Jet Stream) Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, using docker compose
[ ] Docker, single container deploying all components
[x] Other (please specify below)
CaaSP3

Expected behaviour
Stratos shows an error message if the token refresh request failed.
Actual behaviour
The Endpoint is listed as connected, but the Kubernetes Menu doesn't show or update any data.
Steps to reproduce the behavior
Register kubernetes endpoint and e.g. use the same kubeconfig from the cli until Stratos can't refresh the Kubernetes data anymore.
Log output covering before error and any error statements
kubectl logs console-0 proxy -n stratos snippet
ERRO[Tue Nov 13 12:42:47 UTC 2018] Error performing http request - response: &{400 Bad Request 400 HTTP/1.1 1 1 map[Content-Length:[121] Content-Type:[application/json] Date:[Tue, 13 Nov 2018 12:42:47 GMT]] 0xc42053b380 121 [] false false map[] 0xc420467600 0xc4202b4420}, error: <nil>
WARN[Tue Nov 13 12:42:47 UTC 2018] <nil>+
INFO[Tue Nov 13 12:42:47 UTC 2018] Token refresh request failed: Error: <nil>
Status: 400
Response: {"error":"invalid_request","error_description":"Refresh token is invalid or has already been claimed by another client."}
WARN[Tue Nov 13 12:42:47 UTC 2018] Passthrough response: URL: https://f81.suse.de:6443/api/v1/pods, Status Code: 500, Status: Error proxing request, Content Type: Unknown, Length: -1
WARN[Tue Nov 13 12:42:47 UTC 2018] Couldn't refresh token for CNSI with GUID XcksQeT30dPLsVyf7s0O0NqtATE
Request: [2018-11-13T12:42:47Z] Remote-IP:"172.16.4.1" Method:"GET" Path:"/v1/proxy/api/v1/pods" Status:200 Latency:16.565414ms Bytes-In:0 Bytes-Out:182
INFO[Tue Nov 13 12:42:48 UTC 2018] {"ClientID":"velum","ClientSecret":"74c7d1c4-1e62-4c23-8e2d-867ce22133f2","IssuerURL":"https://f81.suse.de:32000"}
INFO[Tue Nov 13 12:42:48 UTC 2018] &{velum 74c7d1c4-1e62-4c23-8e2d-867ce22133f2 https://f81.suse.de:32000}
INFO[Tue Nov 13 12:42:48 UTC 2018] velum
INFO[Tue Nov 13 12:42:48 UTC 2018] 74c7d1c4-1e62-4c23-8e2d-867ce22133f2

#64 Should help with this

authors: richard-cox svollath


text:
Advance picture flashes in negative when advance screen fades

As title, on the "wise men discover" screen, all displays correctly until after the advancement description screen. As the screen fades, the advancement image inverts colours.

The palette for the civilopedia screen is a merged palette of two PIC files. The screen fade out code uses the original colours of the default palette, unmixed with the Advance Picture palette. That's why the colours change.
I've made a solution for this.


text:
Javascript testing

Added basic support for Jest tests for the javascript.
Added Travis-CI configuration to run these tests.
Note: right now there's no testing of the Swift code, and only minimal JS tests. It's a start though.

👍

authors: mikz samdeane


text:
feat: various checks for argument lists

Closes partially #543
Summary of Changes
Show an error if an argument list of an annotation call or a call

does not set required parameters,
sets a parameter multiple times,
passes too many arguments.

:tada: This PR is included in version 0.2.0 :tada:
The release is available on:

Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:

repo: Safe-DS/DSL


text:
ci: remove dependency review workflow

Summary of Changes

Remove the workflow for dependency review. It is now required organization-wide.

🦙 MegaLinter status: ✅ SUCCESS

Descriptor
Linter
Files
Fixed
Errors
Elapsed time

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
MegaLinter is graciously provided by

repo: Safe-DS/Stdlib


text:
Create Min cut Square.cpp

DP problem Medium lvl
Please fill the details before contributing.

⚠Important!!

[x] Done reading CONTRIBUTING.md?

Adding Code PRs?🔥
⚠Do not add multiple files for the same solution!!!

[x] Added problem statement(Readme.md) with solution?

[ ] Contributing new file?
[ ] Appending your code in already existing file?

From Platform:

[ ] Leetcode
[x] GFG
[ ] Interviewbit
[ ] Others(only acceptable after DISCUSSIONS)

Migration PRs?🤝

[ ] Done deleteing file from home directory?
[ ] Added file with correct name and correct directory?

dp problem

.


text:
Update validation to catch missing and/or unknown patient IDs

Currently, validation will only fail if the predictions file has missing IDs AND unknown IDs:
if not all(golddf['patientID'].isin(subdf['patientID'])) and \
    not all(subdf['patientID'].isin(golddf['patientID'])):

Oh good catch!

Oh good catch!


text:
Implement /healthCheck endpoint

Depends on https://github.com/Sage-Bionetworks/rocc-schemas/issues/58
In addition, update the Dockerfile to include the HEALTHCHECK instruction shown below:
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s CMD curl --fail http://localhost:8080/api/v1/healthcheck || exit 1

# Set the entrypoint script and the default command run by the container
ENTRYPOINT ["/docker-entrypoint.sh"]

# Run server in development mode
# CMD ["python", "-m", "openapi_server"]

# Run server in production mode
CMD ["uwsgi", "--ini", "uwsgi.ini", "--lazy", "--http", ":8080"]

Done

repo: Sage-Bionetworks/rocc


text:
[SNOW-175] Convert node_latest table -> dynamic table

problem
Currently the node_latest table is a regular table that gets updated using tasks and streams. We can simplify our data warehouse by turning this into a dynamic table that updates itself without requiring tasks & streams.
solution
Following the instructions of this SOP:

[x] Add a script to create a backup of the original node_latest table in case of issues
[x] Add a script to drop the original node_latest table so we can create a dynamic table with the same name
[x] Create node_latest dynamic table that introduces some post-processing of the RAW data
[x] Add a script to delete the scheduled task + stream that were for the original node_latest table

testing
1. Comparing the results between the new and old node_latest tables
I found a discrepancy between the results from the new node_latest dynamic table query and the current node_latest table. There are 1,413,032 rows missing from the new node_latest dynamic table:

As suspected, the discrepancies are due to the added time window of 14 days in the dynamic table query:
✅

2. Confirm there are no duplicate ids
✅

3. Confirm that all non-deleted nodes are accounted for
For this test I created a temp table that shows the IDs missing from the latest table that exist in the snapshots table. From visual inspection, it looks like these IDs are missing either because their change_type is set to DELETE, or because their last snapshot was taken outside of the 2-week window, in which case they are misrepresentations of the current state of the nodes.
✅

4. Confirm that the LATEST version of each node is represented in the new node_latest
✅

@jaymedina / @philerooski I wouldn't merge this just yet, because if it is merged then the highest V scripts would be recognized as 2.26 and skip over the work you're doing Phil.

For testing, it's a bit nuanced

I'll add this to our CI/CD design doc so we can explore potential test cases.

repo: Sage-Bionetworks/snowflake


text:
SWC-6730c: add step to set common AR fields

type
SWC
SRC

create entity AR

create team AR

edit entity AR

edit team AR

Since you're here, could you disallow the ability to create a Managed AR on a team.  This is not a configuration that our UI has ever supported (and is not in use today).  You can simply hide the AR type selection radio group if the target is a Team (and default to Click Wrap in this case).

authors: hallieswan jay-hodgson

repo: Sage-Bionetworks/synapse-web-monorepo


text:
Ctrl-b/f dont seem to do anything in terms of scrolling documentation

Make sure you have done the following

[X] I have updated to the latest version of blink.cmp
[X] I have read the README

Bug Description
Pressing  or  doesn't seem to scroll documentation at all
https://github.com/user-attachments/assets/6801495f-5cf5-4607-986b-d336563d4fd4
Relevant configuration
require("blink.cmp").setup({
    keymap = "default",
    -- experimental auto-brackets support
    accept = { auto_brackets = { enabled = true } },
    -- experimental signature help support
    trigger = { signature_help = { enabled = true } },

    windows = {
      documentation = {
        auto_show = true,
      },
    },
  })

neovim version
NVIM v0.10.2
blink.cmp version: branch, tag, or commit
v0.5.0

It doesn't scroll because the entire documentation is already being shown in your examples


text:
🛑 Nostr Relay - wss://nostr.oxtr.dev is down

In d6c84f0, Nostr Relay - wss://nostr.oxtr.dev (https://nostr.oxtr.dev) was down:

HTTP code: 500
Response time: 565 ms

Resolved: Nostr Relay - wss://nostr.oxtr.dev is back up in 69e90b3 after 12 minutes.

repo: Sakhalinfox/orangepilldevuptime


text:
🛑 Nostr Relay - wss://nostr-pub.semisol.dev is down

In 5f7b784, Nostr Relay - wss://nostr-pub.semisol.dev (https://nostr-pub.semisol.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nostr Relay - wss://nostr-pub.semisol.dev is back up in aac7779.


text:
🛑 Nostr Relay - wss://brb.io is down

In 27c2c7f, Nostr Relay - wss://brb.io (https://brb.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nostr Relay - wss://brb.io is back up in 53017ac.


text:
Attempt to demo issue with following redirects client side

Hey friends,
In https://github.com/salesforceCommerceCloud/pwa-kit, we've been trying to reduce the # of requests made to render any page to improve performance.
In https://github.com/SalesforceCommerceCloud/pwa-kit/pull/254, I'm trying to skip an extra request made in the context of a SLAS login.
The extra request I'm trying to skip is due fetch's default behaviour of following redirect chains.
I'd like to use the fetchOptions of ClientConfig with the ShopperLogin client to disable following redirects:
// This client shouldn't follow redirects.
const loginClient = new ShopperLogin({
  fetchOptions: { redirect: 'manual' },
  ...config
})

I've observed that redirects are not followed in Node.js environments, but are in the browser.
This PR demonstrates the issue.

After reviewing the spec, it appears redirects should not be accessible via the fetch API:

Redirects (a response whose status or internal response’s (if any) status is a redirect status) are not exposed to APIs. Exposing redirects might leak information not otherwise available through a cross-site scripting attack.

https://fetch.spec.whatwg.org/#atomic-http-redirect-handling
So, my original use case won't work in the context of a browser.
For me, one interesting observation was that when using import fetch from 'cross-fetch in the browser, you'll get the whatwg-fetch's XHR based implementation.
This was/is surprising to me, because I was under the impression that this would use the native fetch if available ... but it doesn't! which can make reasoning about the behaviour you're seeing tricky.

For me, one interesting observation was that when using import fetch from 'cross-fetch in the browser, you'll get the whatwg-fetch's XHR based implementation.
This was/is surprising to me, because I was under the impression that this would use the native fetch if available ... but it doesn't! which can make reasoning about the behaviour you're seeing tricky.

That's a good point! The package specifically states that it's a polyfill. There must be something in our build process that is causing the polyfill to be used regardless of environment.

@wjhsf for my own learning ;P
cross-fetch uses a "ponyfill" approach when imported directly:
// browser.js
import { fetch, Request }  from "cross-fetch";

// Uses XHR
fetch('https://httpbin.org/anything')

https://github.com/lquixada/cross-fetch/blob/main/README.md#install
Which we do right now:
https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic/blob/990ac9177f29759946074f1677a5da24e0b0a696/templates/client.ts.hbs#L1
For a polyfilling alternative we could use:
// browser.js
import "cross-fetch/polyfill";

// Uses `fetch` if available, otherwise falls back to XHR
fetch('https://httpbin.org/anything')

If there were gaps (features/function) in the XHR based implementation, I think I'd advocate for trying to find a way to get it to use fetch in browser if available.
I guess generally I'm also curious about the browser share % of browsers without fetch: https://caniuse.com/fetch
It looks like its mainly IE11 which is forcing us to continue polyfilling. IE11 has an EOL date of 2022 June 15 – so it might make sense to revisit this around then.

authors: johnboxall wjhsf


text:
@W-15628148 Implement Pagination and Integrate Web Geolocation API

W-15628148
and
W-15621326
Description
Added "Load More" button functionality to store locator and integrated native web geolocation API to "Use my Location" function. Made default of country selector, if defined in constants.js, to show "Select a country". Updated UI text to remove distance and show information on geolocation.
Types of Changes

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

Removing a public function or component or prop
Adding a required argument to a function
Changing the data type of a function parameter or return value
Adding a new peer dependency to package.json

Changes

(change1)

How to Test-Drive This PR

(step1) Go to https://runtime-admin-n16.mobify-storefront.com/ to check out the deployment
(step2) Open the store locator modal by pressing the icon on the top right of the home page
(step3) See that results from the default geolocation set by the merchant is shown. The input fields have an empty postal code and a "Select a country" for the country selector. (NOTE: you will see results from different countries because for testing purposes I have set the distance to look for stores around a given location to be the API maximum)

Load More testing

(step4) Scroll down and press load more to see that 10 more stores are loaded
(step5) Keep pressing load more until there are no more stores in the list

Use my location testing

(step6) Press use my location to find the permission dropdown from your browser show up. Allow sharing.
(step7) See that UI text changes to "Viewing stores near your location", and shows the store closest to you first.
(step8) Close and open the modal to see that the modal keeps your last input (i.e. before close if you had pressed "Use My Location" it will show you location around you. If you had given a manual input, e.g. Germany 24103, then it will show you location around there.

Testing the store locator page

(step9) Go to https://runtime-admin-n16.mobify-storefront.com/global/en-GB/store-locator
(step10) Now that you have your location sharing enabled, see that it shows you stores around you. Test the Load More functionality like in step4-step5
(step11) The behavior of the store locator page and the modal are different. Closing the store locator page and opening does not result in the remembering of previous input. Check that this is the case.
(step12) Alternate between providing manual input and pressing "Use my Location" to test the functionalities.

Checklists

General

[ ] Changes are covered by test cases
[ ] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance
You must check off all items in one of the follow two lists:

[ ] There are no changes to UI

or...

[ ] Changes were tested with a Screen Reader (iOS VoiceOver or Android Talkback) and had no issues
[ ] Changes comply with WCAG 2.0 guidelines levels A and AA
[ ] Changes to common UI patterns and interactions comply with WAI-ARIA best practices

Localization

[ ] Changes include a UI text update in the Retail React App (which requires translation)

For some reason the linter isn't working, i'm surprised there is var in the code and tests are passing... let's only use let or const. No var in the code base.

When I opened the modal, I could see some errors/warnings in the browser console. Let's fix them, because otherwise that won't leave a good impression to other developers.

FYI there are some warnings in the browser console when interacting with the store locator:

Re: the store locator's states:
I think it'd be easier to follow and understand if we collect/define these states in one place and share them across components with React Context.
It would look something like this: https://github.com/SalesforceCommerceCloud/pwa-kit/commit/616e37f883b1623474fba9c76a4ae2f2ef19d616

Re the warnings on Invalid Parameters:
I found that merging the develop branch into this branch fixes the warnings. This is apparent from how in localhost, the warnings are visible but the published website, which I pushed after merging develop locally, doesn't have the warnings. I did not include the changes from develop here because it didn't seem relevant enough to store locator feature and it would add more code to read.

UI suggestion
There is no visual feedback for loading state when clicking "Find" button. User has no indication that something is loading.
https://github.com/user-attachments/assets/5dca3729-9bb6-4814-8353-424e8a1570ab

It seems the inputs (selector and input) have different borders.

@jeremy-jung1 where do we plan to merge this PR to? I think I read somewhere on Slack about changing the target branch to something else.

Re making an API call with the same parameters again when Find button is pressed:
It seems the staleTime and cacheTime aren't supposed to affect whether or not the API call gets made by the react-query library. If there are results in the cache, then the cached results are returned, regardless of the aforementioned options.
The react query library deliberately prevents an API call from being made on every re-render, and API call being made on every render is actually what we want for the store locator's Find button. Because useQuery is a hook that can only be called at a component level, meaning it can only be executed at re-render, this essentially means that the API call will not be called whenever the hook is called, even if staleTime is 0. And by default staleTime is already at 0 according to the useQuery documentation from tanstack
https://tkdodo.eu/blog/practical-react-query#the-defaults-explained

First of all: React Query does not invoke the queryFn on every re-render, even with the default staleTime of zero. Your app can re-render for various reasons at any time, so fetching every time would be insane!

Here is more into what staleTime really does:

staleTime: The duration until a query transitions from fresh to stale. As long as the query is fresh, data will always be read from the cache only - no network request will happen! If the query is stale (which per default is: instantly), you will still get data from the cache, but a background refetch can happen under certain conditions.

The aforementioned condition seems to be when a "new" instance of useQuery is defined. If this equates to useQuery being called on re-render, then we could have a bug in the commerce-sdk-react library. I tested that the behavior of not making API calls with the same parameters exists not only for useSearchStores but other hooks like useProducts.
Either way, even if this bug is fixed, it wouldn't have an impact on the Store Locator's Find code because the data will still be retrieved from the cache initially, preventing a brief loading feedback that we wanted for UX. The bug will only decide whether or not a background fetch will occur at some point. What we want is for the fetch to always happen on "Find" and to give visual feedback, so refetch seems to be the best option in ensuring that.
A short aside on cacheTime:
What cacheTIme is used to specify the time until a cache data is garbage collected after a component unmounts, and unmounting is not relevant to the use case of the Find button.
https://github.com/TanStack/query/blob/v4.28.0/docs/react/guides/caching.md

Both instances of the useQuery({ queryKey: ['todos'], queryFn: fetchTodos }) query are unmounted and no longer in use.
Since there are no more active instances of this query, a cache timeout is set using cacheTime to delete and garbage collect the query (defaults to 5 minutes).

@vmarta This branch will be merged into the store-locator-base-branch which has all the Store Locator changes. Then that will be merged to develop for the 4.0.0 template retail react app release

@jeremy-jung1 can you try npm ci at the monorepo root? I'm seeing this error (which may be related to the CI failing too):
lerna ERR! lifecycle "prepare" errored in "@salesforce/commerce-sdk-react", exiting 2
node:child_process:965
    throw err;
    ^

Error: Command failed: npm run lerna -- bootstrap --no-ci

@vmarta After making this branch up to date with develop and the base branch, I ran npm ci and found that it ran successfully without errors. I believe it encountered an error for you because I was in the process of still resolving merge conflicts.

authors: jeremy-jung1 kevinxh vmarta

repo: SalesforceCommerceCloud/pwa-kit


text:
RD2: NPSP setting custom label update

Critical Changes
Changes
Issues Closed
Community Ideas Delivered
New Metadata
Deleted Metadata

**lurch: attach W-038551

Tracking W-038551

@sam-knox Please review the 2 custom labels change

authors: LurchTheButler andrewyu-salesforce

repo: SalesforceFoundation/NPSP


text:
allow providing xhrFields like 'withCredentials' for CORS

When connecting to long-polled server on a different domain/port you might want to share authorization cookies with it, so you have to add xhrFields { withCredentials: true } to ajax calls.
This patch would enable doing this.

something feels a bit odd here, maybe a cleaner way of just adding ANY options to the xhr?

Makes sense. I will prepare another pull request.

authors: SamSaffron jraedisch


text:
Add progressive web app support

Clear and concise description of the problem
Using Podfetch on mobile is an incredibly common (if not the dominant) use case. But Podfetch doesn't have a standalone app, nor is that likely.
A great alternative would be a progressive web app, which allows opening websites as their own standalone "apps" on mobile. A combination of this (plus a new documentation page I would be happy to contribute to!) could give Podfetch an "app" feel, improving usability
Suggested solution
Implementing the standalone app from this guide would likely accomplish it, alongside custom icons, etc.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Clear and concise description of the problem
Using Podfetch on mobile is an incredibly common (if not the dominant) use case. But Podfetch doesn't have a standalone app, nor is that likely.
A great alternative would be a progressive web app, which allows opening websites as their own standalone "apps" on mobile. A combination of this (plus a new documentation page I would be happy to contribute to!) could give Podfetch an "app" feel, improving usability
Suggested solution
Implementing the standalone app from this guide would likely accomplish it, alongside custom icons, etc.
Alternative
No response
Additional context
No response
Validations

[x]  Follow our Code of Conduct
[x]  Read the Contributing Guide.
[x]  Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Hi. Thanks for the issue. The PWA app should be doable. What do you mean with a new documentation page?

That's great to hear!

What do you mean with a new documentation page?

While not strictly necessary, I think a feature like this would elevate the tool a lot and be a selling point over competitors. As such, I'd be willing to document how to do it and why it's so nice.

That's great to hear!

What do you mean with a new documentation page?

While not strictly necessary, I think a feature like this would elevate the tool a lot and be a selling point over competitors. As such, I'd be willing to document how to do it and why it's so nice.

I added support for PWA to PodFetch.

Awesome! Thanks for all of the continued work, love Podfetch 😄

It works great so far! Two things of note:

The iOS icon doesn't work quite as expected, at least for me. When exiting the PWA I can briefly see it, but statically it appears as a black box. See below image.
When using as a PWA, the audio can't be controlled via Control Center. Not a dealbreaker by any means, just probably worth noting.

As for the documentation, would you like me to take a crack at this? I tried to open a PR but wasn't sure how to do so.

It works great so far! Two things of note:

The iOS icon doesn't work quite as expected, at least for me. When exiting the PWA I can briefly see it, but statically it appears as a black box. See below image.
When using as a PWA, the audio can't be controlled via Control Center. Not a dealbreaker by any means, just probably worth noting.

As for the documentation, would you like me to take a crack at this? I tried to open a PR but wasn't sure how to do so.

Sure feel free to open a pull request. I'll try to fix the audio issues with the pwa.


text:
Ability to fetch processed data correctly RecruitmentUsersWithoutInterviewGangPage

The information in the right most column ("Processed") is not updating.
It should be updated when recruiters set the priority of the application to anything
else than "Not set". Remember this is for the whole recruitment!
There is very similar functionality which works here: "http://localhost:3000/control-panel/recruitment/1/gang/10"

https://github.com/Samfundet/Samfundet4/pull/1592