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

module-info: fix reversed job names! #4406

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

danielbeardsley
Copy link
Contributor

@danielbeardsley danielbeardsley commented Apr 18, 2024

The index in the array of jobs isn't the number!

Before this change the Job #1 and Job #2 were reversed.

Turns out, everywhere else we reference the jobs we always look up the label in the labels map. That wasn't being done here and thus the jobs were actually mis-labeled (2 was 1 and 1 was 2) making the chunk list in module-info attributed to the wrong job.

Now it's fixed and the right job labels are show.

Here's an example of the bug (notice the different ordering in the jobs):
image

The index in the array of jobs isn't the number!

Before this change the "Job relative-ci#1" and "Job relative-ci#2" were reversed.

Turns out, everywhere else we reference the jobs we always look up the
label in the labels map. That wasn't being done here and thus the jobs
were actually mis-labeled (2 was 1 and 1 was 2) making the chunk list
in module-info attributed to the wrong job.

Now it's fixed and the right job labels are show.
Copy link

relativeci bot commented Apr 18, 2024

Job #10887: Bundle Size — 349.54KiB (~-0.01%).

a2a27e2(current) vs 7b90430 master#10879(baseline)

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
Job #10887
     Baseline
Job #10879
Improvement  Initial JS 309.76KiB(~-0.01%) 309.77KiB
No change  Initial CSS 39.78KiB 39.78KiB
Change  Cache Invalidation 25.77% 37.13%
No change  Chunks 3 3
No change  Assets 4 4
No change  Modules 660 660
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 35 35
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
Job #10887
     Baseline
Job #10879
Improvement  JS 309.76KiB (~-0.01%) 309.77KiB
Not changed  CSS 39.78KiB 39.78KiB

View job #10887 reportView iFixit:module-info--fix-job-labe... branch activityView project dashboard

@danielbeardsley danielbeardsley changed the title module-info: use correct labels for jobs module-info: fix reversed job names! Apr 18, 2024
Copy link
Member

@vio vio left a comment

Choose a reason for hiding this comment

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

Thank you @danielbeardsley! 🙇

@vio vio merged commit b21726a into relative-ci:master Apr 18, 2024
25 checks passed
@vio
Copy link
Member

vio commented Apr 18, 2024

Available on v4.13.0-beta.15.

@danielbeardsley sent you an email to your profile's address ;)

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.

None yet

2 participants