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

fix(test): use prime dir in some tests #4661

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

syu-w
Copy link
Contributor

@syu-w syu-w commented Mar 13, 2024

Add prime dir in some tests.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.32%. Comparing base (a019fe7) to head (c8e131e).
Report is 34 commits behind head on feature/craft-application.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/craft-application    #4661      +/-   ##
=============================================================
+ Coverage                      89.14%   89.32%   +0.17%     
=============================================================
  Files                            331      335       +4     
  Lines                          22078    22288     +210     
=============================================================
+ Hits                           19682    19909     +227     
+ Misses                          2396     2379      -17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@syu-w syu-w requested review from cmatsuoka and tigarmo March 13, 2024 16:39
@sergiusens sergiusens changed the title fix(package): ingore copy if it is the same file fix(package): ignore copy if it is the same file Mar 13, 2024
@syu-w syu-w force-pushed the work/ignore-same-file branch from 569c4fa to 6ae98a5 Compare March 13, 2024 20:50
@syu-w syu-w requested a review from sergiusens March 13, 2024 20:57
@syu-w syu-w force-pushed the work/ignore-same-file branch 2 times, most recently from 4fb0323 to a92e2d2 Compare March 14, 2024 17:24
@syu-w syu-w changed the title fix(package): ignore copy if it is the same file fix(test): use prime dir in some tests Mar 14, 2024
@syu-w syu-w force-pushed the work/ignore-same-file branch from a92e2d2 to d95c5ee Compare March 14, 2024 17:25
Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having the same pattern as all the other tests helps with quick matching in the future

tests/unit/services/test_package.py Outdated Show resolved Hide resolved
tests/unit/services/test_package.py Outdated Show resolved Hide resolved
tests/unit/services/test_package.py Outdated Show resolved Hide resolved
tests/unit/services/test_package.py Show resolved Hide resolved
@syu-w syu-w force-pushed the work/ignore-same-file branch from d95c5ee to 29e7bd4 Compare March 14, 2024 19:06
@sergiusens sergiusens requested a review from tigarmo March 14, 2024 19:09
@sergiusens sergiusens force-pushed the work/ignore-same-file branch from 29e7bd4 to c8e131e Compare March 14, 2024 19:09
@sergiusens sergiusens merged commit 16127c5 into feature/craft-application Mar 15, 2024
8 of 12 checks passed
sergiusens pushed a commit that referenced this pull request Mar 15, 2024
There are 2 bugs:

First, the current fixture `snapcraft_yaml` may create 2
`snapcraft.yaml` in `/` and `/snap/` due to it used in different places
and it is default to `/snap/snapcraft.yaml`.

When both `snapcraft.yaml` exists, the `/snapcraft.yaml` is used without
any error / warning.

The second bug is when `/snap/snapcraft.yaml` exists, `/build-aux/snap`
will be ignored even if it had hooks in it. This is probably expected
behavior since these are two different versions of the structure.

Needs #4661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants