xiaods / k8e

K8E - Kubernetes Easy Engine
https://getk8e.com
Apache License 2.0
391 stars 25 forks source link

add action comments on PR #259

Closed xiaods closed 2 years ago

xiaods commented 2 years ago

Signed-off-by: Deshi Xiao xiaods@gmail.com

github-actions[bot] commented 2 years ago

GoTest Result

GoTest result ``` ? github.com/xiaods/k8e [no test files] ? github.com/xiaods/k8e/cmd/agent [no test files] ? github.com/xiaods/k8e/cmd/cert [no test files] ? github.com/xiaods/k8e/cmd/containerd [no test files] ? github.com/xiaods/k8e/cmd/ctr [no test files] ? github.com/xiaods/k8e/cmd/encrypt [no test files] ? github.com/xiaods/k8e/cmd/etcdsnapshot [no test files] ? github.com/xiaods/k8e/cmd/k8e [no test files] ? github.com/xiaods/k8e/cmd/kubectl [no test files] ? github.com/xiaods/k8e/cmd/server [no test files] ? github.com/xiaods/k8e/pkg/agent [no test files] ? github.com/xiaods/k8e/pkg/agent/config [no test files] ? github.com/xiaods/k8e/pkg/agent/containerd [no test files] === RUN TestFailOver time="2022-07-02T13:25:58Z" level=info msg="Running load balancer k8e-agent-load-balancer 127.0.0.1:39855 -> [127.0.0.1:39361]" time="2022-07-02T13:25:58Z" level=info msg="Updating load balancer k8e-agent-load-balancer server addresses -> [127.0.0.1:41663 127.0.0.1:39361]" --- PASS: TestFailOver (0.00s) === RUN TestFailFast time="2022-07-02T13:25:58Z" level=info msg="Running load balancer k8e-agent-load-balancer 127.0.0.1:43193 -> [127.0.0.1:0]" --- PASS: TestFailFast (0.00s) PASS ok github.com/xiaods/k8e/pkg/agent/loadbalancer 0.015s ? github.com/xiaods/k8e/pkg/agent/proxy [no test files] ? github.com/xiaods/k8e/pkg/agent/syssetup [no test files] ? github.com/xiaods/k8e/pkg/agent/templates [no test files] ? github.com/xiaods/k8e/pkg/agent/tunnel [no test files] ? github.com/xiaods/k8e/pkg/agent/util [no test files] ? github.com/xiaods/k8e/pkg/apis/k8e.cattle.io [no test files] ? github.com/xiaods/k8e/pkg/apis/k8e.cattle.io/v1 [no test files] ? github.com/xiaods/k8e/pkg/authenticator [no test files] === RUN TestBasicAuth --- PASS: TestBasicAuth (0.00s) PASS ok github.com/xiaods/k8e/pkg/authenticator/basicauth 0.009s === RUN TestBasicHash --- PASS: TestBasicHash (0.35s) === RUN TestLongKey --- PASS: TestLongKey (0.32s) PASS ok github.com/xiaods/k8e/pkg/authenticator/hash 0.672s === RUN TestPasswordFile --- PASS: TestPasswordFile (0.00s) === RUN TestBadPasswordFile --- PASS: TestBadPasswordFile (0.00s) === RUN TestInsufficientColumnsPasswordFile --- PASS: TestInsufficientColumnsPasswordFile (0.00s) PASS ok github.com/xiaods/k8e/pkg/authenticator/passwordfile 0.007s === RUN TestObjToMap === RUN TestObjToMap/Minimal_Valid === RUN TestObjToMap/Minimal_Invalid --- PASS: TestObjToMap (0.00s)  --- PASS: TestObjToMap/Minimal_Valid (0.00s)  --- PASS: TestObjToMap/Minimal_Invalid (0.00s) PASS ok github.com/xiaods/k8e/pkg/bootstrap 0.018s ? github.com/xiaods/k8e/pkg/cgroups [no test files] ? github.com/xiaods/k8e/pkg/cli/agent [no test files] ? github.com/xiaods/k8e/pkg/cli/cert [no test files] ? github.com/xiaods/k8e/pkg/cli/cmds [no test files] ? github.com/xiaods/k8e/pkg/cli/crictl [no test files] ? github.com/xiaods/k8e/pkg/cli/ctr [no test files] ? github.com/xiaods/k8e/pkg/cli/etcdsnapshot [no test files] ? github.com/xiaods/k8e/pkg/cli/kubectl [no test files] ? github.com/xiaods/k8e/pkg/cli/secretsencrypt [no test files] ? github.com/xiaods/k8e/pkg/cli/server [no test files] === RUN TestTrustedCA time="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC" time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is trusted by the host CA bundle. Token CA hash will not be validated." time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is trusted by the host CA bundle. Token CA hash will not be validated." --- PASS: TestTrustedCA (0.04s) === RUN TestUntrustedCA time="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC" 2022-07-02 13:26:01.310641 I | http: TLS handshake error from 127.0.0.1:38596: remote error: tls: bad certificate time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:01.314619 I | http: TLS handshake error from 127.0.0.1:38602: remote error: tls: bad certificate time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:01.318873 I | http: TLS handshake error from 127.0.0.1:38614: remote error: tls: bad certificate 2022-07-02 13:26:01.320192 I | http: TLS handshake error from 127.0.0.1:38608: read tcp 127.0.0.1:44749->127.0.0.1:38608: use of closed network connection --- PASS: TestUntrustedCA (0.01s) === RUN TestInvalidServers --- PASS: TestInvalidServers (0.00s) === RUN TestInvalidTokens time="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC" 2022-07-02 13:26:01.322354 I | http: TLS handshake error from 127.0.0.1:48134: remote error: tls: bad certificate 2022-07-02 13:26:01.324845 I | http: TLS handshake error from 127.0.0.1:48140: remote error: tls: bad certificate --- PASS: TestInvalidTokens (0.01s) === RUN TestInvalidCredentials time="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC" 2022-07-02 13:26:01.327912 I | http: TLS handshake error from 127.0.0.1:57304: remote error: tls: bad certificate time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:01.332127 I | http: TLS handshake error from 127.0.0.1:57312: remote error: tls: bad certificate time="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:01.340832 I | http: TLS handshake error from 127.0.0.1:57318: remote error: tls: bad certificate 2022-07-02 13:26:01.344176 I | http: TLS handshake error from 127.0.0.1:57324: remote error: tls: bad certificate --- PASS: TestInvalidCredentials (0.02s) === RUN TestWrongCert time="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC" 2022-07-02 13:26:01.348639 I | http: TLS handshake error from 127.0.0.1:55738: remote error: tls: bad certificate 2022-07-02 13:26:01.350628 I | http: TLS handshake error from 127.0.0.1:55744: remote error: tls: bad certificate 2022-07-02 13:26:01.351628 I | http: TLS handshake error from 127.0.0.1:55746: remote error: tls: bad certificate 2022-07-02 13:26:01.352773 I | http: TLS handshake error from 127.0.0.1:55748: remote error: tls: bad certificate --- PASS: TestWrongCert (0.01s) === RUN TestConnectionFailures --- PASS: TestConnectionFailures (40.00s) === RUN TestUserPass --- PASS: TestUserPass (0.00s) === RUN TestParseAndGet time="2022-07-02T13:26:41Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:41 +0000 UTC notAfter=2023-07-02 13:26:41 +0000 UTC" 2022-07-02 13:26:41.359093 I | http: TLS handshake error from 127.0.0.1:44932: remote error: tls: bad certificate time="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:41.364404 I | http: TLS handshake error from 127.0.0.1:44940: remote error: tls: bad certificate time="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." 2022-07-02 13:26:41.367936 I | http: TLS handshake error from 127.0.0.1:44948: remote error: tls: bad certificate time="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation." --- PASS: TestParseAndGet (0.01s) PASS ok github.com/xiaods/k8e/pkg/clientaccess 40.126s ? github.com/xiaods/k8e/pkg/cloudprovider [no test files] ? github.com/xiaods/k8e/pkg/cluster [no test files] ? github.com/xiaods/k8e/pkg/cluster/managed [no test files] ? github.com/xiaods/k8e/pkg/codegen [no test files] ? github.com/xiaods/k8e/pkg/codegen/cleanup [no test files] === RUN Test_UnitMustParse === RUN Test_UnitMustParse/Basic_server === RUN Test_UnitMustParse/Server_with_known_flags === RUN Test_UnitMustParse/Server_with_known_flags_and_config_with_known_and_unknown_flags time="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --notaflag found in config.yaml, skipping\n" === RUN Test_UnitMustParse/Basic_etcd-snapshot === RUN Test_UnitMustParse/Etcd-snapshot_with_known_flags === RUN Test_UnitMustParse/Etcd-snapshot_with_config_with_known_and_unknown_flags time="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --token found in config.yaml, skipping\n" time="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --node-label found in config.yaml, skipping\n" time="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --notaflag found in config.yaml, skipping\n" time="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --kubelet-arg found in config.yaml, skipping\n" === RUN Test_UnitMustParse/Agent_with_known_flags === RUN Test_UnitMustParse/Agent_with_config_with_known_and_unknown_flags,_flags_are_not_skipped --- PASS: Test_UnitMustParse (0.00s)  --- PASS: Test_UnitMustParse/Basic_server (0.00s)  --- PASS: Test_UnitMustParse/Server_with_known_flags (0.00s)  --- PASS: Test_UnitMustParse/Server_with_known_flags_and_config_with_known_and_unknown_flags (0.00s)  --- PASS: Test_UnitMustParse/Basic_etcd-snapshot (0.00s)  --- PASS: Test_UnitMustParse/Etcd-snapshot_with_known_flags (0.00s)  --- PASS: Test_UnitMustParse/Etcd-snapshot_with_config_with_known_and_unknown_flags (0.00s)  --- PASS: Test_UnitMustParse/Agent_with_known_flags (0.00s)  --- PASS: Test_UnitMustParse/Agent_with_config_with_known_and_unknown_flags,_flags_are_not_skipped (0.00s) === RUN TestFindStart --- PASS: TestFindStart (0.00s) === RUN TestConfigFile --- PASS: TestConfigFile (0.00s) === RUN TestParse --- PASS: TestParse (0.00s) PASS ok github.com/xiaods/k8e/pkg/configfilearg 0.006s ? github.com/xiaods/k8e/pkg/containerd [no test files] ? github.com/xiaods/k8e/pkg/ctr [no test files] ? github.com/xiaods/k8e/pkg/daemons/agent [no test files] === RUN TestGetArgsList --- PASS: TestGetArgsList (0.00s) PASS ok github.com/xiaods/k8e/pkg/daemons/config 0.015s ? github.com/xiaods/k8e/pkg/daemons/control [no test files] ? github.com/xiaods/k8e/pkg/daemons/control/deps [no test files] ? github.com/xiaods/k8e/pkg/daemons/executor [no test files] ? github.com/xiaods/k8e/pkg/data [no test files] ? github.com/xiaods/k8e/pkg/datadir [no test files] ? github.com/xiaods/k8e/pkg/dataverify [no test files] ? github.com/xiaods/k8e/pkg/deploy [no test files] ? github.com/xiaods/k8e/pkg/etcd [no test files] ? github.com/xiaods/k8e/pkg/flock [no test files] ? github.com/xiaods/k8e/pkg/generated/clientset/versioned [no test files] ? github.com/xiaods/k8e/pkg/generated/clientset/versioned/fake [no test files] ? github.com/xiaods/k8e/pkg/generated/clientset/versioned/scheme [no test files] ? github.com/xiaods/k8e/pkg/generated/clientset/versioned/typed/k8e.cattle.io/v1 [no test files] ? github.com/xiaods/k8e/pkg/generated/clientset/versioned/typed/k8e.cattle.io/v1/fake [no test files] ? github.com/xiaods/k8e/pkg/generated/controllers/k8e.cattle.io [no test files] ? github.com/xiaods/k8e/pkg/generated/controllers/k8e.cattle.io/v1 [no test files] ? github.com/xiaods/k8e/pkg/generated/informers/externalversions [no test files] ? github.com/xiaods/k8e/pkg/generated/informers/externalversions/internalinterfaces [no test files] ? github.com/xiaods/k8e/pkg/generated/informers/externalversions/k8e.cattle.io [no test files] ? github.com/xiaods/k8e/pkg/generated/informers/externalversions/k8e.cattle.io/v1 [no test files] ? github.com/xiaods/k8e/pkg/generated/listers/k8e.cattle.io/v1 [no test files] ? github.com/xiaods/k8e/pkg/kubectl [no test files] ? github.com/xiaods/k8e/pkg/netutil [no test files] ? github.com/xiaods/k8e/pkg/node [no test files] === RUN TestSetEmptyNodeConfigAnnotations --- PASS: TestSetEmptyNodeConfigAnnotations (0.00s) === RUN TestSetExistingNodeConfigAnnotations --- PASS: TestSetExistingNodeConfigAnnotations (0.00s) === RUN TestSetArgsWithEqual --- PASS: TestSetArgsWithEqual (0.00s) PASS ok github.com/xiaods/k8e/pkg/nodeconfig 0.005s === RUN TestAsserts --- PASS: TestAsserts (0.00s) === RUN TestEnsureDelete  nodepassword_test.go:245: Memory Usage: Alloc=2 MB, Sys=68 MB, NumGC=0  nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=6 --- PASS: TestEnsureDelete (0.62s) === RUN TestMigrateFile  nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=6 time="2022-07-02T13:26:07Z" level=info msg="Migrating node password entries from '/tmp/node-password-test.444946322'" time="2022-07-02T13:26:08Z" level=info msg="Migrated 10 node password entries in 1.016088574s"  nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=16 --- PASS: TestMigrateFile (1.22s) === RUN TestMigrateFileNodes  nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=18 time="2022-07-02T13:26:08Z" level=info msg="Migrating node password entries from '/tmp/node-password-test.338543561'" time="2022-07-02T13:26:08Z" level=info msg="Migrated 3 node password entries in 303.690868ms"  nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=21 --- PASS: TestMigrateFileNodes (1.12s) PASS ok github.com/xiaods/k8e/pkg/nodepassword 2.974s ? github.com/xiaods/k8e/pkg/passwd [no test files] ? github.com/xiaods/k8e/pkg/rootless [no test files] ? github.com/xiaods/k8e/pkg/rootlessports [no test files] ? github.com/xiaods/k8e/pkg/secretsencrypt [no test files] ? github.com/xiaods/k8e/pkg/server [no test files] ? github.com/xiaods/k8e/pkg/servicelb [no test files] ? github.com/xiaods/k8e/pkg/signals [no test files] ? github.com/xiaods/k8e/pkg/static [no test files] ? github.com/xiaods/k8e/pkg/token [no test files] ? github.com/xiaods/k8e/pkg/untar [no test files] === RUN Test_UnitParseStringSliceToIPs === RUN Test_UnitParseStringSliceToIPs/nil_string_slice_must_return_no_errors === RUN Test_UnitParseStringSliceToIPs/empty_string_slice_must_return_no_errors === RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_must_succeed === RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_must_succeed === RUN Test_UnitParseStringSliceToIPs/multi_element_slice_with_correct_IP_list_must_succeed === RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_with_trailing_comma_must_fail === RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(overflow)_must_fail === RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(foreign_symbols)_must_fail --- PASS: Test_UnitParseStringSliceToIPs (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/nil_string_slice_must_return_no_errors (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/empty_string_slice_must_return_no_errors (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_must_succeed (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_must_succeed (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/multi_element_slice_with_correct_IP_list_must_succeed (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_with_trailing_comma_must_fail (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(overflow)_must_fail (0.00s)  --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(foreign_symbols)_must_fail (0.00s) PASS ok github.com/xiaods/k8e/pkg/util 0.012s ? github.com/xiaods/k8e/pkg/version [no test files]  ```
sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

github-actions[bot] commented 2 years ago

Unit Test Results

49 tests   49 :heavy_check_mark:  43s :stopwatch: 85 suites    0 :zzz:   1 files      0 :x:

Results for commit 7fc324f6.