Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Reduce length of log filenames #10213

Merged
merged 1 commit into from Feb 19, 2020

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Feb 17, 2020

With some filesystems (e.g., ecryptfs), the maximum filename length is lower than 255, that of ext4. On these filesystems, the tests fail with the following error because log filenames are too long:

K8sPolicyTest Basic Test Redirects traffic to proxy when no policy is applied with proxy-visibility annotation Tests HTTP proxy visibility without policy
at /cilium/cilium/test/ginkgo-ext/scopes.go:430

[Could not read monitor log
Expected
    <*os.PathError | 0xc000e1fec0>: {
        Op: "open",
        Path: "test_results/117-/K8sPolicyTest_Basic_Test_Redirects_traffic_to_proxy_when_no_policy_is_applied_with_proxy-visibility_annotation_Tests_HTTP_proxy_visibility_without_policy/monitor-13f3cf9b-4f30-11ea-b222-60f262b6c493.log",
        Err: 0x24,
    }
to be nil]

This pull request updates the name of the test, from which the log filename is derived, to be consistent with other tests' names.


This change is Reviewable

@pchaigno pchaigno added pending-review area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels Feb 17, 2020
@pchaigno pchaigno requested a review from a team as a code owner February 17, 2020 13:51
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Feb 17, 2020
@pchaigno
Copy link
Member Author

test-me-please

@coveralls
Copy link

coveralls commented Feb 17, 2020

Coverage Status

Coverage decreased (-0.01%) to 44.44% when pulling 34b028a on pr/pchaigno/fix-long-test-logfile-names into 7290ad4 on master.

With some filesystems (e.g., ecryptfs), the maximum filename length is
lower than 255, that of ext4.  On these filesystems, the tests fail with
the following error because log filenames are too long:

    K8sPolicyTest Basic Test Redirects traffic to proxy when no policy is applied with proxy-visibility annotation Tests HTTP proxy visibility without policy
    at /cilium/cilium/test/ginkgo-ext/scopes.go:430

    [Could not read monitor log
    Expected
        <*os.PathError | 0xc000e1fec0>: {
            Op: "open",
            Path: "test_results/117-/K8sPolicyTest_Basic_Test_Redirects_traffic_to_proxy_when_no_policy_is_applied_with_proxy-visibility_annotation_Tests_HTTP_proxy_visibility_without_policy/monitor-13f3cf9b-4f30-11ea-b222-60f262b6c493.log",
            Err: 0x24,
        }
    to be nil]

This commit updates the name of the tests (from which the log filename is
derived) to be consistent with other tests' names.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the pr/pchaigno/fix-long-test-logfile-names branch from ff89671 to 34b028a Compare February 17, 2020 17:38
@pchaigno
Copy link
Member Author

test-me-please

@aanm aanm added this to the 1.8 milestone Feb 18, 2020
@aanm aanm merged commit d141196 into master Feb 19, 2020
1.8.0 automation moved this from In progress to Merged Feb 19, 2020
@aanm aanm deleted the pr/pchaigno/fix-long-test-logfile-names branch February 19, 2020 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants