text:
Calculation In Numerical Input Boxes

Is your feature request related to a problem? Please describe.
Currently, only numbers can be entered for output rate/etc., so if you want to calculate something, you have to use a separate app.
Describe the solution you'd like
Take a page from spreadsheets and treat any input that starts with '=' as a formula to be calculated.  (The result can be displayed in grey text on the left side of the input box.)  A simple example might be '=5 * 45' to calculate the total structures needed for 5 lines of production where each line produces 45 items per minute.  Sure, users could just enter 225, but every time they change either the number of lines or their production rates, they would have to recalculate.  ...and what if they add new, more efficient lines without replacing the old ones?   Would it not be FAR easier to simply change the formula to '=5 * 45 + 3 * 60'?
Cheers!
Keith

I'll have to see if there's already a package out there that takes a string like that and solves it. If so, I'd consider using it to do this, but that's not the kind of thing I'd really want to maintain myself.

Something like this:
https://www.npmjs.com/package/string-math

Something like this:
https://www.npmjs.com/package/string-math

That looks perfect, but I would make the slight adjustment of using an equal sign in the first position to signal that the rest of the string is a formula.

repo: factoriolab/factoriolab


text:
compile_uri_template() is not consistent with compiled router

The compile_uri_template() function is not consistent with compiled router regarding tailing slash.

I don't know either what the plan for compile_uri_template() is. I think it is left as a utility method for building custom routers, and I suppose, may continue to exist as such.

This PR does a good job at explaining the status quo, so maybe let's just merge it, and create a new issue for making this method slightly more consistent with CompiledRouter.

Originally posted by @vytas7 in https://github.com/falconry/falcon/pull/1961#pullrequestreview-777018325
The options may be

to leave it as is, with the warning provided by the above referenced pr
add a flag to select what behaviour to have
deprecate and eventually remove it, since it's not used internally by falcon.

As a datapoint, it does not seem very used, https://github.com/search?q=compile_uri_template&type=code
My vote goes to deprecation followed by leaving as is.

do you think we can deprecate it in v3 for removal in v4?

Fixed in #1971

source: gharchive/issue

repo: falconry/falcon

license_type: permissive

license_source: github-api


text:
update: maintainers list and evolution resources

Updating maintainers list and the evolution resource files. Made using the update-maintainers periodic ProwJob. Do not edit this PR.
In case you wanna change your name or your company change this file.
/kind documentation

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: poiana
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

source: gharchive/pull-request

repo: falcosecurity/evolution


text:
Update Prism to 1.29.0 + support for protobuf

Signed-off-by: Vicente J. Jiménez Miras vjjmiras@gmail.com

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind translation

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation

/area videos

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: vjjmiras
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval by writing /assign @leogr in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 75ac4ba74b3fda21ff1d7bfef275b90c7f2d6e18

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Issif, vjjmiras
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

authors: poiana vjjmiras

repo: falcosecurity/falco-website


text:
feat: add keywords logic to head.html

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind translation

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation

/area videos

What this PR does / why we need it:
Implements optional logic in head.html that enables to add keywords in frontmatter of md files
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: bullet03
Once this PR has been reviewed and has the lgtm label, please assign vjjmiras for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

content/OWNERS
layouts/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
Update the CI

Signed-off-by: Thomas Labarussias issif+github@gadz.org<!--  Thanks for sending a pull request!  Here are some tips for you:

If this is your first time, please read our contributor guidelines in the CONTRIBUTING.md file.
Please label this pull request according to what type of issue you are addressing.
If the PR is unfinished while opening it specify a wip in the title before the actual title, for example, "wip: my awesome feature"
-->

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area tests

What this PR does / why we need it:
Update the CI
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fjogeleit, Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif,fjogeleit]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 9ef7c90757c97ba559bdc6ea57f0dd5ecd60ea45

authors: Issif poiana

repo: falcosecurity/falcosidekick-ui


text:
I have a sunburn

help

Use cooling gel

Use a cooling gel

Will try tomorrow, thank you. Closing as solved.

authors: FicusmcHousePlant kandowontu

repo: famidash/famidash

license: MIT


text:
Some question about DRMM_TKS

whether exixt the paper that detailed introduce the DRMM_TKS ?

In fact, this method incorporated ideas from DRMM and PACRR (2017 A Position-Aware Deep Model for Relevance Matching in Information Retrieval), it has not been published.

@WelcomeLi I'll close this issue for now, hope your question has been solved, best!

authors: WelcomeLi bwanglzu faneshion

repo: faneshion/MatchZoo

license_source: bigquery


text:
Encountering Missing Data Files During Code Replication

Hello! I am very interested in your research work and have attempted to replicate your code. However, during the process, I noticed that the required data file ./data/cifar100_labelindex seems to be missing. Could you please provide this data, or guide me where to download it? Thank you very much for your help and support.

Hi!
Thanks for your attention! We have uploaded the label_index files in ./data directory.
If you want to select another label index randomly, please refer to the repository https://github.com/brain-research/realistic-ssl-evaluation.
Additionally, we have updated our main.py file to include more specific parameter values for reproduction.
If you have another problem, feel free to contact us!


text:
Training time and GPU memory usage

Could I ask your STAN-self-B/16 training time in your paper.
And I really be astonished at frame number@12 and batch size@128, which means one forward need to process 1536 images, and images also will be transformed into patches, it's a huge sequence length for self-attention this operator  in either temporal or spatial dimension. Would it take many gpu memory usage?

The training of CLIP-B/16 does be expensive, because contrastive learning is sensitive to batch size and 128 is uncompromising. On 16 A100, it takes 12 hours to train on MSRVTT and 4 hours to train on DiDemo

authors: farewellthree laisimiao

repo: farewellthree/STAN


text:
Akses api gratis

Hallo min tolong approve dan merge ,, saya menambahkan akses api gratis

merged, makasih mas @fsteamID.

authors: fsteamID sooluh

repo: farizdotid/DAFTAR-API-LOKAL-INDONESIA


text:
FAI-11093 Jira tests -- client

Was able to port these unchanged from the feed

Only difference is that our client doesn't implement getStats. Should I port that functionality over since I'm here @chalenge @matiaslcoulougian ?

Only difference is that our client doesn't implement getStats. Should I port that functionality over since I'm here @chalenge @matiaslcoulougian ?

Ported ✅

repo: faros-ai/airbyte-connectors


text:
@iconify/vue 无法定制 provider 和 addCollections

二、当前使用的库版本
1. fast-crud版本：  1.20.0
由于@iconify/vue 打进了dist 包，导致无法使用 addCollection, addAPIProvider 了。
import { addCollection, addAPIProvider } from '@iconify/vue';

建议 build 的时候 externals 加上 @iconify/vue

提交了一个 pull request https://github.com/fast-crud/fast-crud/pull/366

1.20.1已排除@iconify/vue 需要外部安装

authors: greper vellengs

repo: fast-crud/fast-crud


text:
Is it possible to get the names of misinterpreted images with plot_top_losses ?

Hello,
as shown in this image

is it possible to get the filenames of misinterpreted images after using plot_top_losses ?
Thanks

That would require quite a lot of changes to the architecture sadly. You can get the indices of those images with:
losses,idx = self.top_losses(k, largest)

and give the value of k you want, and then look at the corresponding items in the dataset you are using however.
Closing the issue, we can discuss more on the forum if this is not enough.

authors: aquadzn sgugger


text:
Incorrect (or missing) implicit cast on array

foo: func~SizeT->SSizeT[]{
    return [1,2,3,4]
}

foo: func~Int->Int[]{
    return [1,2,3,4]
}

main: func(){
    foo~SizeT()[0] toString() println()
    foo~Int()[0] toString() println()
}

gives:
8589934593
1

instead of
1
1

8589934593 = 2<<32 + 1
Generated Code:
_lang_array__Array return__foo_SizeT() {
    _lang_array__Array __arrLit1 = _lang_array__Array_new(lang_Numbers__Int, 4);

    {
        lang_Numbers__Int* __ptrLit2 = (lang_Numbers__Int[]) { 1, 2, 3, 4 };
        lang_Memory__memcpy(__arrLit1.data, __ptrLit2, 4 * ((lang_types__Class*)lang_Numbers__Int_class())->size);
    }
    return ((_lang_array__Array) (__arrLit1));
}

lang_String__String_println(lang_Numbers__SSizeT_toString(_lang_array__Array_get(return__foo_SizeT(), 0, lang_Numbers__SSizeT)));

It clear that [1,2,3] is infered as Int[] but used as SSizeT[] without (element-wise) cast.

Note that this works:
use sam-assert

foo: func ~SizeT -> SSizeT[] {
    arr: SSizeT[] = [1, 2, 3, 4]
    return arr
}

foo: func ~Int -> Int[] {
    return [1, 2, 3, 4]
}

main: func(){
    expect("1", foo~SizeT()[0] toString())
    expect("1", foo~Int()[0] toString())
}

I'm pretty sure rock should forbid array casts of any form. In your case.. it might be that it should work, I'm not entirely sure yet. But I'm wondering what's the timing with autoReturn. It would have to be aware it's returned to infer its type, so:
// would work
foo: func -> SSizeT[] {
  [1, 2, 3]
}

// wouldn't work
foo: func -> SSizeT[] {
  a := [1, 2, 3]
  a
}

So.. is it really worth trying to make it work like that?

authors: fasterthanlime zhaihj

repo: fasterthanlime/rock

license: mit


text:
Detecting musl libc version

I see https://github.com/fastfetch-cli/fastfetch/commit/23d2cc3fdc1d1531174a67b0dd708b05a5cba43c was very recently commited and was wondering if there would be hope for running e.g. /lib/ld-musl-x86_64.so.1 (which would be the dynamic linker for fastfetch under relevant systems) which outputs for example:
musl libc (x86_64)
Version 1.2.4
Dynamic Program Loader
Usage: /lib/ld-musl-x86_64.so.1 [options] [--] pathname [args]

And parsing its output for the Version?
I can get the path to the linker via e.g. ldd /usr/bin/fastfetch (first line) but there's probably a smarter way to do that as well.

I'm also wondering if it makes sense to even hardcode the shown glibc version either, there may be cases where the program is compiled against, say glibc 2.36 and distro updates to 2.38 without the program requiring a recompile to keep running. In that case it would show a mostly irrelevant detail imho

The Version module was designed to print compile flags used / compiler used / libc used when fastfetch was compiling, because there were several issues filed before that running fastfetch in systems with old glibc version.
Detecting libc version that fastfetch running on, while should be possible, is a different topic.

Ah ok, thanks for explaining. I'll rename the issue accordingly

Why do you want that?

Now that I think of it the glibc/musl version for example are really just core things people don't really care about, they update in the background and whatever; now just knowing which one the distro is using is more interesting as https://voidlinux.org/ for example ships both glibc and musl images of the distribution (of course for most distribution this would be glibc similar to most having systemd while dinit, openrc etc also exists for init systems).

authors: CarterLi JamiKettunen

repo: fastfetch-cli/fastfetch


text:
PEM force to create new Push certificate even if set --force: false

New Issue Checklist

[x ] Updated fastlane to the latest version
[ x] I read the Contribution Guidelines
[x ] I read docs.fastlane.tools
[x ] I searched for existing GitHub issues

Issue Description
In previous time, pem will not renew Push certificate if the Certificate has expiry date more than 30 days.  But recently, a month ago, pem forces to create new  Push certificate even if the Push Certificate has been created since few minute.
I already set option --force false  but pem still  forces to create new one.
 pem(generate_p12: true, p12_password: 'xxxxxx', pem_name: APP_NAME, force: false)

Current log, even if I has just created Push notification in few minute before.
14:36:40]: Starting login with user 'jm.developers@abc.com'
[14:36:42]: Successfully logged in
[14:36:43]: Creating a new push certificate for app 'com.abc.abc'.
[14:36:47]: Private key: /Users/Shared/Home/iOS_fastlane_Match/workspace/APP.pkey
[14:36:47]: p12 certificate: /Users/Shared/Home/iOS_fastlane_Match/workspace/APP.p12
[14:36:47]: PEM: /Users/Shared/Home/iOS_fastlane_Match/workspace/APP.pem
Environment

fastlane gems

Gem
Version
Update-Status

fastlane
2.54.3
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

slack-notifier
1.5.1

CFPropertyList
2.3.4

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.5.1

rouge
1.11.1

xcpretty
0.2.4

terminal-notifier
1.7.1

terminal-table
1.4.5

plist
3.2.0

public_suffix
2.0.4

addressable
2.5.1

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.5

excon
0.54.0

faraday
0.10.0

unf_ext
0.0.7.2

unf
0.1.4

domain_name
0.5.20161129

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.2

json
1.8.3

mini_magick
4.5.1

multi_json
1.12.1

multi_xml
0.5.5

rubyzip
1.1.7

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.1.1

bundler
1.13.6

faraday_middleware
0.10.1

uber
0.0.15

declarative
0.0.9

declarative-option
0.1.0

representable
3.0.4

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

little-plugger
1.1.4

logging
2.1.0

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.2.4

google-api-client
0.13.4

io-console
0.4.5

🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.11.6

Ruby
2.3.3

Bundler?
false

Git
git version 2.10.1 (Apple Git-78)

Installation Source
~/.rbenv/versions/2.3.3/bin/fastlane

Host
Mac OS X 10.11.6 (15G1108)

Ruby Lib Dir
~/.rbenv/versions/2.3.3/lib

OpenSSL Version
OpenSSL 1.0.2j  26 Sep 2016

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.2.1

Hey @biolinh, could you try setting the active_days_limit parameter to a reasonable number of days? That is supposed to default to 30, but I'm curious if something may be going wrong in there. Thanks! 🚀  🐙

Hi @ohayon. Thank you for your respond.
I try to renew Push Certificate of the app expired in 10 days (Sep 09, 2017)

with the command:
pem --generate_p12  true -p 'xxxxxx' --pem_name  "magento-test" --force  false —active_days_limit 30
CASE 1: The first time, it generated a new one
+------------------+--------------+
|      Summary for PEM 1.4.1      |
+------------------+--------------+
| generate_p12     | true         |
| p12_password     | ********     |
| pem_name         | magento-test |
| force            | false        |
| development      | false        |
| save_private_key | true         |
| output_path      | .            |
+------------------+--------------+
[10:31:20]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: linh.nguyen@abc.com
[10:31:26]: Starting login with user 'linh.nguyen@abc.com'
[10:31:29]: Successfully logged in
[10:31:30]: To not be asked about this value, you can specify it using 'app_identifier'
The bundle identifier of your app: com.abc.app.magento-test
[10:31:37]: Creating a new push certificate for app 'com.abc.app.magento-test'.
[10:31:39]: Private key: /Users/linh/Documents/magento-test.pkey
[10:31:39]: p12 certificate: /Users/linh/Documents/magento-test.p12
[10:31:39]: PEM: /Users/linh/Documents/magento-test.pem
Then I got the complete new one beside the exited one.

CASE 2: Run the command again
pem --generate_p12  true -p 'xxxxxx' --pem_name  "magento-test" --force  false —active_days_limit 30
it returns
+------------------+--------------+
|      Summary for PEM 1.4.1      |
+------------------+--------------+
| generate_p12     | true         |
| p12_password     | ********     |
| pem_name         | magento-test |
| development      | false        |
| force            | false        |
| save_private_key | true         |
| output_path      | .            |
+------------------+--------------+
[10:36:52]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: linh.nguyen@abc.com
[10:37:01]: Starting login with user 'linh.nguyen@abc.com'
[10:37:05]: Successfully logged in
[10:37:05]: To not be asked about this value, you can specify it using 'app_identifier'
The bundle identifier of your app: com.abc.app.magento-test
[10:37:07]: Creating a new push certificate for app 'com.abc.app.magento-test'.
[10:37:09]: {"responseId"=>"e7831efb-59c4-417f-9733-5963c8f80a1a", "resultCode"=>7460, "resultString"=>"Maximum number of certificates generated", "userString"=>"You already have a current Apple Push Services certificate or a pending certificate request.", "creationTimestamp"=>"2017-08-31T03:37:05Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action", "httpCode"=>200}
[!] You already have 2 active push profiles for this application/environment. You'll need to revoke an old certificate to make room for a new one
CASE 3:  Run the command 2 times. I got the same results as above.
pem --generate_p12  true -p 'xxxxxx' --pem_name  "magento-test"  —active_days_limit 30
CASE 4: Run the command
pem --generate_p12  true -p 'xxxxxx' --pem_name  "magento-test"
i got
+------------------+--------------+
|      Summary for PEM 1.4.1      |
+------------------+--------------+
| generate_p12     | true         |
| p12_password     | ********     |
| pem_name         | magento-test |
| development      | false        |
| force            | false        |
| save_private_key | true         |
| output_path      | .            |
+------------------+--------------+
[10:36:52]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: linh.nguyen@abc.com
[10:37:01]: Starting login with user 'linh.nguyen@abc.com'
[10:37:05]: Successfully logged in
[10:37:05]: To not be asked about this value, you can specify it using 'app_identifier'
The bundle identifier of your app: com.abc.app.magento-test
[10:37:07]: Creating a new push certificate for app 'com.abc.app.magento-test'.
[10:37:09]: {"responseId"=>"e7831efb-59c4-417f-9733-5963c8f80a1a", "resultCode"=>7460, "resultString"=>"Maximum number of certificates generated", "userString"=>"You already have a current Apple Push Services certificate or a pending certificate request.", "creationTimestamp"=>"2017-08-31T03:37:05Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action", "httpCode"=>200}
[!] You already have 2 active push profiles for this application/environment. You'll need to revoke an old certificate to make room for a new one
It SEEMs it try to create a new one.

**CASE 4:**  Make a lane, it verified that the expired date more than 30 days and no need to create a new one

 lane :test do
     pem(generate_p12: true, p12_password: 'xxxxx', pem_name: ENV["APP_NAME"], force: false)
  end

I got
11:41:14: --- Step: pem ---
11:41:14: -----------------
+-------------------+--------------------------------+
|               Summary for PEM 2.54.4               |
+-------------------+--------------------------------+
| generate_p12      | true                           |
| p12_password      | ********                       |
| pem_name          | magento-test                   |
| force             | false                          |
| development       | false                          |
| active_days_limit | 30                             |
| save_private_key  | true                           |
| app_identifier    | com.abc.app.magento-test |
| username          | linh.nguyen@abc.com      |
| output_path       | .                              |
+-------------------+--------------------------------+
11:41:14: Starting login with user 'linh.nguyen@abc.com'
[11:41:17]: Successfully logged in
[11:41:18]: Existing push notification profile for 'com.abc.app.magento-test' is valid for 395 more days.
[11:41:18]: You already have a push certificate, which is active for more than 30 more days. No need to create a new one
[11:41:18]: If you still want to create a new one, use the --force option when running PEM.
BUT in Case 5:
Make a lane, it verified that the expired date more than 30 days, it created a new one even if  the certificate has just been created.

lane :test do
sh "fastlane produce enable_services --push-notification"
pem(generate_p12: true, p12_password: 'xxxxx', pem_name: ENV["APP_NAME"], force: false)
end

I find the same error i get.
[11:47:18]: --- Step: pem ---
[11:47:18]: -----------------
+-------------------+--------------------------------+
|               Summary for PEM 2.54.4               |
+-------------------+--------------------------------+
| generate_p12      | true                           |
| p12_password      | ********                       |
| pem_name          | magento-test                   |
| force             | false                          |
| development       | false                          |
| active_days_limit | 30                             |
| save_private_key  | true                           |
| app_identifier    | com.abc.app.magento-test |
| username          | linh.nguyen@abc.com      |
| output_path       | .                              |
+-------------------+--------------------------------+
[11:47:18]: Starting login with user 'linh.nguyen@abc.com'
[11:47:20]: Successfully logged in
[11:47:20]: Creating a new push certificate for app 'com.abc.app.magento-test'.
[11:47:24]: Private key: /Users/.../magento-test.pkey
[11:47:24]: p12 certificate: /Users/.../magento-test.p12
[11:47:24]: PEM: /Users/.../magento-test.pem
I find out the error that it I run the command enable the push notification then generate a new push certificate, it will force to renew one

Hmm, I think that this has something to do with the fact that by calling produce first, and enabling push notifications, that it is changing the state of the certs on the developer portal. Is there a reason why you are calling produce every time?

@ohayon
Yes, I create a lane to create a application for first publishing.  and I set a rule if input is 1 then call the createnewapp lane but input isnot 1, it doesn't call it. but my enduser usually forget that.
Beside that, in previously, if they forget that it doesn't force to renew Push certificate.

...
if publishing == '1'
createnewapp
end
...

lane :createnewapp do
sh "fastlane-credentials add --username FASTLANE_USER --password KEYCHAIN_PASSWORD"
produce(
username: FASTLANE_USER,
app_name: APP_NAME,
team_id: TEAM_ID,
team_name: TEAM_NAME,
app_identifier: BUNDLE_ID,
language: PRODUCE_LANGUAGE ,
sku: BUNDLE_ID,
company_name: TEAM_NAME,
itc_team_id: DELIVER_TEAM_ID,
skip_itc: 'false'
)
sh "fastlane produce enable_services --push-notification"
pem(generate_p12: true, p12_password: 'xxxxxx', pem_name: APP_NAME)
sh "fastlane-credentials remove --username $FASTLANE_USER"
end

authors: biolinh ohayon

repo: fastlane/fastlane


text:
[scan] Failures with error "Exit status: 65"

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

We use scan in our applications to test PR builds. We have recently been having lots of failed builds with the generic error:  Exit status: 65, which occurs after seeing this:
Signing /Users/jenkins/Library/Developer/Xcode/DerivedData/WhiteLabelClient-ehxpakjqhonkevfqqupggshezzeo/Build/Products/Debug-iphonesimulator/WhiteLabelClientUITests-Runner.app/PlugIns/WhiteLabelClientUITests.xctest
2018-08-22 13:16:08.609 xcodebuild[925:7134107] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

From what I have gathered, when this occurs, I have noticed issues with the simulator on those Jenkins boxes. It will either not be open, or it will be unresponsive, so I believe its something to do with the simulator not being opened correctly, or it time. I from time to time will see a "Springboard quit unexpectedly" error on our VMs, but I am unsure if that is related.
The odd thing is that it is not happening all of the time, it is intermittent between builds. What seems to help clear it up is resetting the simulator on our Jenkins boxes (using snapshot reset_simulators), but, eventually they failures come back. Another thing that seems to help is restarting the boxes completely. Sometimes simply re-running the build will clear it up as well. What is also odd, is we tell scan to ignore our UI tests, which you see in the output above (WhiteLabelClientUITests).
Things I have tried:

Killing all simulators before running scan
Not killing all simulators before running scan
Manually starting a sim before running a build sh "xcrun instruments -t 'Blank' -l 1 -w \"iPhone X (${simOSVersion})\" || sleep 30" (got that idea from https://circleci.com/blog/xcodebuild-exit-code-65-what-it-is-and-how-to-solve-for-ios-and-macos-builds/)
Setting ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = '2' in my fastfile
Setting ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = '1' in my fastfile
Setting ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = '0' in my fastfile
Several combinations of the things above

This is probably happening to 70% of our builds, which has caused some havoc when getting to the end of releases, and every PR build that fails can set us back. I am not sure if this is a bug, or I am doing something wrong in my setup.
Any help would be greatly appreciated! At one point a few weeks back, we did not see these issues at all.
Here is our fastfile for reference:
lane :urbn_scan do |options|
	ENV['FASTLANE_XCODE_LIST_TIMEOUT'] = '300'
	ENV['FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT'] = '300'
	ENV['FASTLANE_XCODEBUILD_SETTINGS_RETRIES'] = '20'
	ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = '2'

	opts = {
		workspace: options[:workspaceName],
		scheme: options[:scheme],
		device: options[:simName],
		clean: true,
		buildlog_path: "./build",
		output_directory: "./build"
    	}

	testsToSkip = options[:testsToSkip]

	if testsToSkip then
		opts[:skip_testing] = testsToSkip
	end

	scan(opts)
end

Complete output when running fastlane, including the stack trace and command used

+ fastlane urbn_scan workspaceName:AppRepo/Client-WhiteLabel/WhiteLabelClient.xcworkspace scheme:Debug 'simName:iPhone X' testsToSkip:WhiteLabelClientUITests
[13:04:45]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[13:04:46]: ------------------------------
[13:04:46]: --- Step: default_platform ---
[13:04:46]: ------------------------------
[13:04:46]: Driving the lane 'urbn_scan' 🚀
[13:04:46]: ------------------
[13:04:46]: --- Step: scan ---
[13:04:46]: ------------------
[13:04:46]: $ xcodebuild -showBuildSettings -workspace AppRepo/Client-WhiteLabel/WhiteLabelClient.xcworkspace -scheme Debug
Resuming build at Wed Aug 22 13:08:16 EDT 2018 after Jenkins restart
Waiting to resume part of iOS-WhiteLabel » dev #4034: ???
Cannot contact worker4: java.io.IOException: remote file operation failed: /Users/jenkins/Documents/jenkins-workspace/workspace/iOS-WhiteLabel_dev-V2EDLBBHOMCZUYAQRXD53KGJEN6LMKWS45T5O5HJKBJGV2MMEUAA/MobileBuildTools/Pipelines at hudson.remoting.Channel@7d774507:worker4: hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on worker4 failed. The channel is closing down or has closed down
Ready to run at Wed Aug 22 13:08:19 EDT 2018
Timeout set to expire in 56 min
[13:05:02]: $ xcodebuild -showBuildSettings -workspace AppRepo/Client-WhiteLabel/WhiteLabelClient.xcworkspace -scheme Debug
+----------------------------+--------------------------------------------------------------------------------------------------+
|                                                   Summary for scan 2.102.0                                                    |
+----------------------------+--------------------------------------------------------------------------------------------------+
| workspace                  | AppRepo/Client-WhiteLabel/WhiteLabelClient.xcworkspace                                           |
| scheme                     | Debug                                                                                |
| device                     | iPhone X                                                                                |
| clean                      | true                                                                                |
| buildlog_path              | ./build                                                                                |
| output_directory           | ./build                                                                                |
| skip_testing               | ["WhiteLabelClientUITests"]                                                                      |
| derived_data_path          | /Users/jenkins/Library/Developer/Xcode/DerivedData/WhiteLabelClient-ehxpakjqhonkevfqqupggshezzeo |
| skip_build                 | false                                                                                |
| output_types               | html,junit                                                                                |
| include_simulator_logs     | false                                                                                |
| disable_concurrent_testing | false                                                                                |
| should_zip_build_products  | false                                                                                |
| result_bundle              | false                                                                                |
| open_report                | false                                                                                |
| skip_slack                 | false                                                                                |
| slack_only_on_failure      | false                                                                                |
| use_clang_report_name      | false                                                                                |
| fail_build                 | true                                                                                |
| xcode_path                 | /Applications/Xcode.app                                                                          |
+----------------------------+--------------------------------------------------------------------------------------------------+
[13:05:05]: Killing all running simulators
...........
.......
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Touching WhiteLabelClientUITests.xctest
▸ Signing /Users/jenkins/Library/Developer/Xcode/DerivedData/WhiteLabelClient-ehxpakjqhonkevfqqupggshezzeo/Build/Products/Debug-iphonesimulator/WhiteLabelClientUITests-Runner.app/PlugIns/WhiteLabelClientUITests.xctest
2018-08-22 13:16:08.609 xcodebuild[925:7134107] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Testing failed:
Test target WhiteLabelClientTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **
[13:16:08]: Exit status: 65

Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13.6

Ruby
2.5.1

Bundler?
false

Git
git version 2.15.2 (Apple Git-101.1)

Installation Source
~/.gem/bin/fastlane

Host
Mac OS X 10.13.6 (17G65)

Ruby Lib Dir
/usr/local/Cellar/ruby/2.5.1/lib

OpenSSL Version
OpenSSL 1.0.2o  27 Mar 2018

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
9.4.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.102.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.2.0

slack-notifier
2.3.2

atomos
0.1.2

CFPropertyList
2.3.5

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.4

xcodeproj
1.5.7

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.7.1

unicode-display_width
1.1.3

terminal-table
1.7.3

plist
3.2.0

public_suffix
2.0.5

addressable
2.5.1

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.6.3

tty-cursor
0.5.0

tty-spinner
0.8.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.6

excon
0.54.0

faraday
0.11.0

unf_ext
0.0.7.2

unf
0.1.4

domain_name
0.5.20161129

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.1.2

mini_magick
4.5.1

multi_json
1.12.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.0

bundler
1.16.1

faraday_middleware
0.11.0.1

naturally
2.1.0

simctl
1.6.3

uber
0.0.15

declarative
0.0.9

declarative-option
0.1.0

representable
3.0.4

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

little-plugger
1.1.4

logging
2.1.0

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

google-api-client
0.21.2

emoji_regex
0.1.1

json
2.1.0

openssl
2.1.0

date
1.0.0

fileutils
1.0.2

ipaddr
1.2.0

generated on: 2018-08-22

Don't believe this has anything to do with code signing. When this issue does not arise, code signing works as expected.

I got some new info in one of the failures:
xcodebuild[63783:6874107]  iOSSimulator: Unable to connect to "com.apple.instruments.deviceservice.lockdown" (Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error: failed but didn't provide an error}}})
[UO] 2018-09-07 10:51:30.651 xcodebuild[63783:6852748] Error Domain=com.apple.dt.AssetProviderService Code=99 "Failed to initiate service connection to simulator" UserInfo={NSUnderlyingError=0x7fb2c30c7170 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error: failed but didn't provide an error}}}}, NSLocalizedDescription=Failed to initiate service connection to simulator, NSLocalizedRecoverySuggestion=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)}
[UO] 2018-09-07 10:51:30.651 xcodebuild[63783:6852748] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, NSUnderlyingError=0x7fb2c2289e00 {Error Domain=com.apple.dt.AssetProviderService Code=99 "Failed to initiate service connection to simulator" UserInfo={NSUnderlyingError=0x7fb2c30c7170 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo=0x7fb2c8cf36f0 (not displayed)}}}, NSLocalizedDescription=Failed to initiate service connection to simulator, NSLocalizedRecoverySuggestion=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)}}}
[UO]
[UO] Testing failed:
[UO] Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
[UO] ** TEST FAILED **
[UO] [10:51:32]: Exit status: 65

@lukasburns I followed a solution I found here: https://github.com/bitrise-io/bitrise.io/issues/5
That solution is not necessarily using fastlane, but I translated that to my scan calls.
I am now in my fastfile doing 2 scan calls:

The first with build_for_testing: true
The second with test_without_building: true. Do NOT clean: true in the second call

Doing this did help some, but we are still seeing the occasional Exit status: 65 failures, but not nearly as often so I wouldn't say I "solved" it.
Heres some more info as well: https://stackoverflow.com/questions/37922146/xctests-failing-on-physical-device-canceling-tests-due-to-timeout/40790171#40790171

...I have noticed issues with the simulator...

Same issue; I've actually watched the open Simulator window crash the moment that scan fails with Exit status: 65 after all of the tests have successfully passed. Manually restarting the same simulator and retrying scan usually works, until the next time it decides it wants to become unresponsive.
Fastlane: 2.106.1

This issue plagues our builds as well, the error is basically the same as this
xcodebuild[63783:6874107]  iOSSimulator: Unable to connect to "com.apple.instruments.deviceservice.lockdown" (Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error: failed but didn't provide an error}}})
[UO] 2018-09-07 10:51:30.651 xcodebuild[63783:6852748] Error Domain=com.apple.dt.AssetProviderService Code=99 "Failed to initiate service connection to simulator" UserInfo={NSUnderlyingError=0x7fb2c30c7170 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error: failed but didn't provide an error}}}}, NSLocalizedDescription=Failed to initiate service connection to simulator, NSLocalizedRecoverySuggestion=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)}
[UO] 2018-09-07 10:51:30.651 xcodebuild[63783:6852748] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, NSUnderlyingError=0x7fb2c2289e00 {Error Domain=com.apple.dt.AssetProviderService Code=99 "Failed to initiate service connection to simulator" UserInfo={NSUnderlyingError=0x7fb2c30c7170 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)" UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2), NSUnderlyingError=0x7fb2c8c23d30 {Error Domain=DTiPhoneSimulatorErrorDomain Code=-1 "blessSimulatorServiceHub:error: failed but didn't provide an error" UserInfo=0x7fb2c8cf36f0 (not displayed)}}}, NSLocalizedDescription=Failed to initiate service connection to simulator, NSLocalizedRecoverySuggestion=DTServiceHubClient failed to bless service hub for simulator iPhone X (372EAE4A-8CA3-4110-87CD-6CCB84AC65B2)}}}
[UO]
[UO] Testing failed:
[UO] Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
[UO] ** TEST FAILED **
[UO] [10:51:32]: Exit status: 65

Testing failed:
snapshotUITests-Runner.app (18936) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: Test runner exited before starting test execution.))
** TEST FAILED **
[18:33:51]: Exit status: 65

Still getting this error intermittently with our CI tests. Haven't found a good solution anywhere on the web.

same here. I believe our app might crash on lunch but I can't understand where the find the logs to prove this.

Same issue here. Test runner exited before starting test execution

Same here. Encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: Test runner exited before starting test execution.))

To be fair, this isn't entirely a fastlane issue. The same error can occur when running the tests with xcodebuild (which is what fastlane uses). Fastlane is still in the wrong here because Xcode still reports partial test results when a test target fails to start, but fastlane just gives up.
The only workaround I've found is to run tests with xcodebuild directly and restart the test if you find that specific error message in Xcode's test report. I've detailed this here: https://silverhammermba.github.io/blog/2019/03/12/slowlane

My team is struggling with the same issue Test runner exited before starting test execution
Hacks like running two scans with build_for_testing: true and test_without_building: true do not help either.
This only happens when I run fastlane via Jenkins. If I do it via terminal, tests run successfully

I am getting this Exit Status 65 error.   It seems to be a bootstrapping error (simulator related) with this being reported in the console log on my jenkins agent run ((Underlying error: Lost connection to testmanagerd)).   Outside of fastlane, the tests run flawlessly in Jenkins and on my local machine.     Strangely, I have run the fastlane on the agent in the jenkins workspace (I get the Exit Status 65).  But, if I run the fastlane on a workstation using fastlane, I don't get the Exit  Status 65.   I suspect it is related to sockets and networking but thats only from looking at the testmanagerd.log and xcresult files.   If I could find documentation that detailed exactly what is happening when simulators are invoked, I could more accurately pinpoint the cause.

@silverhammermba your link is just a rant on how you think fastlane sucks.
It is not related in ANY WAY to this issue.

Update, so after weeks of troubleshooting we discovered that the exit status 65 issue was the result of the simulator boot time taking to long. We now use a cleanup/simulator reset lane to remove all apps from the simulator and kill any running simulator processes before running the build/test lane.

authors: Jayxiang TomVanDerSpek duncwa edward-sentongo jain-a krismulica mattsilber nebillo ryang1428 silverhammermba tirrorex


text:
How to make fastlane sh wait until completion of the issued command?

Question Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Question Subject
How to make fastlane sh wait until completion of the issued command?
Question Description
As a part of a CI pipeline I need to clone a repository different from the one Fastlane is being executed in.
Fastlane sh comes to a rescue:
sh('git clone git@gitlab.local/my/custom/repository.git')

However, the script doesn't wait until completion, but rather just issues the command and continues.
Expected behavior:
Wait until command completes fully and only then continue execution

It actually waits ;)


text:
Only upload screenshots with deliver

As per this thread: https://github.com/fastlane/fastlane/issues/14126, I tried sending the empty string in "deliver" to just upload the screenshots. But it did not work. Here is the lane:
desc "Uploads screenshots only to appstore"
lane :uploadScreenshots do
    deliver(
        ipa: "",
        overwrite_screenshots: true,
        skip_binary_upload: true,
        skip_metadata: true,
        skip_screenshots: false,
        submit_for_review: false)
end

Error:
[19:11:02]: --- Step: default_platform ---
[19:11:02]: ------------------------------
[19:11:02]: Driving the lane 'ios uploadScreenshots' 🚀
[19:11:02]: Error setting value '' for option 'ipa'
[19:11:02]: You passed invalid parameters to 'deliver'.

Have you tried setting the path to a valid ipa file? It should probably just not do anything with it.

hmm, I also thought that a .ipa must exist at some point when I want to upload screenshots but yesterday, I found this when my CI server created a new VM, took the clone of my code, created a new app on the appstore via "produce" and took the screenshots via snapshot, to just upload them without a build. Since there was no .ipa file yet as gym/build didn't execute till then, it failed.

Yeah, I mean setting any ipad and test out if the code then works and just does not do anything with said ipa file. Very possible this is currently just not taken into account, but could be if we know it works.

Ok, I'll try this with a valid build path as well.

authors: janpio userException


text:
screengrab not considering frameit folder location

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
I'm happy to open a pull request on frameit, but first I need to understand if this was made on purpose :)
When using screengrab it pulls screenshots to:
found this piece of code on: screengrab/runner.rb:353
 # We then replace the last segment of the screenshots directory path with the device_type
 # specific name, as expected by supply
 #
 # (Moved to: fastlane/metadata/android/en-US/images/phoneScreenshots)`

I understand that has to be in that locally for supply to be able to upload those. But frameit requires the screenshots to be in the same folder as title.strings/keyword.strings.
My actual folder structure is
This is one specific folder for one language
`fastlane/screenshots/language/
|____title.xml
|____images
| |____phoneScreenshots
| | |____screenShot3_Macros_1586444424911.png
| | |____screenShot1_TicketList_1586444420940_framed.png
| | |____screenShot3_Macros_1586444424911_framed.png
| | |____screenShot4_Notifications_1586444420200.png
| | |____screenShot2_TicketDetails_1586444424182.png
| | |____screenShot4_Notifications_1586444420200_framed.png
| | |____screenShot2_TicketDetails_1586444424182_framed.png
| | |____screenShot1_TicketList_1586444420940.png
|____title.strings
|____mock.xml

Command executed
note that language is generated using an array of languages.
 LANGUAGES = %w[ko ja en-US ar-SA fr-FR pl cs sv nl-NL zh-TW no en-GB bg fi da
               zh-CN pt-BR tr it ru de-DE es-ES ro th id el hi hu vi he]
   desc "Creates localized mocks, takes screenshots"
   lane :capture_screenshots do
    #update_screenshot_mock_localizations
    # build_for_screengrab
     # screengrab
     LANGUAGES.each do |language|
       frameit(use_platform: 'ANDROID', path: "./fastlane/screenshots/#{language}/images/phoneScreenshots")
     end
   end

Complete output when running fastlane, including the stack trace and command, used

couldn't get it returned nothing.

Environment

 🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.15.3

Ruby
2.6.5

Bundler?
true

Git
git version 2.21.0

Installation Source
~/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bin/fastlane

Host
Mac OS X 10.15.3 (19D76)

Ruby Lib Dir
~/.rbenv/versions/2.6.5/lib

OpenSSL Version
OpenSSL 1.1.1d  10 Sep 2019

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
11.3.1

System Locale

Variable
Value

LANG
en_IE.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

# Define languages
LANGUAGES = %w[ko ja en-US ar-SA fr-FR pl cs sv nl-NL zh-TW no en-GB bg fi da
               zh-CN pt-BR tr it ru de-DE es-ES ro th id el hi hu vi he]

platform :android do
   desc "Build debug and test APK for screenshots"
   lane :build_for_screengrab do
     build_android_app(
      task: 'assemble',
      build_type: 'Debug'
    )
     build_android_app(
       task: 'assemble',
      build_type: 'AndroidTest'
    )
   end

   desc "Creates localized mocks, takes screenshots"
   lane :capture_screenshots do
     #update_screenshot_mock_localizations
    # build_for_screengrab
     # screengrab
     LANGUAGES.each do |language|
       frameit(use_platform: 'ANDROID', path: "./fastlane/screenshots/#{language}/images/phoneScreenshots")
     end
   end
end

def update_screenshot_mock_localizations
  puts "Generating localized mocks"
  sh "../scripts/localization/update_screenshot_mock_localizations.rb"
end

  # desc "Submit a new Beta Build to Crashlytics Beta"
  # lane :beta do
  #   gradle(task: "clean assembleRelease")
  #   crashlytics

  #   # sh "your_script.sh"
  #   # You can also use other beta testing services here
  # end

  # desc "Deploy a new version to the Google Play"
  # lane :deploy do
  #   gradle(task: "clean assembleRelease")
  #   upload_to_play_store
# end

 # desc "Runs all the tests"
 #  lane :test do
 #    gradle(task: "test")
 #  end

`./fastlane/Appfile`
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.wellington.android") # e.g. com.krausefx.app

fastlane gems

Gem
Version
Update-Status

fastlane
2.144.0
🚫 Update available

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

bundler
2.0.1

etc
1.0.1

CFPropertyList
3.0.2

public_suffix
2.0.5

addressable
2.7.0

ansi
1.5.0

ast
2.4.0

atomos
0.1.3

aws-eventstream
1.0.3

aws-partitions
1.292.0

aws-sigv4
1.1.1

jmespath
1.4.0

aws-sdk-core
3.92.0

aws-sdk-kms
1.30.0

aws-sdk-s3
1.61.1

babosa
1.0.3

claide
1.0.3

colored2
3.1.2

cork
0.3.0

nap
1.1.0

open4
1.3.4

claide-plugins
0.9.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

multipart-post
2.0.0

faraday
0.17.3

faraday-http-cache
2.0.0

rchardet
1.8.0

git
1.6.0

kramdown
2.1.0

kramdown-parser-gfm
1.1.0

no_proxy_fix
0.1.2

sawyer
0.8.2

octokit
4.18.0

unicode-display_width
1.7.0

terminal-table
1.8.0

danger
6.3.2

danger-plugin-api
1.0.0

ruby-ll
2.1.2

oga
3.2

danger-android_lint
0.0.8

ox
2.13.2

danger-checkstyle_format
0.1.1

danger-junit
1.0.0

declarative
0.0.10

declarative-option
0.1.0

digest-crc
0.5.1

unf_ext
0.0.7.7

unf
0.1.4

domain_name
0.5.20190701

dotenv
2.7.5

emoji_regex
1.0.1

excon
0.73.0

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.13.1

fastimage
2.1.7

gh_inspector
1.1.3

jwt
2.1.0

memoist
0.16.2

multi_json
1.14.1

os
1.1.0

signet
0.13.2

googleauth
0.11.0

httpclient
2.8.3

mini_mime
1.0.2

uber
0.1.0

representable
3.0.4

retriable
3.1.2

google-api-client
0.36.4

google-cloud-env
1.3.1

google-cloud-errors
1.0.0

google-cloud-core
1.5.0

google-cloud-storage
1.25.1

json
2.3.0

mini_magick
4.10.1

multi_xml
0.6.0

plist
3.5.0

rubyzip
1.3.0

security
0.1.3

naturally
2.2.0

simctl
1.6.8

slack-notifier
2.3.2

terminal-notifier
2.0.0

tty-screen
0.7.1

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

nanaimo
0.2.6

xcodeproj
1.15.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.0

mini_portile2
2.4.0

nokogiri
1.10.9

zendesk_i18n_dev_tools
1.1.16

generated on: 2020-04-10

I have half PR done here, I would like some input.
With this change, I'm considering that people that use frameit also use screengrab (which won't be always true).
In this case, would it be ok in have an extra parameter to run it?
frameit(use_platform: "ANDROID, path:'path', consider_screengrab = bool)
where consider_screengrab will set the path to images/screenShots

Thanks for sharing such information with us keep sharing such informative post glad to see such post provitalize

Closing as this PR got merged already 🎉 (long time ago heh)

authors: Prater33 rogerluan wellavelino


text:
Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired

New Issue Checklist

[ x] Updated fastlane to the latest version
[ x] I read the Contribution Guidelines
[ x] I read docs.fastlane.tools
[x ] I searched for existing GitHub issues

Issue Description
Started receiving the Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired message..
We had not changed anything in our Fastlane and the API Keys have not been revoked.
I have even tested by creating a new API Key on the itunesConnect.
Command executed
      api_key = app_store_connect_api_key(
        key_id: "GXXXXXX",
        issuer_id: "69a6de85-xxxxxx-5b8c7c11a4d1",
        key_content: "-----BEGIN PRIVATE KEY-----\nMIqjg1/eUB\nLxxyWE/va\nBWxxxQW3zb\n-----END PRIVATE KEY-----",
        in_house: false
      )

      sigh(
        api_key: api_key,
        adhoc: true,
        force: true
      )

I have also tied to just use CI env var which no change.
Complete output when running fastlane, including the stack trace and command used
Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens

I should probably mention the key is created with role App Manager

Hi @khoogheem
Can you try sigh using the Admin role? https://developer.apple.com/support/roles/
If you will face an issue with the Admin role too...requesting you to start a discussion here
https://github.com/fastlane/fastlane/discussions/categories/q-a
.

Same issue with Admin

@crazymanish I think there is an issue regardless.. I tested by putting everything into a json so I could just run
fastlane sigh --api_key_path fastlane/api_key_admin.json
NO Duration set - Doesn't Work
Duration of 1200: Doesn't work
Duration of 500: 👍  works

this is interesting...reopening

same issue (with latest_testflight_build_number(api_key_path: $api_key_path))

We are having the same issue using the key with the admin role:

12:30:33  [11:30:36]: Verifying that the certificate and profile are still valid on the Dev Portal...

12:30:33  [11:30:36]: Creating authorization token for App Store Connect API

12:30:34  [11:30:36]: #<Spaceship::UnauthorizedAccessError: Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens>```

Okay, cool! I am not sure why this is causing this suddenly, don't have an AppStoreConnectAPI key to debug this issue. 🤪
I am tagging @joshdholtz for this issue! 😇

We are seeing the same issue suddenly with a key that was working fine. It does look like an issue with Apple's API, given that I am unable to create a new token in the App Store Connect, seeing bunch of 500 errors in the developer console.

Just confirming that we recently experienced this issue as well.

Seems like AppStore Connect has some problems atm? I get an error message and can't see any apps when logging in via Safari.

Same issue, AppStore Connect website shows error message instead of apps.

Seems to be fixed.

Not sure if the AppStore Connect issue was related though, as for us the initial problem with the Auth is there since Friday evening.

Right.. My issues started on my Thursday/Friday builds..
Sure it might still be an Apple Issue.. but what made no sense was the default durations just stopped  working.. and I could only get it to work with a duration of 500

Totally! I can confirm that duration of 500 also does the trick for us.

Adding 500 seconds duration sounds crazy workaround, but I don't surprise with Apple 🍏🍎 anymore 😇😂

Doesn't work for us, even with duration set to 500.

It does work for me

Adding 500 seconds duration sounds crazy workaround, but I don't surprise with Apple 🍏🍎 anymore 😇😂

We didn't change anything (like duration), but it started to work again.

Can confirm that setting the duration to 500 fixes the issue.

Adding 500 seconds duration works for us too.

Hi all,
I am closing this as this seems to be a temporary Apple issue, if something crazy will happen again, maybe we can submit Radar? 🤔 (Radar project was a mess 5years ago when I work on macOS client in Apple 🤪)
btw, In my team, we don't use any duration and everything seems to work so far... 😉

@crazymanish I think there is an issue regardless.. I tested by putting everything into a json so I could just run
fastlane sigh --api_key_path fastlane/api_key_admin.json
NO Duration set - Doesn't Work
Duration of 1200: Doesn't work
Duration of 800: Doesn't work
Duration of 500: 👍 works

this work for us | paring with @fernandaaraujo

Hi all,
I'm facing the same issue here. Does anyone know how to change the token session duration on the Azure DevOps extension for the Apple App Store? Would it be possible via additional fastlane arguments on the task or using an environment variable? Thanks in advance!

Works for me too with duration 500 🥇

My team was experiencing this issue when we had the duration set to 500. We increased that value to 1200, which solved it for a time, but now seem to be experiencing it again.
Do we know what might be the root cause of this issue? Modifying the duration is a flaky solution, especially when deploying app versions via CI/CD.

Also encountered this; not exactly relevant since I'm using GitHub actions but it seems like the same underlying issue.
For me a retrigger of the GitHub Actions workflow always works; wondering if it's something to do with a rate limit on Apple's side that returns an unhelpful error message.

I'm facing this issue again since 5days...
what's it's interesting when I use app_store_connect_api_key again, then it works fine in second run...

@crazymanish I think there is an issue regardless.. I tested by putting everything into a json so I could just run fastlane sigh --api_key_path fastlane/api_key_admin.json NO Duration set - Doesn't Work Duration of 1200: Doesn't work Duration of 800: Doesn't work Duration of 500: 👍 works

@khoogheem Hi I am facing the same issue , but I don't understand where I can add this duration in fastfile and I don't understand the Json file solution
app_store_connect_api_key(
key_id: "XXXXXXXXXXX",
issuer_id: "XXXXXXXXXXXXXXXXXXXXXX",
key_content: "XXXXXXXXXXXXXXXXX",
   is_key_content_base64: true,
   in_house: false #boolean value if team is Enterprise or not
 )

# Get the required provisioning profiles
bundle_identifiers.each do |identifier|
  sigh app_identifier: identifier,
       provisioning_name: provisioning_profile_name(identifier, export_method),
       adhoc: export_method == :adhoc,
       force: export_method == :adhoc
end

end

How to fundamentally solve this problem？
This problem started to appear around November 15th.
Even if I set the duration to 500, this problem occasionally occurs when packaging.
But if I call it again, the problem does not appear.
How to fundamentally solve this problem？
    app_store_connect_api_key(
      key_id: key_id,
      issuer_id: issuer_id,
      key_content: key_content,
      duration: 500, # maximum 1200
      in_house: false # optional but may be required if using match/sigh
    )

@wangdetong Take a look on @andersonvom PR
https://github.com/fastlane/fastlane/pull/19502
I think it will solve this issues or at least reduce it. I'm also still facing this problem.

@wangdetong Take a look on @andersonvom #19502 I think it will solve this issues or at least reduce it. I'm also facing this problem for quite long time.

Thank you, I will try

@DuMaM @wangdetong for what it's worth, after adding the changes from #19502 locally, my team has not seen any issues again: we can see in the logs that the failed requests are able to recover after a token refresh.

authors: DuMaM IlyaKiselevKolibri MatejBalantic abdulbasit18 andersonvom cdoky crazymanish dehlen florieger formatCvt itismadhan jacksonsmith jonbenk joshuawright11 khoogheem pvroosendaal ryanjwessel styrken wangdetong weakfl yakimant


text:
Slack action description is unclear

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
Description for slack action states:

Create an Incoming WebHook and export this as SLACK_URL. Can send a message to #channel (by default), a direct message to @username or a message to a private group group with success (green) or failure (red) status.

It is unclear if action itself creates incoming webhook programatically end exports it as shared value or it asks it as input?
Is SLACK_URL output of an action or input?
If it is input it can be passed both as env variable and regular parameter (slack_url)?

Proposed solution
Change description to something like "Sends message to Incoming WebHook" and slack_url parameter description to "URL to Incoming WebHook" with default set as ENV[SLACK_URL]

@muhammadqazi I was able to use this action, this issue is more about unclear description.


text:
Screengrab: Screenshots not copied to local filesystem from android device after test failure

Issue Description
When running screengrab in our Android UI Automation tests, Screengrab fails to copy screenshots taken from the android device to the local filesystem.
Complete output when running fastlane, including the stack trace and command used
./gradlew assembleDebug assembleAndroidTest

...NORMAL BUILD OUTPUT...

screengrab

+-----------------------------+-------------------------------------------------+
|                         Summary for screengrab 0.5.5                          |
+-----------------------------+-------------------------------------------------+
| app_package_name            | com.appname.debug                        |
| app_apk_path                | app/build/outputs/apk/app-debug.apk             |
| tests_apk_path              | app/build/outputs/apk/app-debug-androidTest.apk |
| clear_previous_screenshots  | true                                            |
| output_directory            | /Users/lalunamel/project   |
| tests_package_name          | com.appname.debug.test                   |
| android_home                | /Users/lalunamel/Library/Android/sdk              |
| locales                     | ["en-US"]                                       |
| skip_open_summary           | false                                           |
| test_instrumentation_runner | android.support.test.runner.AndroidJUnitRunner  |
| ending_locale               | en-US                                           |
| device_type                 | phone                                           |
+-----------------------------+-------------------------------------------------+

[15:12:41]: Limiting the test classes run by `screengrab` to just those that generate screenshots can make runs faster.
[15:12:41]: Consider using the :use_tests_in_classes or :use_tests_in_packages option, and organize your tests accordingly.
[15:12:41]: Clearing phoneScreenshots within /Users/lalunamel/appname
[15:12:42]: $ adb devices -l
[15:12:42]: ▸ List of devices attached
[15:12:42]: ▸ emulator-5554          device product:sdk_google_phone_x86_64 model:Android_SDK_built_for_x86_64 device:generic_x86_64
[15:12:42]: $ adb -s emulator-5554 shell echo \$EXTERNAL_STORAGE
[15:12:42]: ▸ /sdcard
[15:12:42]: Cleaning screenshots on device
[15:12:42]: $ adb -s emulator-5554 shell rm -rf /sdcard/com.appname.debug/screengrab
[15:12:42]: Validating app APK
[15:12:42]: $ /Users/lalunamel/Library/Android/sdk/build-tools/24.0.3/aapt dump permissions app/build/outputs/apk/app-debug.apk
[15:12:42]: ▸ package: com.appname.debug
[15:12:42]: ▸ uses-permission: name='android.permission.DISABLE_KEYGUARD'
[15:12:42]: ▸ uses-permission: name='android.permission.WAKE_LOCK'
[15:12:42]: ▸ uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
[15:12:42]: ▸ uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
[15:12:42]: ▸ uses-permission: name='android.permission.CHANGE_CONFIGURATION'
[15:12:42]: ▸ uses-permission: name='android.permission.INTERNET'
[15:12:42]: ▸ uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
[15:12:42]: ▸ uses-permission: name='android.permission.AUTHENTICATE_ACCOUNTS'
[15:12:42]: ▸ uses-permission: name='android.permission.BLUETOOTH'
[15:12:42]: ▸ uses-permission: name='android.permission.MANAGE_ACCOUNTS'
[15:12:42]: ▸ uses-permission: name='android.permission.GET_ACCOUNTS'
[15:12:42]: ▸ uses-permission: name='android.permission.USE_CREDENTIALS'
[15:12:42]: ▸ uses-permission: name='android.permission.READ_SYNC_SETTINGS'
[15:12:42]: ▸ uses-permission: name='android.permission.WRITE_SYNC_SETTINGS'
[15:12:42]: ▸ uses-permission: name='android.permission.READ_SYNC_STATS'
[15:12:42]: Installing app APK
[15:12:42]: $ adb -s emulator-5554 install -r app/build/outputs/apk/app-debug.apk
[15:12:42]: ▸ [100%] /data/local/tmp/app-debug.apk
[15:12:42]: ▸ pkg: /data/local/tmp/app-debug.apk
[15:12:49]: ▸ Success
[15:12:49]: Installing tests APK
[15:12:49]: $ adb -s emulator-5554 install -r app/build/outputs/apk/app-debug-androidTest.apk
[15:12:49]: ▸ [100%] /data/local/tmp/app-debug-androidTest.apk
[15:12:50]: ▸ pkg: /data/local/tmp/app-debug-androidTest.apk
[15:12:52]: ▸ Success
[15:12:52]: Granting the permission necessary to change locales on the device
[15:12:52]: $ adb -s emulator-5554 shell pm grant com.appname.debug android.permission.CHANGE_CONFIGURATION
[15:12:53]: $ adb -s emulator-5554 shell getprop ro.build.version.sdk
[15:12:53]: ▸ 23
[15:12:53]: Granting the permissions necessary to access device external storage
[15:12:53]: $ adb -s emulator-5554 shell pm grant com.appname.debug android.permission.WRITE_EXTERNAL_STORAGE
[15:12:53]: $ adb -s emulator-5554 shell pm grant com.appname.debug android.permission.READ_EXTERNAL_STORAGE
[15:12:53]: Running tests for locale: en-US
[15:12:53]: $ adb -s emulator-5554 shell am instrument --no-window-animation -w \
-e testLocale en_US \
-e endingLocale en_US \
com.appname.debug.test/android.support.test.runner.AndroidJUnitRunner
[15:12:55]: ▸ com.appname.activity.ProjectActivityUiTest:.
[15:13:00]: ▸ com.appname.activity.SignInActivityUiTest:

...TESTS FAIL WITH STACKTRACE...

[15:13:09]: ▸ FAILURES!!!
[15:13:09]: ▸ Tests run: 3,  Failures: 1
[15:13:09]: [!] Tests failed

Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Fastfile:
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.104.0"

default_platform :android

platform :android do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  end

  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end

  desc "Submit a new Beta Build to Crashlytics Beta"
  lane :beta do
    gradle(task: "assembleRelease")
    crashlytics

    # sh "your_script.sh"
    # You can also use other beta testing services here
  end

  desc "Deploy a new version to the Google Play"
  lane :deploy do
    gradle(task: "assembleRelease")
    supply
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end

# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is sent or shared. Learn more at https://github.com/fastlane/enhancer

Screengrabfile:
# remove the leading '#' to uncomment lines

app_package_name 'com.pivotaltracker.debug'
# use_tests_in_packages ['your.screenshot.tests.package']

app_apk_path 'app/build/outputs/apk/app-debug.apk'
tests_apk_path 'app/build/outputs/apk/app-debug-androidTest.apk'

# locales ['en-US', 'fr-FR', 'it-IT']

# clear all previously generated screenshots in your local output directory before creating new ones
clear_previous_screenshots true

# For more information about all available options run
#   screengrab --help

output_directory '/Users/pivotal/workspace/tracker-android-tcfb'

Environment
fastlane version (run fastlane -v): fastlane 1.105.2
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? No
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? Yes
What Xcode version do you use (e.g. 7.3, 8.0) 8

https://github.com/fastlane/fastlane/pull/6606#pullrequestreview-4694936

@lalunamel Thanks for the PR, we'll work with you over there 👍 👍

Hey @TKBurner, any thoughts here?
Do any modifications need to be made, or does this go against Fastlane's philosophy, or are we good to merge?

@lalunamel Thanks for following up. We haven't had time to do a code review yet, but someone from the team will follow up soon. Hope you have a great day!

Hey @TKBurner, any thoughts here?

@lalunamel We are chopping down the PR backlog this week, we should have feedback soon. Thanks so much for contributing! We really appreciate it 👍

authors: TKBurner lalunamel


text:
crash in scan.rb - no implicit conversion of nil into Array

New Issue Checklist

[ x ] Updated fastlane to the latest version
[ x ] I have read the Contribution Guidelines

Issue Description
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

$ fastlane all
[16:02:06]: ------------------
[16:02:06]: --- Step: scan ---
[16:02:06]: ------------------
[16:02:06]: $ xcodebuild -list -workspace xxx.xcworkspace
[16:02:16]: Command timed out after 10 seconds on try 1 of 4, trying again...
[16:02:26]: Command timed out after 10 seconds on try 2 of 4, trying again...
[16:02:36]: Command timed out after 10 seconds on try 3 of 4, trying again...
[16:02:46]: Command timed out after 10 seconds on try 4 of 4
+------------------------+-------------------+
|                Lane Context                |
+------------------------+-------------------+
| DEFAULT_PLATFORM       | ios               |
| PLATFORM_NAME          | ios               |
| LANE_NAME              | ios all           |
| SCAN_DERIVED_DATA_PATH | build/DerivedData |
+------------------------+-------------------+
[16:02:46]: no implicit conversion of nil into Array
[16:02:47]: fastlane finished with errors
.../fastlane/lib/fastlane/actions/scan.rb:32:in `-': [!] no implicit conversion of nil into Array (TypeError)
	from .../fastlane/lib/fastlane/actions/scan.rb:32:in `ensure in run'
	from .../fastlane/lib/fastlane/actions/scan.rb:34:in `run'
	from .../fastlane/lib/fastlane/runner.rb:243:in `block (2 levels) in execute_action'
	from .../fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from .../fastlane/lib/fastlane/runner.rb:221:in `block in execute_action'
	from .../fastlane/lib/fastlane/runner.rb:217:in `chdir'
	from .../fastlane/lib/fastlane/runner.rb:217:in `execute_action'
	from .../fastlane/lib/fastlane/runner.rb:139:in `trigger_action_by_name'
	from .../fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
	from Fastfile:9:in `block (2 levels) in parsing_binding'
	from .../fastlane/lib/fastlane/lane.rb:33:in `call'
	from .../fastlane/lib/fastlane/lane.rb:33:in `call'
	from .../fastlane/lib/fastlane/runner.rb:192:in `try_switch_to_lane'
	from .../fastlane/lib/fastlane/fast_file.rb:282:in `test'
	from Fastfile:51:in `block (2 levels) in parsing_binding'
	from .../fastlane/lib/fastlane/lane.rb:33:in `call'
	from .../fastlane/lib/fastlane/lane.rb:33:in `call'
	from .../fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from .../fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from .../fastlane/lib/fastlane/runner.rb:45:in `execute'
	from .../fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
	from .../fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
	from .../fastlane/lib/fastlane/commands_generator.rb:105:in `block (2 levels) in run'
	from .../vendor/bundle/ruby/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
	from .../vendor/bundle/ruby/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
	from .../vendor/bundle/ruby/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'
	from .../vendor/bundle/ruby/2.0.0/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'
	from .../fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from .../vendor/bundle/ruby/2.0.0/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'
	from .../fastlane/lib/fastlane/commands_generator.rb:302:in `run'
	from .../fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	from .../fastlane/lib/fastlane/cli_tools_distributor.rb:65:in `take_off'
	from .../bin/fastlane:15:in `<top (required)>'
	from .../ruby-2.0.0-p648/bin/fastlane:23:in `load'
	from .../ruby-2.0.0-p648/bin/fastlane:23:in `<main>'
	from .../ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `eval'
	from .../ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `<main>'

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
### Stack

| Key                 | Value                                       |
| ------------------- | ------------------------------------------- |
| OS                  | 10.11.6                                     |
| Ruby                | 2.0.0                                       |
| Bundler?            | true                                        |
| Git                 | git version 2.10.0                          |
| Installation Source | ~/.rvm/gems/ruby-2.0.0-p648/bin/fastlane    |
| Host                | Mac OS X 10.11.6 (15G1004)                  |
| Ruby Lib Dir        | ~/.rvm/rubies/ruby-2.0.0-p648/lib           |
| OpenSSL Version     | OpenSSL 1.0.2h  3 May 2016                  |
| Is contained        | false                                       |
| Is homebrew         | false                                       |
| Xcode Path          | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version       | 8.0                                         |

### fastlane gems

| Gem      | Version | Update-Status      |
| -------- | ------- | ------------------ |
| fastlane | 2.19.1  |   Update available |

Thanks for the fix in #8678 🚀

authors: battlmonstr mfurtak


text:
say: not found

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
say action not working on my 2.45.0 fastlane.
Fastfile is very simple:
lane :test do
  say "I can speak"
end

Captured Output
Command Used: test
Output/Log

DEBUG [2017-07-10 14:53:45.81]: Checking if there are any plugins that should be loaded...
ERROR [2017-07-10 14:53:45.88]: No such file or directory - xcode-select
INFO [2017-07-10 14:53:45.88]: Driving the lane 'test' 🚀
INFO [2017-07-10 14:53:45.88]: -----------------
INFO [2017-07-10 14:53:45.88]: --- Step: say ---
INFO [2017-07-10 14:53:45.88]: -----------------
INFO [2017-07-10 14:53:45.89]: $ say 'I can speak'
INFO [2017-07-10 14:53:45.89]: ▸ sh: 1: say: not found
WARN [2017-07-10 14:53:45.89]: Lane Context:
INFO [2017-07-10 14:53:45.89]: {:PLATFORM_NAME=>nil, :LANE_NAME=>"test"}
ERROR [2017-07-10 14:53:45.89]: Exit status of command 'say 'I can speak'' was 127 instead of 0.
sh: 1: say: not found

INFO [2017-07-10 14:53:45.89]: Successfully generated documentation at path '/home/lex/workspace/sapho-cordova/fastlane/README.md'

+------+--------+-------------+
|      fastlane summary       |
+------+--------+-------------+
| Step | Action | Time (in s) |
+------+--------+-------------+
| 💥   | say    | 0           |
+------+--------+-------------+

ERROR [2017-07-10 14:53:45.91]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: Exit status of command 'say 'I can speak'' was 127 instead of 0.
sh: 1: say: not found

URL: https://api.github.com/search/issues?q=Exit%20status%20of%20command%20'say%20'I%20can%20speak''%20was%20127%20instead%20of%200.%0Ash:%201:%20say:%20not%20found%0A+repo:fastlane/fastlane
➡  Increment build number
    https://github.com/fastlane/fastlane/pull/127 [closed] 2 💬
    04 Feb 2017

🚫 fastlane environment 🚫
Stack

Key
Value

OS
debian_based stretch/sid

Ruby
2.3.1

Bundler?
false

Git
git version 2.7.4

Installation Source
/usr/local/bin/fastlane

Host
Ubuntu 16.04.2 LTS debian_based stretch/sid (4.4.0-79-generic)

Ruby Lib Dir
/usr/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

System Locale

Variable
Value

LANG
cs_CZ.UTF-8
✅

LC_ALL

LANGUAGE

🚫

fastlane files:
`./fastlane/Fastfile`
lane :test do
  say "I can speak"
end

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.45.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.5.0

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.8.0

unicode-display_width
1.3.0

terminal-table
1.8.0

plist
3.3.0

public_suffix
2.0.5

addressable
2.5.1

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.5

excon
0.57.1

faraday
0.12.1

unf_ext
0.0.7.4

unf
0.1.4

domain_name
0.5.20170404

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.3

uber
0.1.0

declarative
0.0.9

declarative-option
0.1.0

representable
3.0.4

retriable
3.0.2

mime-types-data
3.2016.0521

mime-types
3.1

little-plugger
1.1.4

multi_json
1.12.1

logging
2.2.2

jwt
1.5.6

memoist
0.16.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

google-api-client
0.12.0

json
1.8.3

mini_magick
4.5.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.1

bundler
1.15.1

faraday_middleware
0.11.0.1

io-console
0.4.5

generated on: 2017-07-10

/var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane_core/lib/fastlane_core/ui/interface.rb:143:in `shell_error!': [!] Exit status of command 'say 'I can speak'' was 127 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
sh: 1: say: not found
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane_core/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/helper/sh_helper.rb:56:in `sh_control_output'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/helper/sh_helper.rb:10:in `sh'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/actions/say.rb:10:in `run'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/fast_file.rb:269:in `block in say'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/fast_file.rb:267:in `say'
    from Fastfile:2:in `block in parsing_binding'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/lane.rb:33:in `call'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
    from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'
    from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run'
    from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:56:in `run!'
    from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
    from /var/lib/gems/2.3.0/gems/fastlane-2.45.0/bin/fastlane:20:in `<top (required)>'
    from /usr/local/bin/fastlane:23:in `load'
    from /usr/local/bin/fastlane:23:in `<main>'

The say command is only available in OSX, it's an apple utility. If you have espeak installed, you can shell out and run:
echo "your string"|espeak

I see, thanks. I thought it's multiplatform action for notifications.

authors: PetrosIchor lexaurin


text:
Ensure fastly request limits

Hi, in order to simulate the fastly platform better, it would be great to implement the limits in https://docs.rs/fastly/0.7.3/fastly/limits/index.html As a user, I'd like to test against these cases.

@StarpTech these limits are enforced in the SDK, so they should already be supported in Viceroy. Are you getting different results when you test?

@StarpTech, to add a bit more onto what Austin has said, as well as the limits being defined in the SDKs, Viceroy does also implement some of the limits itself when necessary, the below two files contain some of the limits Viceroy implements:

https://github.com/fastly/Viceroy/blob/627e368971a3c396402a7805800fbc6e9a4f9a0a/lib/src/config/limits.rs#L1-L4
https://github.com/fastly/Viceroy/blob/45c24063fa74b7871ccff53ddf93986675772ccd/lib/src/wiggle_abi/headers.rs#L10

Hi, thanks for the Infos! I just want to be sure 👍

authors: JakeChampion StarpTech aspires

repo: fastly/Viceroy


text:
Sponsor image is broken

I think it's because it's pointing to the master branch (I think the path can be relative to the root instead of absolute)

@arielj Fixed by this commit: https://github.com/fastruby/pecas/commit/bb13e193500e6065ea54bb6f7996acf7148750e9

authors: arielj etagwerker

repo: fastruby/pecas


text:
Create a matplotlib projection for stereogram plots

Stereogram plots, often used in geology and structural geology, help visualize 3D orientation data (e.g., planes, lines, or stress directions) on a 2D plane. Creating a custom Matplotlib projection for stereogram plots allows accurate representation of angular data, which we need to represent directions. Tutorial available here.

Task List

Switch to Matplotlib Projection

[ ] Implement a projection in Matplotlib to facilitate grid drawing, setting ticks, etc. Refer to the Matplotlib Projections API for guidance.

Add Matplotlib as a Dependency

[ ] Add Matplotlib as a runtime dependency in pyproject.toml.
[ ] Determine the minimum required version, choosing a minor release from at least two years ago.
[ ] Consult the Matplotlib changelog to confirm an appropriate version.

Set Up Testing with pytest-mpl

[ ] Add pytest-mpl to the environment.yml file.
[ ] Also add pytest-mpl to env/requirements-test.txt.

repo: fatiando/magali


text:
Fix PA spamming blur response

HOW MANY DAGGERS I AM HOLDING UP

Oh wow, emitting sound in OnIntervalThink is quite...I like your style.

authors: X-TheDark sercankd


text:
Build instructions do not work.

kodev build
kore build: src doesn't appear to be a kore app

That's because you run kodev build in the telize/src directory instead of the telize directory.

Huh, I tried running it in both inside / and /src. Didn't work.
Today works fine:
FROM ubuntu

RUN apt-get update && apt-get install -y git kore libmaxminddb-dev && rm -rf /var/lib/apt/lists/*

WORKDIR /build

RUN git clone https://github.com/fcambus/telize.git /build

RUN kodev build

authors: fcambus jtagcat

repo: fcambus/telize


text:
How do I get train loss inside a callback?

I'm writing a callback to plot progress using Bokeh. I'd like to show loss and valid_loss on it. But the logs dict only has the later. Is there any way to get the former inside the on_epoch_end of a callback?
Tkx!

It is passed to the on_epoch_end logs dictionary. Different callback methods get different data, and validation data only gets computed at the end of each epoch.
You can take a look at callbacks.BaseLogger to see how it handles validation data display.

Thanks!!!
I just saw how it is done in here https://github.com/fchollet/keras/blob/aa21a15bd3b1f5a32f49710d771f2c59deb9c7a0/keras/callbacks.py#L231-L256
@fchollet is there a reason for on_epoch_end not be getting loss and loss_acc??? The moving average could be ran inside the model.fit, so each callback wouldn't have to repeat the process.

The moving average could be ran inside the model.fit, so each callback wouldn't have to repeat the process.

Yes, this leads to redundancy in the current setup. We could definitely start computing it in fit (which is what we were doing before the callback system)... not much of an issue for now, though it could become one if we have lots of callbacks. In the standard case, only BaseLogger does this computation, so it only occurs once.

Here is an example with something I was working on...
class MyCallback(Callback):     def __init__(self):         super(MyCallback, self).__init__()         ...     def on_epoch_end(self, epoch, logs={}):         results = [logs['loss'], logs['val_loss'], logs['acc'], logs['val_acc']]         ...

authors: Dylan-Cunningham EderSantana fchollet

repo: fchollet/keras


text:
Questions about Graph Parallelization in Theano

Hello!
I am really liking keras!
I am using it to do my masters on EEG classification.
I don't know exactly how Theano does the parallelizations under the hood.
I am starting with the Graph model and I would like to know if I am understanding it right.
In this code:
# Graph to run 2 independent models in parallel
graph = Graph()
graph.add_input(name='input', input_shape=(32,))

# Model 1
graph.add_node(Dense(16), name='dense1_1', input='input')
graph.add_node(Dense(4), name='dense1_2', input='dense1_1')
graph.add_output(name='output1', input='dense1_2')

# Model 2
graph.add_node(Dense(16), name='dense2_1', input='input')
graph.add_node(Dense(4), name='dense2_2', input='dense2_1')
graph.add_output(name='output2', input='dense2_2')

graph.compile('rmsprop', {'output1':'mse', 'output2':'mse'})

history = graph.fit({'input':X_train, 'output1':y_train, 'output2':y_train}, nb_epoch=10) #history (dict with keys for 'output1' and 'output2')

predictions = graph.predict({'input':X_test, 'input2':X2_test}) #predictions (dict with keys for 'output1' and 'output2')

I have some questions:
1 - Is it equivalent to train 2 Sequential() models with Dense(16) -> Dense(4) with different init weights, sharing the same batches_ids?
2 - How this graph will run in parallel? Each 'branch' is calculated in parallel, for example, the 'dense1_1' and 'dense1_2' will be calculated at the same time? And if I change the 'dense2_1' from 16 to 30, will change something on the parallelization?
3 - Either this Graph running in CPU or GPU, it will be faster than run 2 Sequential() models separately?
And if I add a 3rd model like
# Model 3
graph.add_node(Dense(16), name='dense3_1', input='input')
graph.add_node(Dense(20), name='dense3_2', input='dense3_1')
graph.add_node(Dense(4), name='dense3_3', input='dense3_2')
graph.add_output(name='output3', input='dense3_3')

4 - How the parallelization would occur? Models 1 and 2 will reach the output layer before the Model 3, will Models 1 and 2 wait for Model 3 reach the output layer, backpropagate layer 'dense3_3' and finally Models 1, 2 and 3 starts to backpropagate in parallel?
OT:
5 - Is the issues the right place to do this kind of questions?
Thank you!

I've just figured out the keras user group, sorry for the wrong place!

Think that using a single Graph will be a little bit faster since you are moving the batches to the GPU only once. With two separate compiled Sequential models you have to move that data to the GPU twice. But the only way to have a final word is running experiments :/
Could you change your question to something like Questions about Graph Parallelization in Theano? Maybe a Theano dev finds it interesting and comes over to give a more accurate answer.

Thank you, Eder!
Changed the title as you suggested.

I think one model will be faster. This could remove copy (depending how handle dataset, I'm a Theano dev) and it will also remove some overhead. For small model size as given in the example, this could make a difference

On the CPU, we won't run in parallel each branch. Theano won't run in parallel multiple node, but do some parallelism inside each computation node. Be sure to link to a parallel blas. On the GPU, this is in the pipeline after multi-gpu.

I think in all case, a single model will be faster. They current size are so small the I'm pretty sure the CPU will be faster then the GPU.

I described the parallelism above. For the grad, it depend how keras implement the multiple output. But I think it will be equivalent as training each model separatly.

authors: EderSantana felipefariax nouiz