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 Artifact Upload #11673

Merged
merged 3 commits into from
Apr 22, 2024
Merged

Fix Artifact Upload #11673

merged 3 commits into from
Apr 22, 2024

Conversation

berryd
Copy link
Contributor

@berryd berryd commented Apr 18, 2024

Description

There were a few problem with the artifact upload:

  • Unit tests were configuration in such a way that they would probably not upload artifacts should the tests fail. Also api unit tests were not being packaged.
  • Cypress and A11y test paths pointed to directories one level deeper than they were actually being stored.
  • Cypress and A11y artifact name would produce a collision and fail the job, so if both failed, the slower job would not be able to upload artifacts
  • No retention was set so it would default to 90 days. I picked 14 because I wouldn't expect to need to retrieve artifacts from a build older than 2 weeks

Related ticket(s)

CMDCT-3552


How to test

I pushed a build set to always upload artifacts. The artifacts can be seen to be correctly publishing here. A successful build will not produce artifacts.


Pre-review checklist

  • I have added thorough tests, if necessary
  • I have updated relevant documentation, if necessary
  • I have performed a self-review of my code
  • I have manually tested this PR in the deployed cloud environment

Pre-merge checklist

Review

  • Design: This work has been reviewed and approved by design, if necessary
  • Product: This work has been reviewed and approved by product owner, if necessary

Security

If either of the following are true, notify the team's ISSO (Information System Security Officer).

  • These changes are significant enough to require an update to the SIA.
  • These changes are significant enough to require a penetration test.

convert to a different template: test → val | val → prod

@berryd berryd closed this Apr 18, 2024
@berryd berryd deleted the fix-artifact-upload branch April 18, 2024 21:09
@berryd berryd restored the fix-artifact-upload branch April 19, 2024 15:46
@berryd berryd reopened this Apr 19, 2024
Copy link

codeclimate bot commented Apr 19, 2024

Code Climate has analyzed commit b39ebc8 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 95.9% (0.0% change).

View more on Code Climate.

@berryd berryd marked this pull request as ready for review April 19, 2024 21:12
@berryd berryd merged commit 75ab3ee into main Apr 22, 2024
20 checks passed
@berryd berryd deleted the fix-artifact-upload branch April 22, 2024 14:01
karla-vm added a commit that referenced this pull request Apr 24, 2024
karla-vm added a commit that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants